Table of Contents

Constructor XunitTestRunnerBaseContext

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

XunitTestRunnerBaseContext(TTest, IMessageBus, ExplicitOption, ExceptionAggregator, CancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute>, object?[])

Initializes a new instance of the XunitTestRunnerBaseContext<TTest> class.

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

Parameters

test TTest

The test

messageBus

The message bus to send execution messages to

explicitOption

The user's choice on how to treat explicit tests

aggregator

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