共用方式為


ConstraintExpression.InstanceOf 方法

定義

多載

InstanceOf(Type)

傳回條件約束,測試實際值是否為做為引數或衍生型別所提供的型別。

InstanceOf<T>()

傳回條件約束,測試實際值是否為做為引數或衍生型別所提供的型別。

InstanceOf(Type)

傳回條件約束,測試實際值是否為做為引數或衍生型別所提供的型別。

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

參數

expectedType
Type

傳回

適用於

InstanceOf<T>()

傳回條件約束,測試實際值是否為做為引數或衍生型別所提供的型別。

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

類型參數

T

傳回

適用於