dev.net.ua

Українська Спільнота Розробникiв
 
Ласкаво просимо до dev.net.ua Увійти | Приєднатися | Допомога | Увійти Live ID
в Пошук

Microsoft.VisualStudio 2008 Unittesting для Web Application Project

Останнє повідомлення 10-07-2008, 6:22 від slash. 0 відповіді.
Сортувати: Попереднє Наступне
  •  10-07-2008, 6:22 6460

    Microsoft.VisualStudio 2008 Unittesting для Web Application Project

    Необходимо написать 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);
            }

    С уважением, Вячеслав
    Помічено як:
Переглядати як новосний Блог RSS в XML