Table of Contents

Constructor TestRunnerBaseContext

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

TestRunnerBaseContext(TTest, IMessageBus, string?, ExplicitOption, ExceptionAggregator, CancellationTokenSource)

Base context class for TestRunnerBase<TContext, TTest>.

public TestRunnerBaseContext(TTest test, IMessageBus messageBus, string? skipReason, ExplicitOption explicitOption, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)

Parameters

test TTest

The test

messageBus

The message bus to send execution messages to

skipReason string

The skip reason for the test, if it's being skipped

explicitOption

The user's choice on how to treat explicit tests

aggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source