C# 클래스 Tests.NAnt.Core.Util.ConsoleCapture

Captures console output to a string.
Used to capture the output so that it can be tested.
상속: IDisposable
파일 보기 프로젝트 열기: skolima/NAnt 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : string

Restores console output and returns the contents of the captured buffer.

ConsoleCapture ( ) : System

Initializes a new instance of the ConsoleCapture class.

Dispose ( ) : void
ToString ( ) : string

Returns the contents of the capture buffer. Can be called after Close() is called.

메소드 상세

Close() 공개 메소드

Restores console output and returns the contents of the captured buffer.
public Close ( ) : string
리턴 string

ConsoleCapture() 공개 메소드

Initializes a new instance of the ConsoleCapture class.
public ConsoleCapture ( ) : System
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ToString() 공개 메소드

Returns the contents of the capture buffer. Can be called after Close() is called.
public ToString ( ) : string
리턴 string