C# Class UnityEngine.NUnit.Framework.Constraints.ConstraintExpressionBase

ConstraintExpressionBase is the abstract base class for the ConstraintExpression class, which represents a compound constraint in the process of being constructed from a series of syntactic elements. NOTE: ConstraintExpressionBase is separate because the ConstraintExpression class was generated in earlier versions of NUnit. The two classes may be combined in a future version.
Mostrar archivo Open project: Unity-Technologies/nunitv2

Protected Properties

Property Type Description
builder ConstraintBuilder

Public Methods

Method Description
Append ( Constraint constraint ) : Constraint

Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built.

Append ( ConstraintOperator op ) : ConstraintExpression

Appends an operator to the expression and returns the resulting expression itself.

Append ( SelfResolvingOperator op ) : ResolvableConstraintExpression

Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.

ConstraintExpressionBase ( ) : System

Initializes a new instance of the T:ConstraintExpressionBase class.

ConstraintExpressionBase ( ConstraintBuilder builder ) : System

Initializes a new instance of the T:ConstraintExpressionBase class passing in a ConstraintBuilder, which may be pre-populated.

ToString ( ) : string

Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression.

Method Details

Append() public method

Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built.
public Append ( Constraint constraint ) : Constraint
constraint Constraint
return Constraint

Append() public method

Appends an operator to the expression and returns the resulting expression itself.
public Append ( ConstraintOperator op ) : ConstraintExpression
op ConstraintOperator
return ConstraintExpression

Append() public method

Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.
public Append ( SelfResolvingOperator op ) : ResolvableConstraintExpression
op SelfResolvingOperator
return ResolvableConstraintExpression

ConstraintExpressionBase() public method

Initializes a new instance of the T:ConstraintExpressionBase class.
public ConstraintExpressionBase ( ) : System
return System

ConstraintExpressionBase() public method

Initializes a new instance of the T:ConstraintExpressionBase class passing in a ConstraintBuilder, which may be pre-populated.
public ConstraintExpressionBase ( ConstraintBuilder builder ) : System
builder ConstraintBuilder The builder.
return System

ToString() public method

Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression.
public ToString ( ) : string
return string

Property Details

builder protected_oe property

The ConstraintBuilder holding the elements recognized so far
protected ConstraintBuilder builder
return ConstraintBuilder