Class XunitTestFramework
The implementation of ITestFramework that supports discovery and execution of unit tests linked against xunit.v3.core.dll.
public class XunitTestFramework : TestFramework, ITestFramework, IAsyncDisposable
- Inheritance
-
XunitTestFramework
- Implements
- Inherited Members
Constructors
XunitTestFramework()
Initializes a new instance of the XunitTestFramework class.
public XunitTestFramework()
XunitTestFramework(string?)
Initializes a new instance of the XunitTestFramework class.
public XunitTestFramework(string? configFileName)
Parameters
configFileNamestringThe optional test configuration file.
Properties
TestFrameworkDisplayName
Returns the display name of the test framework that this discoverer is running tests for.
public override string TestFrameworkDisplayName { get; }
Property Value
Methods
CreateDiscoverer(Assembly)
Override this method to provide the implementation of ITestFrameworkDiscoverer.
protected override ITestFrameworkDiscoverer CreateDiscoverer(Assembly assembly)
Parameters
assemblyAssemblyThe assembly that is being discovered.
Returns
- ITestFrameworkDiscoverer
Returns the test framework discoverer.
CreateExecutor(Assembly)
Override this method to provide the implementation of ITestFrameworkExecutor.
protected override ITestFrameworkExecutor CreateExecutor(Assembly assembly)
Parameters
assemblyAssemblyThe assembly that is being executed.
Returns
- ITestFrameworkExecutor
Returns the test framework executor.