FluentAssertions – Unit Testing Made Better – Part 1

added by csurfleet
7/3/2012 10:29:50 AM


I recently discovered a very cool project on NuGet – FluentAssertions. This is a really funky little library that vastly improves assertions in your unit tests, whether you are using NUnit or MsTest. I’ve been using it for a few weeks now and thought I would share some of the cool things you can do with this framework. I’ll start with the simple stuff and over the next few weeks work up to the more complex scenarios and finally to creating your own assertions and using this to map unit tests more closely to acceptance criteria.