The idea of testing a .NET application is introduced in this article, it shows how various kinds of tests could be used to evaluate and validate code. Different tools, such as .NET CLI or Integrated Development Environments, are available to test .NET applications.
A perfect way to ensure that the software code does what its developers expect it to do is to provide automated testing. Unit tests, integration tests, and load (stress) tests are discussed in this post.
.NET test types
Unit tests: to test classes or functions.
Integration tests: to test infrastructure including interacting with databases, file systems, and network resources.
Load tests: or stress testing, to test the ability of the application to handle a big number of users.
Tools
There are several tool to write the previous .NET tests, for instance, xUnit, MUnit, MSTest, .NET CLI or the IDE (Microsoft Visual Studio).