Table of Contents

Class DiscoveryStarting

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Default implementation of IDiscoveryStarting.

[JsonTypeID("discovery-starting")]
public sealed class DiscoveryStarting : TestAssemblyMessage, IDiscoveryStarting, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable
Inheritance
DiscoveryStarting
Implements
Inherited Members

Properties

AssemblyName

Gets the assembly name. May return a simple assembly name (i.e., "mscorlib"), or may return a fully qualified name (i.e., "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").

public required string AssemblyName { get; set; }

Property Value

string

AssemblyPath

Gets the on-disk location of the assembly under test.

public required string AssemblyPath { get; set; }

Property Value

string

ConfigFilePath

Gets the full path of the configuration file name, if one is present. May be null if there is no configuration file.

public required string? ConfigFilePath { get; set; }

Property Value

string

Methods

Serialize(JsonObjectSerializer)

Override to serialize the values in the message into JSON.

protected override void Serialize(JsonObjectSerializer serializer)

Parameters

serializer JsonObjectSerializer

The serializer to write values to.

ToString()

public override string ToString()

Returns

string

ValidateObjectState(HashSet<string>)

Called before serializing the message. Implementers are expected to call ValidatePropertyIsNotNull(object?, string, HashSet<string>) for each property that must have a value, to record invalid property values into the provided hash set.

protected override void ValidateObjectState(HashSet<string> invalidProperties)

Parameters

invalidProperties HashSet<string>

The hash set to record invalid properties into