Düzenle

Aracılığıyla paylaş


Has.Attribute Method

Definition

Overloads

Attribute(Type)

Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.

Attribute<T>()

Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.

Attribute(Type)

Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.

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

Parameters

expectedType
Type

Returns

Applies to

Attribute<T>()

Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.

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

Type Parameters

T

Returns

Applies to