C# Класс PclUnit.Constraints.Pieces.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.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
builder ConstraintBuilder

Открытые методы

Метод Описание
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 ( )

Initializes a new instance of the T:ConstraintExpressionBase class.

ConstraintExpressionBase ( ConstraintBuilder builder )

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.

Описание методов

Append() публичный Метод

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
Результат Constraint

Append() публичный Метод

Appends an operator to the expression and returns the resulting expression itself.
public Append ( ConstraintOperator op ) : ConstraintExpression
op ConstraintOperator
Результат ConstraintExpression

Append() публичный Метод

Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.
public Append ( SelfResolvingOperator op ) : ResolvableConstraintExpression
op SelfResolvingOperator
Результат ResolvableConstraintExpression

ConstraintExpressionBase() публичный Метод

Initializes a new instance of the T:ConstraintExpressionBase class.

ConstraintExpressionBase() публичный Метод

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

ToString() публичный Метод

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
Результат string

Описание свойств

builder защищенное свойство

The ConstraintBuilder holding the elements recognized so far
protected ConstraintBuilder,PclUnit.Constraints.Pieces builder
Результат ConstraintBuilder