Summary
Creates a constraint specifying the type of exception expected
Syntax
public static InstanceOfTypeConstraint InstanceOf<TExpected>() where TExpected : Exception
Type Parameters
Name | Description |
---|---|
TExpected |
Return Value
Type | Description |
---|---|
Instance |