Table of Contents

Interface ISelfExecutingXunitTestCase

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Represents an implementation of IXunitTestCase that is self-executing. This allows the test case to opt into the middle of the test execution pipeline without implementing everything that comes before it.

public interface ISelfExecutingXunitTestCase : IXunitTestCase, ITestCase, ITestCaseMetadata
Inherited Members

Methods

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 ExplicitOption

A flag to indicate how explicit tests should be treated.

messageBus IMessageBus

The message bus to report results to.

constructorArguments object[]

The arguments to pass to the constructor.

aggregator ExceptionAggregator

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.