C# 클래스 NFluent.Messages.InstanceBlock

Class describing block for any instance of a given type.
상속: IValueDescription
파일 보기 프로젝트 열기: tpierrain/NFluent

공개 메소드들

메소드 설명
GetMessage ( ) : string

Gets the message as a string.

InstanceBlock ( Type type ) : System

Initializes a new instance of the InstanceBlock 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.

메소드 상세

GetMessage() 공개 메소드

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

InstanceBlock() 공개 메소드

Initializes a new instance of the InstanceBlock class.
public InstanceBlock ( Type type ) : System
type System.Type /// The tested type. ///
리턴 System

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 System.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