Table of Contents

Class FactDiscoverer

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

Implementation of IXunitTestCaseDiscoverer that supports finding test cases on methods decorated with FactAttribute.

public class FactDiscoverer : IXunitTestCaseDiscoverer
Inheritance
FactDiscoverer
Implements
Inherited Members

Methods

CreateTestCase(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute)

Creates a single XunitTestCase for the given test method.

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).