Click here to Skip to main content
14,698,691 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a website developed in C# Visual Studio 2008. Now I want to add a test method for all the methods defined in code behind file. Do i need to create corresponding class in app code for writing test method?
Posted

1 solution

No - just add the web project as a reference in your test project and write all your tests in there as normal.
   
Comments
Sandeep Mewara 21-Nov-10 3:45am
   
Comment from OP:
i m not able to add my web project by reference. Actually i have few .cs files in my application for which i have to create test methods. Please let me know the exact steps to accomplish this.

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