<PackageReference Include="NUnit" Version="3.11.0" />

TestMessage

public sealed class TestMessage
The TestMessage class holds a message sent by a test to all listeners
public string Destination { get; }

The Destination of the message.

public string Message { get; }

The message to send to listeners

public string TestId { get; }

The ID of the test that sent the message

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

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

public string ToXml()

Returns the XML representation of the TestMessage object.