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

ExceptionTypeConstraint is a special version of ExactTypeConstraint used to provided detailed info about the exception thrown in an error message.
Наследование: ExactTypeConstraint
Показать файл Открыть проект

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

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

Constructs an ExceptionTypeConstraint

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter. Overriden to write additional information in the case of an Exception.

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

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

Constructs an ExceptionTypeConstraint
public ExceptionTypeConstraint ( Type type ) : System
type System.Type
Результат System

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

Write the actual value for a failing constraint test to a MessageWriter. Overriden to write additional information in the case of an Exception.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to use
Результат void