Search Results for

    Show / Hide Table of Contents

    Class OutputWriter

    OutputWriter is an abstract class used to write test results to a file in various formats. Specific OutputWriters are derived from this class.

    Inheritance
    object
    OutputWriter
    NUnit2XmlOutputWriter
    NUnit3XmlOutputWriter
    TestCaseOutputWriter
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnitLite
    Assembly: nunitlite.dll
    Syntax
    public abstract class OutputWriter

    Constructors

    View Source

    OutputWriter()

    Declaration
    protected OutputWriter()

    Methods

    View Source

    WriteResultFile(ITestResult, TextWriter, IDictionary<string, object>, TestFilter)

    Abstract method that writes a test result to a TextWriter

    Declaration
    public abstract void WriteResultFile(ITestResult result, TextWriter writer, IDictionary<string, object> runSettings, TestFilter filter)
    Parameters
    Type Name Description
    ITestResult result

    The result to be written

    TextWriter writer

    A TextWriter to which the result is written

    IDictionary<string, object> runSettings

    A dictionary of settings used for this test run

    TestFilter filter
    View Source

    WriteResultFile(ITestResult, string, IDictionary<string, object>, TestFilter)

    Writes a test result to a file

    Declaration
    public void WriteResultFile(ITestResult result, string outputPath, IDictionary<string, object> runSettings, TestFilter filter)
    Parameters
    Type Name Description
    ITestResult result

    The result to be written

    string outputPath

    Path to the file to which the result is written

    IDictionary<string, object> runSettings

    A dictionary of settings used for this test run

    TestFilter filter

    The filter to apply

    View Source

    WriteTestFile(ITest, TextWriter)

    Abstract method that writes test info to a TextWriter

    Declaration
    public abstract void WriteTestFile(ITest test, TextWriter writer)
    Parameters
    Type Name Description
    ITest test

    The test to be written

    TextWriter writer

    A TextWriter to which the test info is written

    View Source

    WriteTestFile(ITest, string)

    Writes test info to a file

    Declaration
    public void WriteTestFile(ITest test, string outputPath)
    Parameters
    Type Name Description
    ITest test

    The test to be written

    string outputPath

    Path to the file to which the test info is written

    • 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