0

Has anybody seen a complete tutorial for creating custom assertion classes with FluentAssertions? Best regards

Yannik
  • 709
  • 1
  • 7
  • 11

1 Answers1

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