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.Common.ExtendedTextWrapper Class Reference

ExtendedTextWrapper wraps a TextWriter and makes it look like an ExtendedTextWriter. All style indications are ignored. It's used when text is being written to a file. More...

+ Inheritance diagram for NUnit.Common.ExtendedTextWrapper:
+ Collaboration diagram for NUnit.Common.ExtendedTextWrapper:

Public Member Functions

 ExtendedTextWrapper (TextWriter writer)
 
override void Write (char value)
 Write a single char value More...
 
override void Write (string value)
 Write a string value More...
 
override void WriteLine (string value)
 Write a string value followed by a NewLine More...
 
override void Close ()
 Close the ExtendedTextWriter More...
 
override void Write (ColorStyle style, string value)
 Writes the value with the specified style. More...
 
override void WriteLine (ColorStyle style, string value)
 Writes the value with the specified style More...
 
override void WriteLabel (string label, object option)
 Writes the label and the option that goes with it. More...
 
override void WriteLabel (string label, object option, ColorStyle valueStyle)
 Writes the label and the option that goes with it. More...
 
override void WriteLabelLine (string label, object option)
 Writes the label and the option that goes with it followed by a new line. More...
 
override void WriteLabelLine (string label, object option, ColorStyle valueStyle)
 Writes the label and the option that goes with it followed by a new line. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Dispose the Extended TextWriter More...
 

Properties

override Encoding Encoding [get]
 Gets the encoding for this ExtendedTextWriter More...
 

Private Attributes

TextWriter _writer
 

Detailed Description

ExtendedTextWrapper wraps a TextWriter and makes it look like an ExtendedTextWriter. All style indications are ignored. It's used when text is being written to a file.

Constructor & Destructor Documentation

NUnit.Common.ExtendedTextWrapper.ExtendedTextWrapper ( TextWriter  writer)
inline

Member Function Documentation

override void NUnit.Common.ExtendedTextWrapper.Write ( char  value)
inline
override void NUnit.Common.ExtendedTextWrapper.Write ( string  value)
inline

Write a string value

override void NUnit.Common.ExtendedTextWrapper.WriteLine ( string  value)
inline
override void NUnit.Common.ExtendedTextWrapper.Close ( )
inline

Close the ExtendedTextWriter

override void NUnit.Common.ExtendedTextWrapper.Dispose ( bool  disposing)
inlineprotected

Dispose the Extended TextWriter

override void NUnit.Common.ExtendedTextWrapper.Write ( ColorStyle  style,
string  value 
)
inlinevirtual

Writes the value with the specified style.

Parameters
styleThe style.
valueThe value.

Implements NUnit.Common.ExtendedTextWriter.

override void NUnit.Common.ExtendedTextWrapper.WriteLine ( ColorStyle  style,
string  value 
)
inlinevirtual

Writes the value with the specified style

Parameters
styleThe style.
valueThe value.

Implements NUnit.Common.ExtendedTextWriter.

override void NUnit.Common.ExtendedTextWrapper.WriteLabel ( string  label,
object  option 
)
inlinevirtual

Writes the label and the option that goes with it.

Parameters
labelThe label.
optionThe option.

Implements NUnit.Common.ExtendedTextWriter.

Referenced by NUnit.Common.Tests.ExtendedTextWrapperTests.WriteLabel(), and NUnit.Common.Tests.ExtendedTextWrapperTests.WriteLabel_ColorStyle().

override void NUnit.Common.ExtendedTextWrapper.WriteLabel ( string  label,
object  option,
ColorStyle  valueStyle 
)
inlinevirtual

Writes the label and the option that goes with it.

Parameters
labelThe label.
optionThe option.
valueStyleThe color to display the value with

Implements NUnit.Common.ExtendedTextWriter.

override void NUnit.Common.ExtendedTextWrapper.WriteLabelLine ( string  label,
object  option 
)
inlinevirtual

Writes the label and the option that goes with it followed by a new line.

Parameters
labelThe label.
optionThe option.

Implements NUnit.Common.ExtendedTextWriter.

Referenced by NUnit.Common.Tests.ExtendedTextWrapperTests.WriteLabelLine(), and NUnit.Common.Tests.ExtendedTextWrapperTests.WriteLabelLine_ColorStyle().

override void NUnit.Common.ExtendedTextWrapper.WriteLabelLine ( string  label,
object  option,
ColorStyle  valueStyle 
)
inlinevirtual

Writes the label and the option that goes with it followed by a new line.

Parameters
labelThe label.
optionThe option.
valueStyleThe color to display the value with

Implements NUnit.Common.ExtendedTextWriter.

Member Data Documentation

TextWriter NUnit.Common.ExtendedTextWrapper._writer
private

Property Documentation

override Encoding NUnit.Common.ExtendedTextWrapper.Encoding
get

Gets the encoding for this ExtendedTextWriter


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