C# Class NFluent.Messages.ValueBlock

Class describing a value block.
Inheritance: IValueDescription
Afficher le fichier Open project: tpierrain/NFluent

Méthodes publiques

Méthode Description
GetMessage ( ) : string

Gets the message as a string.

ValueBlock ( object test ) : System

Initializes a new instance of the ValueBlock class.

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.

Private Methods

Méthode Description
Description ( ) : string

The description.

Method Details

GetMessage() public méthode

Gets the message as a string.
public GetMessage ( ) : string
Résultat string

ValueBlock() public méthode

Initializes a new instance of the ValueBlock class.
public ValueBlock ( object test ) : System
test object /// The tested object. ///
Résultat System

WithEnumerableCount() public méthode

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. ///
Résultat void

WithHashCode() public méthode

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. ///
Résultat void

WithType() public méthode

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. ///
Résultat void

WithType() public méthode

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). ///
Résultat void