Class TestMethodStarting
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
Default implementation of ITestMethodStarting.
[JsonTypeID("test-method-starting")]
public sealed class TestMethodStarting : TestMethodMessage, IJsonDeserializable, ITestMethodStarting, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, ITestMethodMetadata
- Inheritance
-
TestMethodStarting
- Implements
- Inherited Members
- Extension Methods
-
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})
Properties
- MethodName
Gets the name of the test method that is associated with this message.
- Traits
Gets the trait values associated with this test method (and the test class, test collection, and test assembly). If there are none, or the framework does not support traits, this returns an empty dictionary (not
null
).
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.