次の方法で共有


ConstraintFactory.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

戻り値

適用対象