Wednesday, March 16, 2016

Better Unit Testing with Fluent Assertions

When you are using Unit Testing with a framework such as MSTest, the assertion information and exceptions you get from the results of your Unit Tests may not be very indicative of the actual problem nor very informative.

Fortunately, there are alternative assertion frameworks such as Fluent Assertions!  http://www.fluentassertions.com/

Fluent Assertions allows you to provide much more informative assertions and error messages than you get with just using MSTest assertions.

You can read the documentation about how to use Fluent Assertions here: https://github.com/dennisdoomen/fluentassertions/wiki

No comments:

Post a Comment