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

TypeConstraint is the abstract base for constraints that take a Type as their expected value.
Наследование: Constraint
Показать файл Открыть проект

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

Свойство Тип Описание
expectedType System.Type

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

Метод Описание
TypeConstraint ( Type type ) : System

Construct a TypeConstraint for a given Type

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter. TypeConstraints override this method to write the name of the type.

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

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

Construct a TypeConstraint for a given Type
public TypeConstraint ( Type type ) : System
type System.Type
Результат System

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

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

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

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

The expected Type used by the constraint
protected Type,System expectedType
Результат System.Type