How to unit test in Visual Studio 2019
8 min readMay 15, 2020
The Microsoft unit test framework is installed with Visual Studio and provides a framework for testing .NET code. In this article I will walk you through step-by-step showing you hot to properly create a unit test project and write a unit test to test a specific unit of work in an MVC project.
1 — Create a Unit Test project
To create a new Unit Test project and associate it with your solution the first thing that you must do is right click at the root level of the solution in the Solution Explorer panel. Then find the…