Table of Contents

Class InternalTraceWriter

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

A trace listener that writes to a separate file per domain and process using it.

public class InternalTraceWriter : TextWriter, IDisposable, IAsyncDisposable
Inheritance
InternalTraceWriter
Implements
Inherited Members

Constructors

InternalTraceWriter(TextWriter)

Construct an InternalTraceWriter that writes to a TextWriter provided by the caller.

public InternalTraceWriter(TextWriter writer)

Parameters

writer TextWriter

InternalTraceWriter(string)

Construct an InternalTraceWriter that writes to a file.

public InternalTraceWriter(string logPath)

Parameters

logPath string

Path to the file to use

Properties

Encoding

Returns the character encoding in which the output is written.

public override Encoding Encoding { get; }

Property Value

Encoding

The character encoding in which the output is written.

Methods

Dispose(bool)

Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Flush()

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

public override void Flush()

Write(char)

Writes a character to the text string or stream.

public override void Write(char value)

Parameters

value char

The character to write to the text stream.

Write(string)

Writes a string to the text string or stream.

public override void Write(string value)

Parameters

value string

The string to write.

WriteLine(string)

Writes a string followed by a line terminator to the text string or stream.

public override void WriteLine(string value)

Parameters

value string

The string to write. If value is null, only the line terminator is written.