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
Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

ConsoleCapture() public méthode

Initializes a new instance of the ConsoleCapture class.
public ConsoleCapture ( ) : System
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ToString() public méthode

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