Class TestResultMessage
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
Default implementation of ITestResultMessage.
public abstract class TestResultMessage : TestMessage, IJsonDeserializable, ITestResultMessage, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionMetadata
- Inheritance
-
TestResultMessage
- Implements
- Derived
- Inherited Members
-
MessageSinkMessage.ToDisplayString<T>(T[])
- Extension Methods
-
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})
Properties
- ExecutionTime
The time spent executing the test, in seconds. Will be 0 if the test was not executed.
- FinishTime
Gets the date and time when the test execution finished.
- Warnings
Gets a list of the warning messages that were recorded during execution. Will be
null
if there were no warnings.
Methods
- Deserialize(IReadOnlyDictionary<string, object?>)
Override to deserialize the values in the dictionary into the message.
- Serialize(JsonObjectSerializer)
Override to serialize the values in the message into JSON.