Method Run
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Run(ExplicitOption, IMessageBus, object?[], ExceptionAggregator, CancellationTokenSource)
Executes the test case, returning 0 or more result messages through the message sink.
ValueTask<RunSummary> Run(ExplicitOption explicitOption, IMessageBus messageBus, object?[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
Parameters
explicitOptionA flag to indicate how explicit tests should be treated.
messageBusThe message bus to report results to.
constructorArgumentsobject[]The arguments to pass to the constructor.
aggregatorThe error aggregator to use for catching exception.
cancellationTokenSourceCancellationTokenSourceThe cancellation token source that indicates whether cancellation has been requested.
Returns
- ValueTask<RunSummary>
Returns the summary of the test case run.