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
stringDestination of the message
text
stringText to be sent
testId
stringID of the test that produced the message
Properties
Destination
The Destination of the message.
public string Destination { get; }
Property Value
Message
The message to send to listeners
public string Message { get; }
Property Value
TestId
The ID of the test that sent the message
public string? TestId { get; }
Property Value
Methods
ToString()
Converts TestMessage object to string
public override string ToString()
Returns
ToXml()
Returns the XML representation of the TestMessage object.
public string ToXml()