Just created a new ASP.NET website using VS2010 (did not change anything)
Clicked on Test menu item, used Test Wizard to generate test. Selected PageLoad of Default page to generate a test.
This has created a test Page_LoadTest
,all works fine as expected apart from debugger does not stops at breakpoint I put in Page_LoadTest
test.
Test method generated is as follows
<TestMethod(), _
HostType("ASP.NET"), _
AspNetDevelopmentServerHost("c:\documents and settings\z08763ddev\my documents\visual studio 2010\Projects\WebApplication3\WebApplication3", "/"), _
UrlToTest("http://localhost:1560/"), _
DeploymentItem("WebApplication3.dll")> _
Public Sub Page_LoadTest()
Dim target As _Default_Accessor = New _Default_Accessor() ' TODO: Initialize to an appropriate value
Dim sender As Object = Nothing ' TODO: Initialize to an appropriate value
Dim e As EventArgs = Nothing ' TODO: Initialize to an appropriate value
target.Page_Load(sender, e)
Threading.Thread.Sleep(1000)
Dim url As String = HttpContext.Current.Request.Url.ToString()
Assert.Inconclusive(url)
End Sub