This documentation is archived and is not being maintained.

ExpectedExceptionAttribute Constructor

Initializes a new instance of the ExpectedExceptionAttribute class.

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

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