C# 클래스 NFluent.Extensibility.MessageBlock

Class describing a message block.
파일 보기 프로젝트 열기: tpierrain/NFluent 1 사용 예제들

공개 메소드들

메소드 설명
Comparison ( string comparison ) : MessageBlock

Adds a specific comparison message (e.g 'equal to').

GetMessage ( ) : string

Gets the message as a string.

Label ( string newLabel ) : MessageBlock

Specifies a specific attribute for the message.

OfType ( Type forcedType ) : MessageBlock

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

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

ToString ( ) : string

Returns a System.String that represents this instance.

WithEnumerableCount ( long itemsCount ) : MessageBlock

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

WithHashCode ( bool active = true ) : MessageBlock

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

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

Requests that the type is included in the description block.

비공개 메소드들

메소드 설명
FullLabel ( ) : string

The full label.

MessageBlock ( FluentMessage message, Type type, GenericLabelBlock label ) : System

Initializes a new instance of the MessageBlock class.

MessageBlock ( FluentMessage message, object test, GenericLabelBlock block, int index ) : System

Initializes a new instance of the MessageBlock class.

메소드 상세

Comparison() 공개 메소드

Adds a specific comparison message (e.g 'equal to').
public Comparison ( string comparison ) : MessageBlock
comparison string /// The comparison suffix. ///
리턴 MessageBlock

GetMessage() 공개 메소드

Gets the message as a string.
public GetMessage ( ) : string
리턴 string

Label() 공개 메소드

Specifies a specific attribute for the message.
public Label ( string newLabel ) : MessageBlock
newLabel string /// The new attribute. ///
리턴 MessageBlock

OfType() 공개 메소드

Requests that a specific type is included in the description block.
Default type is the type of the object instance given in constructor.
public OfType ( Type forcedType ) : MessageBlock
forcedType Type /// Type to include in the description. ///
리턴 MessageBlock

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

WithEnumerableCount() 공개 메소드

Adds a description of the number of items (only relevant if the object is an enumerable).
public WithEnumerableCount ( long itemsCount ) : MessageBlock
itemsCount long /// The number of items of the enumerable instance. ///
리턴 MessageBlock

WithHashCode() 공개 메소드

Requests that the Hash value is included in the description block.
public WithHashCode ( bool active = true ) : MessageBlock
active bool /// True to include the type. This is the default value. ///
리턴 MessageBlock

WithType() 공개 메소드

Requests that the type is included in the description block.
public WithType ( bool active = true, bool full = false ) : MessageBlock
active bool /// True to include the type. This is the default value. ///
full bool /// True to display the full type name (with assembly). ///
리턴 MessageBlock