Visual Studio tests

How can I run a test case in VS2010?
vivekj2004Asked:
Who is Participating?
 
gdupadhyayCommented:
You have to create a new test project (Please see attached pic)
After creating test project, add test case (similar to class file), see 2nd pic.

In test case file, create object of class you need to test and call methods. Some time you need to provide some test data.
Test-Project.png
Add-Unit-Test.png
0
 
tpaynCommented:
Make sure your Test toolbar is enabled (Right click on your toolbar and select 'Test Tools') From this toolbar you can select different options to run your tests.

Or from the Test Menu Select Run->All Test in Solution
0
 
vivekj2004Author Commented:
Excellent solution. gdupadhyay even posted pictures to make sure that it's understandable. That's excellent. Thank you very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.