In this chapter, we will introduce how to write unit test cases for parallel and asynchronous code. Writing unit test cases is an important aspect of writing robust code that is easy to maintain when you're working with large teams.
With the new CI/CD platforms, it's easier to make running unit test cases a part of the build process. This helps in finding issues at a very early stage. It also makes sense to write integration tests so that we can evaluate whether different components are working correctly together. Although you will find more features in Visual Studio's Community and Professional editions, only Visual Studio Enterprise edition has support for analyzing code coverage for unit test cases.
In this chapter, we will cover the following topics:
- Understanding the problems with writing unit test...