Question: how to do nunit testing in visual studio?
Answer: Open the solution that contains the code you want to test.
Right-click on the solution in Solution Explorer and choose Add > New Project.
Select the NUnit Test Project project template. ... 
Add a reference from the test project to the project that contains the code you want to test.