Table of Contents

Method GetDiscoverer

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

GetDiscoverer(Type)

Gets the test case discover instance for the given discoverer type. The instances are cached and reused, since they should not be stateful.

protected static IXunitTestCaseDiscoverer? GetDiscoverer(Type discovererType)

Parameters

discovererType Type

The discoverer type.

Returns

Returns the test case discoverer instance, if known; may return null when an error occurs (which is logged to the diagnostic message sink).