IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.Execution.TextCapture Class Reference

The TextCapture class intercepts console output and writes it to the current execution context, if one is present on the thread. If no execution context is found, the output is written to a default destination, normally the original destination of the intercepted output. More...

+ Inheritance diagram for NUnit.Framework.Internal.Execution.TextCapture:
+ Collaboration diagram for NUnit.Framework.Internal.Execution.TextCapture:

Public Member Functions

 TextCapture (TextWriter defaultWriter)
 Construct a TextCapture object More...
 
override void Write (char value)
 Writes a single character More...
 
override void Write (string value)
 Writes a string More...
 
override void WriteLine (string value)
 Writes a string followed by a line terminator More...
 

Properties

override System.Text.Encoding Encoding [get]
 Gets the Encoding in use by this TextWriter More...
 

Private Attributes

TextWriter _defaultWriter
 

Detailed Description

The TextCapture class intercepts console output and writes it to the current execution context, if one is present on the thread. If no execution context is found, the output is written to a default destination, normally the original destination of the intercepted output.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Execution.TextCapture.TextCapture ( TextWriter  defaultWriter)
inline

Construct a TextCapture object

Parameters
defaultWriterThe default destination for non-intercepted output

Member Function Documentation

override void NUnit.Framework.Internal.Execution.TextCapture.Write ( char  value)
inline
override void NUnit.Framework.Internal.Execution.TextCapture.Write ( string  value)
inline
override void NUnit.Framework.Internal.Execution.TextCapture.WriteLine ( string  value)
inline

Member Data Documentation

TextWriter NUnit.Framework.Internal.Execution.TextCapture._defaultWriter
private

Property Documentation

override System.Text.Encoding NUnit.Framework.Internal.Execution.TextCapture.Encoding
get

Gets the Encoding in use by this TextWriter


The documentation for this class was generated from the following file: