Method Discover
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Discover(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute)
Discover test cases from a test method. By default, if the method is generic, or it contains arguments, returns a single ExecutionErrorTestCase; otherwise, it returns the result of calling CreateTestCase(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute).
public virtual ValueTask<IReadOnlyCollection<IXunitTestCase>> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, IXunitTestMethod testMethod, IFactAttribute factAttribute)
Parameters
discoveryOptionsThe discovery options to be used.
testMethodThe test method the test cases belong to.
factAttributeThe fact attribute attached to the test method.
Returns
- ValueTask<IReadOnlyCollection<IXunitTestCase>>
Returns zero or more test cases represented by the test method.