Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

The Microsoft.VisualStudio.TestTools.UnitTesting.Web namespace is an extension of the Microsoft.VisualStudio.TestTools.UnitTesting namespace that provides ASP.NET and Web service unit test capabilities. This namespace provides a set of attributes to unit tests that define credentials, URLs, and server specific information.

  Class Description
Public class AspNetDevelopmentServerAttribute Specifies the settings that must be used for the ASP.NET Development Server for the test. This is primarily used for Web service unit tests.
Public class AspNetDevelopmentServerHostAttribute Specifies the settings to use when an ASP.NET Development Server is the host server for the test. This is used for ASP.NET unit tests.
Public class CredentialAttribute Specifies the user name and password for ASP.NET sites that require basic authentication or Windows authentication. This class cannot be inherited.
Public class UrlToTestAttribute Specifies the URL that should be requested to give context to the test. This class cannot be inherited.
© 2015 Microsoft