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