This documentation is archived and is not being maintained.

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.

Public classAspNetDevelopmentServerAttributeSpecifies 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 classAspNetDevelopmentServerHostAttributeSpecifies 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 classCredentialAttributeSpecifies the user name and password for ASP.NET sites that require basic authentication or Windows authentication. This class cannot be inherited.
Public classUrlToTestAttributeSpecifies the URL that should be requested to give context to the test. This class cannot be inherited.