ExpectedExceptionAttribute Constructor (Type, Boolean)
Creates an ExpectedExceptionAttribute object. Use this constructor if it is sufficient to check for the type of the exception only.
public ExpectedExceptionAttribute(
Type expectedExceptionType,
bool isRequired);
Parameters
-
expectedExceptionType
- Type of the expected exception.
-
isRequired
- true if this exception must be thrown to make the test pass
See Also
ExpectedExceptionAttribute Class | csUnit Namespace | ExpectedExceptionAttribute Constructor Overload List