csUnit Class Library

ExpectedExceptionAttribute Constructor (Type)

Creates an ExpectedExceptionAttribute object. Use this constructor if it is sufficient to check for the type of the exception only.

public ExpectedExceptionAttribute(
   Type expectedExceptionType
);

Parameters

expectedExceptionType
Type of the expected exception.

See Also

ExpectedExceptionAttribute Class | csUnit Namespace | ExpectedExceptionAttribute Constructor Overload List