Unit Test Assertions made easy using Shouldly

Anup MarwadiSoftwareLeave a Comment

Shouldly Example in Unit Tests for C#

Assertions in Unit Testing are often cumbersome to write. Majority of our TDD code is full of Assertions to ensure that Unit Tests meet the criteria specified in the business rules. Here’s a typical example of a Unit Test using good ol’ Assert. If you think this is boring, you’re not alone. Not only is it cumbersome, it doesn’t flow … Read More