Posts about Unit testing

Struggling with Visual Studio 2017, xUnit and .NET standard?

Have you created a class library for tests with XUnit and .NET standard? Doesn’t it work?

Using a SynchronizationContext in unit tests

We’ve started to use the Progress<T> class in our async application. However our tests started to fail because of that (when validating that our callbacks get…

How to create a SqlException

Have you tried to create a SqlException only to discover that the constructor is private? Here is how you can create the exception despite that.

ADO.NET Fakes version 2.0

I’ve just updated the API for my ADO.NET Fakes library. The library is a complete ADO.NET driver which is designed to aid you in unit testing.