How do I use Visual Studio's Unit Testing on a Web Site
Posted on 2011-03-01
I have a growing web site (not a web application project) that I'm developing in VS2010. I have tried to right click on a class and create unit test and it seems to create a seperate project for testing as it should. However when I try to build the testing poject I get errors like...
The "BuildShadoTask" task failed unexpectedly.
System.WEb.HttpCompileException (0x80004005): C:\[my path]\PurchasedBonds.ascx(12): error CS1502: The best overloaded method match for 'controls_PurchasedBonds.getNameOnBond(Application)' has some invalid arguments.
If I comment out this method I get other similar errors.
What seems funny to me is that I can build and run the actual web site just fine with no errors and no unexpected bugs.