Class AttributeOperator
Operator that tests for the presence of a particular attribute on a type and optionally applies further tests to the attribute.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class AttributeOperator : SelfResolvingOperator
Constructors
View SourceAttributeOperator(Type)
Construct an AttributeOperator for a particular Type
Declaration
public AttributeOperator(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The Type of attribute tested |
Methods
View SourceReduce(ConstraintStack)
Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.
Declaration
public override void Reduce(ConstraintBuilder.ConstraintStack stack)
Parameters
Type | Name | Description |
---|---|---|
ConstraintBuilder.ConstraintStack | stack |