Search Results for

    Show / Hide Table of Contents

    Class ExtendedTextWriter

    ExtendedTextWriter extends the TextWriter abstract class to support displaying text in color.

    Inheritance
    object
    MarshalByRefObject
    TextWriter
    ExtendedTextWriter
    ExtendedTextWrapper
    Implements
    IDisposable
    IAsyncDisposable
    Inherited Members
    TextWriter.Null
    TextWriter.CoreNewLine
    TextWriter.Close()
    TextWriter.Dispose(bool)
    TextWriter.Dispose()
    TextWriter.DisposeAsync()
    TextWriter.Flush()
    TextWriter.Write(char)
    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(string)
    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(string)
    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.Encoding
    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 abstract class ExtendedTextWriter : TextWriter, IDisposable, IAsyncDisposable

    Constructors

    View Source

    ExtendedTextWriter()

    Declaration
    protected ExtendedTextWriter()

    Methods

    View Source

    Write(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.

    View Source

    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.

    View Source

    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

    View Source

    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.

    View Source

    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

    View Source

    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.

    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