Summary
This last chapter of this book was dedicated to unit testing, which is essential for writing quality code. We started with a basic introduction to unit testing and learned about the Microsoft tools for writing unit tests, including the unit testing framework for managed code. We have seen how to create unit testing projects using this framework, both for .NET Framework and .NET Core. We then looked at the most important features of the unit testing framework and learned how to write unit tests. In the last section, we learned about data-driven tests and saw how to write tests with data from various data sources.
As this book concludes here, we, the authors, would like to thank you for taking the time to read it. By writing this book, we tried to provide you with everything that was essential for you to become proficient in the C# language. We hope this book proves a valuable resource for you in learning and mastering the C# language.