Class XunitTestMethodRunner
The test method runner for xUnit.net v3 tests.
public class XunitTestMethodRunner : XunitTestMethodRunnerBase<XunitTestMethodRunnerContext, IXunitTestMethod, IXunitTestCase>
- Inheritance
-
XunitTestMethodRunner
- Inherited Members
Constructors
XunitTestMethodRunner()
Initializes a new instance of the XunitTestMethodRunner class.
protected XunitTestMethodRunner()
Properties
Instance
Gets the singleton instance of the XunitTestMethodRunner class.
public static XunitTestMethodRunner Instance { get; }
Property Value
Methods
Run(IXunitTestMethod, IReadOnlyCollection<IXunitTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource, object?[])
Runs the test test method.
public ValueTask<RunSummary> Run(IXunitTestMethod testMethod, IReadOnlyCollection<IXunitTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, object?[] constructorArguments)
Parameters
testMethodIXunitTestMethodThe test method to be run.
testCasesIReadOnlyCollection<IXunitTestCase>The test cases to be run. Cannot be empty.
explicitOptionExplicitOptionA flag to indicate how explicit tests should be treated.
messageBusIMessageBusThe message bus to report run status to.
aggregatorExceptionAggregatorThe exception aggregator used to run code and collect exceptions.
cancellationTokenSourceCancellationTokenSourceThe task cancellation token source, used to cancel the test run.
constructorArgumentsobject[]The constructor arguments for the test class.