Class ExtendedTextWriter
ExtendedTextWriter extends the TextWriter abstract class to support displaying text in color.
Inherited Members
Namespace: NUnit.Common
Assembly: nunitlite.dll
Syntax
public abstract class ExtendedTextWriter : TextWriter, IDisposable, IAsyncDisposable
Constructors
View SourceExtendedTextWriter()
Declaration
protected ExtendedTextWriter()
Methods
View SourceWrite(ColorStyle, string)
Writes the value with the specified style.
Declaration
public abstract void Write(ColorStyle style, string value)
Parameters
Type | Name | Description |
---|---|---|
ColorStyle | style | The style. |
string | value | The value. |
WriteLabel(string, object)
Writes the label and the option that goes with it.
Declaration
public abstract void WriteLabel(string label, object option)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label. |
object | option | The option. |
WriteLabel(string, object, ColorStyle)
Writes the label and the option that goes with it.
Declaration
public abstract void WriteLabel(string label, object option, ColorStyle valueStyle)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label. |
object | option | The option. |
ColorStyle | valueStyle | The color to display the value with |
WriteLabelLine(string, object)
Writes the label and the option that goes with it followed by a new line.
Declaration
public abstract void WriteLabelLine(string label, object option)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label. |
object | option | The option. |
WriteLabelLine(string, object, ColorStyle)
Writes the label and the option that goes with it followed by a new line.
Declaration
public abstract void WriteLabelLine(string label, object option, ColorStyle valueStyle)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label. |
object | option | The option. |
ColorStyle | valueStyle | The color to display the value with |
WriteLine(ColorStyle, string)
Writes the value with the specified style
Declaration
public abstract void WriteLine(ColorStyle style, string value)
Parameters
Type | Name | Description |
---|---|---|
ColorStyle | style | The style. |
string | value | The value. |