Throws.TypeOf Method

Definition

Overloads

TypeOf(Type)

Creates a constraint specifying the exact type of exception expected

TypeOf<T>()

Creates a constraint specifying the exact type of exception expected

TypeOf(Type)

Creates a constraint specifying the exact type of exception expected

public static NUnit.Framework.Constraints.ExactTypeConstraint TypeOf (Type expectedType);
static member TypeOf : Type -> NUnit.Framework.Constraints.ExactTypeConstraint

Parameters

expectedType
Type

Returns

Applies to

TypeOf<T>()

Creates a constraint specifying the exact type of exception expected

public static NUnit.Framework.Constraints.ExactTypeConstraint TypeOf<T> ();
static member TypeOf : unit -> NUnit.Framework.Constraints.ExactTypeConstraint

Type Parameters

T

Returns

Applies to