Table of Contents

Interface IXunitTestCaseDiscoverer

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

Interface to be implemented by classes which are used to discover tests cases attached to test methods that are attributed with an implementation of IFactAttribute.

public interface IXunitTestCaseDiscoverer

Methods

Discover(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute)

Discover test cases from a test method.

ValueTask<IReadOnlyCollection<IXunitTestCase>> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, IXunitTestMethod testMethod, IFactAttribute factAttribute)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

The discovery options to be used.

testMethod IXunitTestMethod

The test method the test cases belong to.

factAttribute IFactAttribute

The fact attribute attached to the test method.

Returns

ValueTask<IReadOnlyCollection<IXunitTestCase>>

Returns zero or more test cases represented by the test method.