Table of Contents

Class XunitTestFramework

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

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

configFileName string

The 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

string

Methods

CreateDiscoverer(Assembly)

Override this method to provide the implementation of ITestFrameworkDiscoverer.

protected override ITestFrameworkDiscoverer CreateDiscoverer(Assembly assembly)

Parameters

assembly Assembly

The 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

assembly Assembly

The assembly that is being executed.

Returns

ITestFrameworkExecutor

Returns the test framework executor.