Table of Contents

Class TestAssemblyDiscoveryFinished

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Reports that runner has just finished discovery for a test assembly. This message will arrive after the test framework's IDiscoveryComplete message, and contains the project metadata associated with the discovery.

public class TestAssemblyDiscoveryFinished : IMessageSinkMessage, IJsonSerializable
Inheritance
TestAssemblyDiscoveryFinished
Implements
Inherited Members
Extension Methods

Remarks

This message does not support serialization or deserialization.

Properties

Assembly

Gets information about the assembly being discovered.

public required XunitProjectAssembly Assembly { get; set; }

Property Value

XunitProjectAssembly

DiscoveryOptions

Gets the options that were used during discovery.

public required ITestFrameworkDiscoveryOptions DiscoveryOptions { get; set; }

Property Value

ITestFrameworkDiscoveryOptions

TestCasesToRun

Gets the count of the number of test cases that will be run (post-filtering).

public int TestCasesToRun { get; set; }

Property Value

int

Methods

ToJson()

Converts the given object to JSON.

public string? ToJson()

Returns

string

Returns the object in JSON form, if possible; returns null if the object cannot be represented in JSON form.