Chapter 17: Unit Testing

Throughout this book, you have learned all you need to know to be able to program using the C# language—from statements to classes, from generics to functional programming, from reflection to concurrency, and many others. We also covered many topics related to .NET Framework and .NET Core, including collections, regular expressions, files and streams, resource management, and Language Integrated Query (LINQ).

However, a key aspect of programming is making sure that code behaves as intended. Code that is not properly tested is prone to unexpected bugs. There are various types and levels of testing, but the one typically performed by developers while developing is unit testing. This is the topic covered in this final ...

Get Learn C# Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.