次の方法で共有


Has.Attribute メソッド

定義

オーバーロード

Attribute(Type)

オブジェクトに特定の属性が存在するかどうかを確認する新しい AttributeConstraint を返します。

Attribute<T>()

オブジェクトに特定の属性が存在するかどうかを確認する新しい AttributeConstraint を返します。

Attribute(Type)

オブジェクトに特定の属性が存在するかどうかを確認する新しい AttributeConstraint を返します。

public static NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute (Type expectedType);
static member Attribute : Type -> NUnit.Framework.Constraints.ResolvableConstraintExpression

パラメーター

expectedType
Type

戻り値

適用対象

Attribute<T>()

オブジェクトに特定の属性が存在するかどうかを確認する新しい AttributeConstraint を返します。

public static NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute<T> ();
static member Attribute : unit -> NUnit.Framework.Constraints.ResolvableConstraintExpression

型パラメーター

T

戻り値

適用対象