C# Класс Tests.NAnt.Core.Util.ConsoleCapture

Captures console output to a string.
Used to capture the output so that it can be tested.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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