Class PropOperator
Operator used to test for the presence of a named Property on an object and optionally apply further tests to the value of that property.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class PropOperator : SelfResolvingOperator
Constructors
View SourcePropOperator(string)
Constructs a PropOperator for a particular named property
Declaration
public PropOperator(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Properties
View SourceName
Gets the name of the property to which the operator applies
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
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 |