Table of Contents

Class AttributeOperator

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

Operator that tests for the presence of a particular attribute on a type and optionally applies further tests to the attribute.

public class AttributeOperator : SelfResolvingOperator
Inheritance
AttributeOperator
Inherited Members

Constructors

AttributeOperator(Type)

Construct an AttributeOperator for a particular Type

public AttributeOperator(Type type)

Parameters

type Type

The Type of attribute tested

Methods

Reduce(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.

public override void Reduce(ConstraintBuilder.ConstraintStack stack)

Parameters

stack ConstraintBuilder.ConstraintStack