Table of Contents

Class DiscoveryComplete

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

Default implementation of IDiscoveryComplete.

[JsonTypeID("discovery-complete")]
public sealed class DiscoveryComplete : TestAssemblyMessage, IDiscoveryComplete, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable
Inheritance
DiscoveryComplete
Implements
Inherited Members

Properties

TestCasesToRun

Gets a count of the number of test cases that passed the filter and will be run.

public required int TestCasesToRun { get; set; }

Property Value

int

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