xUnit - How to assert that a call throws an exception
A year ago I made a post on the absence of the DoesNotThrow assertion in xUnit. In this post I show how you can assert if »
A year ago I made a post on the absence of the DoesNotThrow assertion in xUnit. In this post I show how you can assert if »
The Triple A (AAA) abbreviation: Arrange. Act and Assert is a way to structure your unit tests into 3 sections: Arrange: Assign variables, setup stubs, mocks »
In this post I will demonstrate how you can stub the DateTime struct in your unit tests. Most common the method DateTime.Now or DateTime.UtcNow »
If you are moving from NUnit to xUnit, you will likely encounter the absence of the DoesNotThrow method in xUnit. You are looking for something that »
In this post I describe what units tests are all about. It seems to me that in the last many years, the focus has drifted away »
Often when writing tests one value can be as good as any other value. Such as if you need to apply a number within a range »
In this post I will describe some automated testing techniques. Testing is done to assure quality in our systems. But what is quality? Quality is that »
In order to understand mocking we need to understand different types of test doubles and what unit testing is. Later in this blog post I will »