Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
how to check whether Assert.IsTrue() //Assert,AreEqual();method is pass or fail in the program itself because based on that

Im writing Mi test cases Using Visual studio 2010. So there is no report after running the testcases . we are preparing manually excel report so that i want to Write the Test Results to excel i want to check this method in the coding part itself or is there any other way to find Assertion is True or False..
Posted
Updated 25-Apr-14 18:17pm
v2
Comments
Raul Iloc 26-Apr-14 13:38pm    
Did you try my solution?

1 solution

You have to add a new project of type "Test Project" into your solution, then use it to automatically generate unit tests for your classes (from VS Solution Explorer use context menu over the Test Project -> Add new Unit Test), then change/customize the unit test classes (that will be generated) as you want, and finally make your test project as starting project and run the tests==> the test reports file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900