C# Класс PclUnit.Constraints.Pieces.NotConstraint

NotConstraint negates the effect of some other constraint
Наследование: PrefixConstraint
Показать файл Открыть проект

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

Метод Описание
Matches ( object actual ) : bool

Test whether the constraint is satisfied by a given value

NotConstraint ( Constraint baseConstraint ) : System

Initializes a new instance of the T:NotConstraint class.

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

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

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

Test whether the constraint is satisfied by a given value
public Matches ( object actual ) : bool
actual object The value to be tested
Результат bool

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

Initializes a new instance of the T:NotConstraint class.
public NotConstraint ( Constraint baseConstraint ) : System
baseConstraint Constraint The base constraint to be negated.
Результат System

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

Write the actual value for a failing constraint test to a MessageWriter.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the actual value is displayed
Результат void

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

Write the constraint description to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the description is displayed
Результат void