Recently my job need write all the unit test for my project and I haven’t done this before, and I like share my experience here, and hope that could help someone else.
First, Install an test runner that will help you do the test in Visual Studio.
Tool > extension and updates > search online> nunit test adapter
Second, create an test project
Third, Open the PM console, install some useful packages: