Search Results for

    Show / Hide Table of Contents

    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
    object
    MarshalByRefObject
    TextWriter
    ExtendedTextWriter
    ExtendedTextWrapper
    ColorConsoleWriter
    Implements
    IDisposable
    IAsyncDisposable
    Inherited Members
    TextWriter.Null
    TextWriter.CoreNewLine
    TextWriter.Close()
    TextWriter.Dispose()
    TextWriter.DisposeAsync()
    TextWriter.Flush()
    TextWriter.Write(char[])
    TextWriter.Write(char[], int, int)
    TextWriter.Write(ReadOnlySpan<char>)
    TextWriter.Write(bool)
    TextWriter.Write(int)
    TextWriter.Write(uint)
    TextWriter.Write(long)
    TextWriter.Write(ulong)
    TextWriter.Write(float)
    TextWriter.Write(double)
    TextWriter.Write(decimal)
    TextWriter.Write(object)
    TextWriter.Write(StringBuilder)
    TextWriter.Write(string, object)
    TextWriter.Write(string, object, object)
    TextWriter.Write(string, object, object, object)
    TextWriter.Write(string, params object[])
    TextWriter.Write(string, params ReadOnlySpan<object>)
    TextWriter.WriteLine()
    TextWriter.WriteLine(char)
    TextWriter.WriteLine(char[])
    TextWriter.WriteLine(char[], int, int)
    TextWriter.WriteLine(ReadOnlySpan<char>)
    TextWriter.WriteLine(bool)
    TextWriter.WriteLine(int)
    TextWriter.WriteLine(uint)
    TextWriter.WriteLine(long)
    TextWriter.WriteLine(ulong)
    TextWriter.WriteLine(float)
    TextWriter.WriteLine(double)
    TextWriter.WriteLine(decimal)
    TextWriter.WriteLine(StringBuilder)
    TextWriter.WriteLine(object)
    TextWriter.WriteLine(string, object)
    TextWriter.WriteLine(string, object, object)
    TextWriter.WriteLine(string, object, object, object)
    TextWriter.WriteLine(string, params object[])
    TextWriter.WriteLine(string, params ReadOnlySpan<object>)
    TextWriter.WriteAsync(char)
    TextWriter.WriteAsync(string)
    TextWriter.WriteAsync(StringBuilder, CancellationToken)
    TextWriter.WriteAsync(char[])
    TextWriter.WriteAsync(char[], int, int)
    TextWriter.WriteAsync(ReadOnlyMemory<char>, CancellationToken)
    TextWriter.WriteLineAsync(char)
    TextWriter.WriteLineAsync(string)
    TextWriter.WriteLineAsync(StringBuilder, CancellationToken)
    TextWriter.WriteLineAsync(char[])
    TextWriter.WriteLineAsync(char[], int, int)
    TextWriter.WriteLineAsync(ReadOnlyMemory<char>, CancellationToken)
    TextWriter.WriteLineAsync()
    TextWriter.FlushAsync()
    TextWriter.FlushAsync(CancellationToken)
    TextWriter.Synchronized(TextWriter)
    TextWriter.CreateBroadcasting(params TextWriter[])
    TextWriter.FormatProvider
    TextWriter.NewLine
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(bool)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Common
    Assembly: nunitlite.dll
    Syntax
    public class ExtendedTextWrapper : ExtendedTextWriter, IDisposable, IAsyncDisposable

    Constructors

    View Source

    ExtendedTextWrapper(TextWriter)

    Declaration
    public ExtendedTextWrapper(TextWriter writer)
    Parameters
    Type Name Description
    TextWriter writer
    View Source

    ExtendedTextWrapper(TextWriter, bool)

    Declaration
    public ExtendedTextWrapper(TextWriter writer, bool shouldDisposeWriter)
    Parameters
    Type Name Description
    TextWriter writer
    bool shouldDisposeWriter

    Properties

    View Source

    Encoding

    Gets the encoding for this ExtendedTextWriter

    Declaration
    public override Encoding Encoding { get; }
    Property Value
    Type Description
    Encoding
    Overrides
    TextWriter.Encoding

    Methods

    View Source

    Dispose(bool)

    Dispose the Extended TextWriter

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    TextWriter.Dispose(bool)
    View Source

    Write(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
    ExtendedTextWriter.Write(ColorStyle, string)
    View Source

    Write(char)

    Write a single char value

    Declaration
    public override void Write(char value)
    Parameters
    Type Name Description
    char value
    Overrides
    TextWriter.Write(char)
    View Source

    Write(string)

    Write a string value

    Declaration
    public override void Write(string value)
    Parameters
    Type Name Description
    string value
    Overrides
    TextWriter.Write(string)
    View Source

    WriteLabel(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
    ExtendedTextWriter.WriteLabel(string, object)
    View Source

    WriteLabel(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
    ExtendedTextWriter.WriteLabel(string, object, ColorStyle)
    View Source

    WriteLabelLine(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
    ExtendedTextWriter.WriteLabelLine(string, object)
    View Source

    WriteLabelLine(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
    ExtendedTextWriter.WriteLabelLine(string, object, ColorStyle)
    View Source

    WriteLine(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
    ExtendedTextWriter.WriteLine(ColorStyle, string)
    View Source

    WriteLine(string)

    Write a string value followed by a NewLine

    Declaration
    public override void WriteLine(string value)
    Parameters
    Type Name Description
    string value
    Overrides
    TextWriter.WriteLine(string)

    Implements

    IDisposable
    IAsyncDisposable
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0