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

返回

适用于