Class ExtendedTextWrapper
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.
Inheritance
Inherited Members
Namespace: NUnit.Common
Assembly: nunitlite.dll
Syntax
public class ExtendedTextWrapper : ExtendedTextWriter, IDisposable, IAsyncDisposable
Constructors
View SourceExtendedTextWrapper(TextWriter)
Declaration
public ExtendedTextWrapper(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | writer |
ExtendedTextWrapper(TextWriter, bool)
Declaration
public ExtendedTextWrapper(TextWriter writer, bool shouldDisposeWriter)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | writer | |
bool | shouldDisposeWriter |
Properties
View SourceEncoding
Gets the encoding for this ExtendedTextWriter
Declaration
public override Encoding Encoding { get; }
Property Value
Type | Description |
---|---|
Encoding |
Overrides
Methods
View SourceDispose(bool)
Dispose the Extended TextWriter
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
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 SourceWrite(char)
Write a single char value
Declaration
public override void Write(char value)
Parameters
Type | Name | Description |
---|---|---|
char | value |
Overrides
View SourceWrite(string)
Write a string value
Declaration
public override void Write(string value)
Parameters
Type | Name | Description |
---|---|---|
string | 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.
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. |
Overrides
View SourceWriteLine(string)
Write a string value followed by a NewLine
Declaration
public override void WriteLine(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value |