Edytuj

Udostępnij za pośrednictwem


ConstraintExpression.InstanceOf Method

Definition

Overloads

InstanceOf(Type)

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

InstanceOf<T>()

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

InstanceOf(Type)

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

public NUnit.Framework.Constraints.InstanceOfTypeConstraint InstanceOf (Type expectedType);
member this.InstanceOf : Type -> NUnit.Framework.Constraints.InstanceOfTypeConstraint

Parameters

expectedType
Type

Returns

Applies to

InstanceOf<T>()

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

public NUnit.Framework.Constraints.InstanceOfTypeConstraint InstanceOf<T> ();
member this.InstanceOf : unit -> NUnit.Framework.Constraints.InstanceOfTypeConstraint

Type Parameters

T

Returns

Applies to