Create a unit test
Create unit tests to make sure your code works properly, and to keep it working properly.
-
Create a unit test project.

-
Add a reference to the project that contains the code you'll test.

-
Code your unit test.

Try this next
Or, dig deeper on MSDN:
Sign up for free