The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
HostTypeAttribute Constructor (String^)
Initializes a new instance of the HostTypeAttribute class. This is instantiated by using an argument that specifies the type of host on which this unit test will run.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Parameters
- hostType
-
Type:
System::String^
The type of host on which this unit test will run.
The standard type of host that is included with Visual Studio 2005 is ASP.NET.
Legacy Code Example
[TestMethod()] [HostType("ASP.NET")] [UrlToTest("http://localhost:1371/webSite12")] [AspNetDevelopmentServerHost("d:\\MyWebSite", "/MyWebSiteRoot")] public void ConstructorTest() { object target = TestProject1.Class1Accessor.CreatePrivate(); Assert.Inconclusive("TODO: Implement code to verify target"); }
Show: