Has anybody seen a complete tutorial for creating custom assertion classes with FluentAssertions? Best regards
Asked
Active
Viewed 1,917 times
1 Answers
2
I maintain a couple of extension packages for Fluent Assertions, so feel free to take a look at our code to see how we do it:
I also recently contributed the assembly reference assertions to the core, so have a look at this pull request. Also have a look at the FA source to see how they implement similar assertions (that's where we started).
The top line is you'll need a class to hold your assertions and an extension method to hook it in.

Kevin Kuszyk
- 1,958
- 24
- 37