UrlToTestAttribute Constructor

Initializes a new instance of the UrlToTestAttribute class.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting.Web
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    urlToTest As String _
)
public UrlToTestAttribute(
    string urlToTest
)
public:
UrlToTestAttribute(
    String^ urlToTest
)
new : 
        urlToTest:string -> UrlToTestAttribute
public function UrlToTestAttribute(
    urlToTest : String
)

Parameters

  • urlToTest
    Type: String

    The URL to give context to the test.

Remarks

urlToTest must be in a form that represents a valid URI. This is the page that is requested when the test is run. The test is run in the ASP.NET process with access to this page.

.NET Framework Security

See Also

Reference

UrlToTestAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests