Upravit

Sdílet prostřednictvím


Is.TypeOf Method

Definition

Overloads

TypeOf(Type)

Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.

TypeOf<T>()

Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.

TypeOf(Type)

Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.

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>()

Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.

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

Type Parameters

T

Returns

Applies to