[TestClass]
public class MyTestClass
{
[TestMethod]
[AspNetDevelopmentServer("name", "path")]
public void MyTestMethod()
{
// Do stuff
}
}
You might be tempted to put the "name" and "path" properties in constants somewhere. Unfortunately if you do this, the "AspNetDevelopmentServer" Attribute will cease to function and the ASP.NET Development Server will not be activated when your tests run. Why is a mystery. So, keep the property values as hard-coded strings in-line.
1 comments:
You can add this to the test config file, or through the Test menu and Edit Test config
Post a Comment