Table of Contents

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

explicitOption

A flag to indicate how explicit tests should be treated.

messageBus

The message bus to report results to.

constructorArguments object[]

The arguments to pass to the constructor.

aggregator

The error aggregator to use for catching exception.

cancellationTokenSource CancellationTokenSource

The cancellation token source that indicates whether cancellation has been requested.

Returns

ValueTask<RunSummary>

Returns the summary of the test case run.