csUnit Class Library

ExpectedExceptionAttribute.IsEqualTo Method 

Compares either the type of an exception to an expected exception type. If in addition to that a particular exception object has been supplied, the exception will be compared to it, too.

public bool IsEqualTo(
   Exception thrownException
);

Parameters

thrownException
The exception which was thrown.

Return Value

'true', when the actualException is acceptable, 'false' otherwise.

See Also

ExpectedExceptionAttribute Class | csUnit Namespace