C# Class Tests.NAnt.Core.Util.ConsoleCapture

Captures console output to a string.
Used to capture the output so that it can be tested.
Inheritance: IDisposable
Datei anzeigen Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
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.

Method Details

Close() public method

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

ConsoleCapture() public method

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

Dispose() public method

public Dispose ( ) : void
return void

ToString() public method

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