ConstraintFactory.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 NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute (Type expectedType);
member this.Attribute : Type -> NUnit.Framework.Constraints.ResolvableConstraintExpression

Parameters

expectedType
Type

Returns

ResolvableConstraintExpression

Applies to

Attribute<T>()

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

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

Type Parameters

T

Returns

ResolvableConstraintExpression

Applies to