TDD Anti-patterns: Excessive Setup
There is time that we get a headache by just thinking of creating a new unit test. For that particular class which we have to do so much setup to do an assertion.
A Stack Overflow thread inspired this series.
There is time that we get a headache by just thinking of creating a new unit test. For that particular class which we have to do so much setup to do an assertion.
A Stack Overflow thread inspired this series.
Continuing the series of posts to explore different testing aspects in asp .net core. We’re going experiment with Test Server to create integration tests.
Continuing the series of posts to explore different testing aspects in asp .net core. We’re going experiment with Test Server to create integration tests.
Continuing the series of posts to explore different testing aspects in asp .net core. We’re going to create unit test for controllers.
In this new series of posts, I want to show different aspects of testing an ASP.NET core application.
Continuing the series of posts about unit tests anti patterns.
AStack Overflow thread inspired this series.
How to improve unit test readability.
The assertion in unit tests is the phase where we verify if the test result is what we expect. This phase is straightforward, usually it is just one line. But it is not very readable, because it looks something like this: Assert.Equal(“ExpectedResult”, “ActualResult”)
.
Unit test patterns series of posts.
Pass/Fail Patterns are the most basic unit test patterns, they are our first way to tell if the production code is working as it should.
Continuing the series of posts about unit tests anti patterns.
A Stack Overflow thread inspired this series.
Learn how to mock multiple calls to the same method.
You can download this article project on GitHub.
In this post you will learn how to use entityframework in memory database.
You can download this article project on GitHub.