Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unit Test ASP.Net.... can't debug test with VS 2005 TE

Status
Not open for further replies.

johnfraser

Programmer
Jul 25, 2007
33
US
I'm a C# Thick Client developer who is getting into ASP.net. I'm attempting to unit test a VS 2005 Web Project (well a class/function inside a project). Unfortunately it never hits the break point yet I can break point find in a separate Application project on the same machine.

There are a few differences in the "directives" above the UnitTests but it seems like they would be correct. Here they are for review:

Code:
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("[URL unfurl="true"]http://localhost/myProject[/URL]

My Application Unit Test header contains:

Code:
        [DeploymentItem("UnitTestExampleProject.exe")]
        [TestMethod()]

So what am I doing wrong? I'm compiling in debug mode and selected "debug selected tests". I can't think of anything I'm doing wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top