IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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...
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 |
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.
|
inline |
Construct a TextCapture object
defaultWriter | The default destination for non-intercepted output |
|
inline |
Writes a single character
value | The char to write |
References NUnit.Framework.Internal.TestExecutionContext.CurrentResult, NUnit.Framework.Internal.TestExecutionContext.GetTestExecutionContext(), and NUnit.Framework.Internal.TestResult.OutWriter.
|
inline |
Writes a string
value | The string to write |
References NUnit.Framework.Internal.TestExecutionContext.CurrentResult, NUnit.Framework.Internal.TestExecutionContext.GetTestExecutionContext(), and NUnit.Framework.Internal.TestResult.OutWriter.
|
inline |
Writes a string followed by a line terminator
value | The string to write |
References NUnit.Framework.Internal.TestExecutionContext.CurrentResult, NUnit.Framework.Internal.TestExecutionContext.GetTestExecutionContext(), and NUnit.Framework.Internal.TestResult.OutWriter.
|
private |
|
get |
Gets the Encoding in use by this TextWriter