Unit testing is the No. 1 technique available to the software developer to ensure that a section of an application, known as a unit, meets its design and behaves as intended.
We all know how quickly we can give up on an application if we often encounter bugs in it—one of the most important criteria for choosing an application is quality. One of the essential methods for improving application quality is writing a full set of unit tests. Comprehensive testing is even more crucial if you are starting a new project on one of the latest technologies, such as Blazor or ASP.NET Core, or if you're looking into .NET 5.
In this ebook, I’ve tried to cover everything you need to know about writing unit tests.
My new ebook: Unit Testing in .NET—The Complete Guide was just published and you can download it for free.
This ebook should be helpful to you whether you’re exploring the fundamentals for the first time, refreshing your knowledge, or are in a role where you’re guiding other developers or managing projects
I've described everything you need to know about writing unit tests. The ebook covers:
- What unit tests are
- Advantages of unit testing
- Disadvantages and limitations
- Unit testing best practices
- What mocking is
- Mocking frameworks
- Executing unit tests with the help of a mocking framework
- Introduction to code coverage
- When to choose your tooling
Deep dive in writing unit tests—from pros and cons to best practices and improved software quality. Take advantage of my advice on writing unit tests whether it be for Blazor, ASP.NET Core, or are looking into .NET 5 and win even more clients to your business.
Download Unit Testing ebook