Method Run
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Run(IXunitTest, IMessageBus, object?[], ExplicitOption, ExceptionAggregator, CancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute>)
Runs the test.
public ValueTask<RunSummary> Run(IXunitTest test, IMessageBus messageBus, object?[] constructorArguments, ExplicitOption explicitOption, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute> beforeAfterAttributes)
Parameters
testThe test that this invocation belongs to.
messageBusThe message bus to report run status to.
constructorArgumentsobject[]The arguments to be passed to the test class constructor.
explicitOptionA flag to indicate how explicit tests should be treated.
aggregatorThe exception aggregator used to run code and collect exceptions.
cancellationTokenSourceCancellationTokenSourceThe task cancellation token source, used to cancel the test run.
beforeAfterAttributesIReadOnlyCollection<IBeforeAfterTestAttribute>The list of IBeforeAfterTestAttributes for this test.
Returns
- ValueTask<RunSummary>
Returns summary information about the test that was run.