Method Run
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
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
testMethodThe test method to be run.
testCasesIReadOnlyCollection<IXunitTestCase>The test cases to be run. Cannot be empty.
explicitOptionA flag to indicate how explicit tests should be treated.
messageBusThe message bus to report run status to.
aggregatorThe 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.