다음을 통해 공유


ExpectedExceptionAttribute Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the ExpectedExceptionAttribute class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method ExpectedExceptionAttribute(Type) Initializes a new instance of the ExpectedExceptionAttribute class with an expected exception.
Public method ExpectedExceptionAttribute(Type, String) Initializes a new instance of the ExpectedExceptionAttribute class with and expected exception type and a message that describes the exception.

Top

Remarks

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

See Also

Reference

ExpectedExceptionAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace