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

AssignableFromConstraint is used to test that an object can be assigned from a given Type.
Наследование: TypeConstraint
Показать файл Открыть проект

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

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

Construct an AssignableFromConstraint for the type provided

Matches ( object actual ) : bool

Test whether an object can be assigned from the specified type

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

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

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

Construct an AssignableFromConstraint for the type provided
public AssignableFromConstraint ( Type type ) : System
type System.Type
Результат System

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

Test whether an object can be assigned from the specified type
public Matches ( object actual ) : bool
actual object The object to be tested
Результат bool

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

Write a description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to use
Результат void