Click or drag to resize
ErrorTesterTest Method
Tests that an action causes a specified exception.

Namespace: Capgemini.CommonObjectUtils.Testing
Assembly: Capgemini.CommonObjectUtils (in Capgemini.CommonObjectUtils.dll) Version: 1.3.0.0
Syntax
public ErrorTester Test(
	Type expectedException,
	Action action
)

Parameters

expectedException
Type: SystemType
The type of exception that is expected.
action
Type: SystemAction
The action to perform.

Return Value

Type: ErrorTester
The ErrorTester for chaining calls.
Exceptions
ExceptionCondition
ErrorTestException Either no exception was thrown by the action or the exception was a different type to the expected one.
See Also