Class ColorConsoleWriter
Inheritance
ColorConsoleWriter
Inherited Members
Namespace: NUnit.Common
Assembly: nunitlite.dll
Syntax
public class ColorConsoleWriter : ExtendedTextWrapper, IDisposable, IAsyncDisposable
Constructors
View SourceColorConsoleWriter()
Construct a ColorConsoleWriter.
Declaration
public ColorConsoleWriter()
ColorConsoleWriter(bool)
Construct a ColorConsoleWriter.
Declaration
public ColorConsoleWriter(bool colorEnabled)
Parameters
Type | Name | Description |
---|---|---|
bool | colorEnabled | Flag indicating whether color should be enabled |
Fields
View SourceColorEnabled
Declaration
public bool ColorEnabled
Field Value
Type | Description |
---|---|
bool |
Methods
View SourceWrite(ColorStyle, string)
Writes the value with the specified style.
Declaration
public override void Write(ColorStyle style, string value)
Parameters
Type | Name | Description |
---|---|---|
ColorStyle | style | The style. |
string | value | The value. |
Overrides
View SourceWriteLabel(string, object)
Writes the label and the option that goes with it.
Declaration
public override void WriteLabel(string label, object option)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label. |
object | option | The option. |
Overrides
View SourceWriteLabel(string, object, ColorStyle)
Writes the label and the option that goes with it and optionally writes a new line.
Declaration
public override 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 |
Overrides
View SourceWriteLabelLine(string, object)
Writes the label and the option that goes with it followed by a new line.
Declaration
public override void WriteLabelLine(string label, object option)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label. |
object | option | The option. |
Overrides
View SourceWriteLabelLine(string, object, ColorStyle)
Writes the label and the option that goes with it followed by a new line.
Declaration
public override 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 |
Overrides
View SourceWriteLine(ColorStyle, string)
Writes the value with the specified style.
Declaration
public override void WriteLine(ColorStyle style, string value)
Parameters
Type | Name | Description |
---|---|---|
ColorStyle | style | The style. |
string | value | The value. |