Specification style unit testing with xUnit.net
June 10, 2019
I have been using Machine Specifications off and on for a few years now, but have recently come up against an unsupported use case when trying to unit test an asynchronous codebase. We started writing some unit tests using xUnit.net, which has fantastic support for asynchronous unit tests, simply by implementing the IAsyncLifetime
interface they provide, but I found myself missing specification style tests.