C# Класс NFluent.Messages.EnumerationBlock

Class describing a value block.
Наследование: IValueDescription
Показать файл Открыть проект

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

Метод Описание
EnumerationBlock ( IEnumerable test, long referenceIndex ) : System

Initializes a new instance of the EnumerationBlock class.

GetMessage ( ) : string

Gets the message as a string.

WithEnumerableCount ( long itemsCount ) : void

Adds a description of the number of items (only relevant if the object is an enumerable).

WithHashCode ( bool active = true ) : void

Requests that the Hash value is included in the description block.

WithType ( Type forcedType ) : void

Requests that a specific type is included in the description block.

Default type is the type of the object instance given in constructor.

WithType ( bool active = true, bool full = false ) : void

Requests that the type is included in the description block.

Приватные методы

Метод Описание
Description ( ) : string

The description.

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

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

Initializes a new instance of the EnumerationBlock class.
public EnumerationBlock ( IEnumerable test, long referenceIndex ) : System
test IEnumerable The tested object.
referenceIndex long Index of the reference value.
Результат System

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

Gets the message as a string.
public GetMessage ( ) : string
Результат string

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

Adds a description of the number of items (only relevant if the object is an enumerable).
public WithEnumerableCount ( long itemsCount ) : void
itemsCount long /// The number of items of the enumerable instance. ///
Результат void

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

Requests that the Hash value is included in the description block.
public WithHashCode ( bool active = true ) : void
active bool /// True to include the type. This is the default value. ///
Результат void

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

Requests that a specific type is included in the description block.
Default type is the type of the object instance given in constructor.
public WithType ( Type forcedType ) : void
forcedType Type /// Type to include in the description. ///
Результат void

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

Requests that the type is included in the description block.
public WithType ( bool active = true, bool full = false ) : void
active bool /// True to include the type. This is the default value. ///
full bool /// True to display the full type name (with assembly). ///
Результат void