Summary
In this chapter, we explained why it is worth automating software tests, and then we focused on the importance of unit tests. We also listed all types of tests and their main features, focusing mainly on unit tests. We analyzed the advantages of TDD, and how to use it in practice. With this knowledge, you should be able to produce software that is both reliable and easy to modify.
Finally, we analyzed all test tools available for .NET Core projects, focusing on the description of xUnit and Moq, and showed how to use them in practice, both in Visual Studio and in Azure DevOps, with the help of the book's use case.
The next chapter looks at how to test and measure the quality of the code.