gtar
asked on
How do I use Visual Studio's Unit Testing on a Web Site
Hello,
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.HttpCompileExce ption (0x80004005): C:\[my path]\PurchasedBonds.ascx( 12): error CS1502: The best overloaded method match for 'controls_PurchasedBonds.g etNameOnBo nd(Applica tion)' 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.
Thanks,
gtar
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.HttpCompileExce
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.
Thanks,
gtar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.