Throws.

InstanceOf<TExpected>() Method

Summary

Creates a constraint specifying the type of exception expected
Namespace
TCLite
Containing Type
Throws

Syntax

public static InstanceOfTypeConstraint InstanceOf<TExpected>() where TExpected : Exception

Type Parameters

Name Description
TExpected

Return Value

Type Description
InstanceOfTypeConstraint