Необходимо написать ASP UnitTest используя встроенные Microsoft.VisualStudio.TestTools.UnitTesting средства для тестирования ASP.NET страниц Web Application project, для Web Site project все работает, а для WAP выдает ошибку
"is already configured for testing by another test run. Only one test run at a time can run tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter"
код теста
[TestMethod()]
[HostType("ASP.NET")]
[UrlToTest("http://localhost")]
public void GetBioLinkTest()
{
string userName = "User";
string expected = ConstantHelper.Path + "Bio/User/";
string actual;
actual = BioLinkHelper.GetBioLink(userName);
Assert.AreEqual(expected, actual);
}
С уважением, Вячеслав