You can write unit tests, using the Test, Create Test and then Unit Test Wizard:

: http://msdn.microsoft.com/en-us/library/dd293546.aspx

The wizard allows you to select which functions you would like to test. You should specify that you want access to private information, so that you can test private methods. The wizard sets all the unit tests for you.