As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [fluent-assertions]

Fluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test. See for more information.

Filter by
Sorted by
Tagged with
4 votes
2 answers

Mock Atm program basic functions and xUnit unit test

For self learning purpose, I have created some xUnit unit test for these 2 Atm classes. At the moment, data is store in the in-memory object. This version is extended from previous version. For ...
Steve Ngai's user avatar
16 votes
1 answer

Open source project to ease the Assert part from the functional tests of .Net Core Web APIs

I have built an open-source project based on FluentAssertions in order to solve some recurring tasks I was doing while testing the .Net Core APIs I'm developing. I find the capability of doing in ...
Adrian Iftode's user avatar
2 votes
0 answers

JObject Pattern Matching: Merging partial WEB API JSON payload

This library [GitHub] helps merging partial WEB API JSON payload with existing prepopulated DTO objects. Let's say that JSON is represented by JObject from JSON.NET package. Naïve implementation ...
Dmitry Nogin's user avatar
  • 6,113
3 votes
1 answer

Unit/integration tests

Here's what I got: ...
Will Marcouiller's user avatar
8 votes
1 answer

Unit tests using C#, Moq, AutoFixture, FluentAssertions

Could you give any suggestion on the following unit tests? How to make it more readable, maintainable and trustworthy. If it is not a problem - post some code with the suggestions. ...
Pellared's user avatar
  • 384