Table of Contents

Class TestMessage

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

The TestMessage class holds a message sent by a test to all listeners

public sealed class TestMessage
Inheritance
TestMessage
Inherited Members

Constructors

TestMessage(string, string, string?)

Construct with text, destination type and the name of the test that produced the message.

public TestMessage(string destination, string text, string? testId)

Parameters

destination string

Destination of the message

text string

Text to be sent

testId string

ID of the test that produced the message

Properties

Destination

The Destination of the message.

public string Destination { get; }

Property Value

string

Message

The message to send to listeners

public string Message { get; }

Property Value

string

TestId

The ID of the test that sent the message

public string? TestId { get; }

Property Value

string

Methods

ToString()

Converts TestMessage object to string

public override string ToString()

Returns

string

ToXml()

Returns the XML representation of the TestMessage object.

public string ToXml()

Returns

string