Interface IXunitTestCaseDiscoverer
Interface to be implemented by classes which are used to discover tests cases attached to test methods that are attributed with FactAttribute (or a subclass).
Namespace: Xunit.Sdk
Assembly: xunit.core.dll
Syntax
public interface IXunitTestCaseDiscoverer
Methods
| Improve this Doc View SourceDiscover(ITestFrameworkDiscoveryOptions, ITestMethod, IAttributeInfo)
Discover test cases from a test method.
Declaration
IEnumerable<IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute)
Parameters
Type | Name | Description |
---|---|---|
ITestFrameworkDiscoveryOptions | discoveryOptions | The discovery options to be used. |
ITestMethod | testMethod | The test method the test cases belong to. |
IAttributeInfo | factAttribute | The fact attribute attached to the test method. |
Returns
Type | Description |
---|---|
IEnumerable<IXunitTestCase> | Returns zero or more test cases represented by the test method. |