Method FindTestsForType
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
FindTestsForType(TTestClass, ITestFrameworkDiscoveryOptions, Func<ITestCase, ValueTask<bool>>)
Core implementation to discover unit tests in a given test class.
protected abstract ValueTask<bool> FindTestsForType(TTestClass testClass, ITestFrameworkDiscoveryOptions discoveryOptions, Func<ITestCase, ValueTask<bool>> discoveryCallback)
Parameters
testClassTTestClassThe test class.
discoveryOptionsThe options used by the test framework during discovery.
discoveryCallbackFunc<ITestCase, ValueTask<bool>>The callback that is called for each discovered test case. The return value of the callback indicates the same thing as the return value of this function: return
trueto continue discovery, orfalseto halt it.