ConstraintExpression.InstanceOf 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 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