Test-driven development (TDD) involves writing tests before writing code.
TDD is done in five steps: write a test, the test must fail at the beginning, write the code so that the test passes, execute the test and make sure it passes, refactor the code. [ more ]
WebApplicationFactory in ASP.NET Core: Practical Tips for C# Developers
Using WebApplicationFactory in ASP.NET Core provides a simplified way to set up and execute integration and unit tests for ASP.NET Core applications.
WebApplicationFactory creates an in-memory TestServer instance of the web application being tested, providing an environment to test HTTP requests and responses. [ more ]
Microsoft has introduced the MSTest runner, a lightweight and portable runner for the MSTest unit testing framework.
MSTest runner is extensible and makes tests more portable, reliable, and faster by removing the need for external tools and simplifying the test execution process. [ more ]