Search Results for

    Show / Hide Table of Contents

    Class ColorConsoleWriter

    Inheritance
    object
    MarshalByRefObject
    TextWriter
    ExtendedTextWriter
    ExtendedTextWrapper
    ColorConsoleWriter
    Implements
    IDisposable
    IAsyncDisposable
    Inherited Members
    ExtendedTextWrapper.Write(char)
    ExtendedTextWrapper.Write(string)
    ExtendedTextWrapper.WriteLine(string)
    ExtendedTextWrapper.Dispose(bool)
    ExtendedTextWrapper.Encoding
    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 ColorConsoleWriter : ExtendedTextWrapper, IDisposable, IAsyncDisposable

    Constructors

    View Source

    ColorConsoleWriter()

    Construct a ColorConsoleWriter.

    Declaration
    public ColorConsoleWriter()
    View Source

    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 Source

    ColorEnabled

    Declaration
    public bool ColorEnabled
    Field Value
    Type Description
    bool

    Methods

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

    WriteLabel(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
    ExtendedTextWrapper.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
    ExtendedTextWrapper.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
    ExtendedTextWrapper.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
    ExtendedTextWrapper.WriteLine(ColorStyle, 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