© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
D. StraussGetting Started with Visual Studio 2022https://doi.org/10.1007/978-1-4842-8922-8_4

4. Unit Testing

Dirk Strauss1  
(1)
Uitenhage, South Africa
 

Many developers will have strong opinions on unit testing. If you are considering using unit tests in your code, then start by understanding why unit tests are useful and sometimes necessary.

Breaking down your code’s functionality into smaller, testable units of behavior allows you to create and run unit tests. Unit tests will increase the likelihood that your code will continue to work as expected, even though you have made changes to the source code. In this chapter, we will have a look at
  • Creating and running ...

Get Getting Started with Visual Studio 2022: Learning and Implementing New Features 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.