Class TestClassStarting
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
Default implementation of ITestClassStarting.
[JsonTypeID("test-class-starting")]
public sealed class TestClassStarting : TestClassMessage, IJsonDeserializable, ITestClassStarting, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, ITestClassMetadata
- Inheritance
-
TestClassStarting
- Implements
- Inherited Members
- Extension Methods
-
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})
Properties
- TestClassName
Gets the full name of the test class (i.e., FullName).
- TestClassNamespace
Gets the namespace of the class where the test is defined. Will return
null
for classes not residing in a namespace.
- TestClassSimpleName
Gets the simple name of the test class (the class name without namespace).
- Traits
Gets the trait values associated with this test class (and the 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.