Has.Attribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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