[TestMethod()] [HostType("ASP.NET")] [AspNetDevelopmentServerHost("C:\\Samples\\MyUnitTestApp\\MVCApp", "/")] [UrlToTest("http://localhost:59794/")] public void IndexTest() { HomeController target = new HomeController(); // TODO: Initialize to an appropriate value ActionResult expected = null; // TODO: Initialize to an appropriate value ActionResult actual; actual = target.Index(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
The Web request 'http://localhost:59794/' completed successfully without running the test. This can occur when configuring the Web application for testing fails (an ASP.NET server error occurs when processing the request), or when no ASP.NET page is executed (the URL may point to an HTML page, a Web service, or a directory listing). Running tests in ASP.NET requires the URL to resolve to an ASP.NET page and for the page to execute properly up to the Load event. The response from the request is stored in the file 'WebRequestResponse_IndexTest.html' with the test results; typically this file can be opened with a Web browser to view its contents.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)