Class PrefixOperator
PrefixOperator takes a single constraint and modifies its action in some way.
Inheritance
PrefixOperator
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public abstract class PrefixOperator : ConstraintOperator
Constructors
View SourcePrefixOperator()
Declaration
protected PrefixOperator()
Methods
View SourceApplyPrefix(IConstraint)
Returns the constraint created by applying this prefix to another constraint.
Declaration
public abstract IConstraint ApplyPrefix(IConstraint constraint)
Parameters
Type | Name | Description |
---|---|---|
IConstraint | constraint |
Returns
Type | Description |
---|---|
IConstraint |
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.
Declaration
public override void Reduce(ConstraintBuilder.ConstraintStack stack)
Parameters
Type | Name | Description |
---|---|---|
ConstraintBuilder.ConstraintStack | stack |