Getting Started with xUnit pt. 2

Test Fixture Setup and Tear Down In the last xUnit post we covered how xUnit handles setup and tear down of tests by using the constructor for setup and implementing IDisposable for tear down instead of the usual attributes. That’s great but since xUnit instantiates an instance of the test class for each test, what … [Read more…]

Getting Started With xUnit

I’ve been an NUnit user and fan for years now, but it has limited support for dotNet core and Microsoft has adopted xUnit for many of its current open source projects. Between that and my current team using xUnit it’s a good time to start getting familiar with the framework. Even if you aren’t writing … [Read more…]

Level Up Tests using a custom Assertion Library: Fluent Assertions

One of the most important parts of an automated test is a clear intent. Test frameworks like xUnit, MSTest, Nunit, etc. offer some powerful tools for structuring and executing tests. However, their syntax and conventions can be constraining for people writing the tests and more challenging for people reading the tests. Fluent Assertions is an … [Read more…]