Information
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.

ExpectedExceptionAttribute Constructor

 

Initializes a new instance of the ExpectedExceptionAttribute class.

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

NameDescription
System_CAPS_pubmethodExpectedExceptionAttribute(Type)

Initializes a new instance of the ExpectedExceptionAttribute class with an expected exception.

System_CAPS_pubmethodExpectedExceptionAttribute(Type, String)

Initializes a new instance of the ExpectedExceptionAttribute class with and expected exception type and a message that describes the exception.

The properties do not have default values. They can be initialized through the constructors.

Return to top
Show: