Table of Contents

Method FindTestsForMethod

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

FindTestsForMethod(IXunitTestMethod, ITestFrameworkDiscoveryOptions, Func<ITestCase, ValueTask<bool>>)

Finds the tests on a test method.

protected virtual ValueTask<bool> FindTestsForMethod(IXunitTestMethod testMethod, ITestFrameworkDiscoveryOptions discoveryOptions, Func<ITestCase, ValueTask<bool>> discoveryCallback)

Parameters

testMethod

The test method.

discoveryOptions

The options used by the test framework during discovery.

discoveryCallback Func<ITestCase, ValueTask<bool>>

The callback that is called for each discovered test case.

Returns

ValueTask<bool>

Return true to continue test discovery, false, otherwise.