Compartilhar via


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.

Classes

  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.

See Also

Reference

Other Resources

How to: Create an ASP.NET Unit Test

ASP.NET Unit Tests