![Best extract software](https://cdn1.cdnme.se/5447227/9-3/screenshot_5_64e62947ddf2b306ca76f796.jpg)
![visual studio code coverage colors meaning visual studio code coverage colors meaning](https://i.stack.imgur.com/E6aDh.png)
If you look back to the first articles of this series of posts, How to write your very first Unit Test in Visual Studio using MSTest Framework easily ?, we wrote the following code block to add two positive number and corresponding unit test.
![visual studio code coverage colors meaning visual studio code coverage colors meaning](https://i.stack.imgur.com/KRpvX.png)
By analyzing the result, we can determine if the code is tested for all certain scenariosĀ or we need write more test cases to covers some of the scenarios for the code block.
![visual studio code coverage colors meaning visual studio code coverage colors meaning](https://user-images.githubusercontent.com/50580/89370237-7cc95400-d69d-11ea-8d6c-949fd099cf21.gif)
Once you write the Unit tests in Visual Studio and manage them using Test Explorer, the next immediate job for you would be understand what code you have tested so far using the test cases ? Code Coverage let us determine which portion / section of the code has been tested. Understanding and maintaining the code coverage is one of the most important aspect of writing unit tests and ensures the code quality with respect to functional points.
![Best extract software](https://cdn1.cdnme.se/5447227/9-3/screenshot_5_64e62947ddf2b306ca76f796.jpg)