Link to home
Start Free TrialLog in
Avatar of gtar
gtarFlag for United States of America

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.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.

Thanks,
gtar
ASKER CERTIFIED SOLUTION
Avatar of gdupadhyay
gdupadhyay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial