Table of Contents

Class XunitTestRunnerContext

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

Context class for XunitTestRunner.

public class XunitTestRunnerContext : XunitTestRunnerBaseContext<IXunitTest>, IAsyncLifetime, IAsyncDisposable
Inheritance
XunitTestRunnerContext
Implements
Inherited Members

Constructors

XunitTestRunnerContext(IXunitTest, IMessageBus, ExplicitOption, ExceptionAggregator, CancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute>, object?[])

Context class for XunitTestRunner.

public XunitTestRunnerContext(IXunitTest test, IMessageBus messageBus, ExplicitOption explicitOption, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute> beforeAfterTestAttributes, object?[] constructorArguments)

Parameters

test IXunitTest

The test

messageBus IMessageBus

The message bus to send execution messages to

explicitOption ExplicitOption

The user's choice on how to treat explicit tests

aggregator ExceptionAggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

beforeAfterTestAttributes IReadOnlyCollection<IBeforeAfterTestAttribute>

The IBeforeAfterTestAttributes that are applied to the test

constructorArguments object[]

The constructor arguments for the test class