Table of Contents

Constructor XunitTestCaseRunnerContext

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

XunitTestCaseRunnerContext(IXunitTestCase, IReadOnlyCollection<IXunitTest>, IMessageBus, ExceptionAggregator, CancellationTokenSource, string, string?, ExplicitOption, object?[])

Context class for XunitTestCaseRunner.

public XunitTestCaseRunnerContext(IXunitTestCase testCase, IReadOnlyCollection<IXunitTest> tests, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, string displayName, string? skipReason, ExplicitOption explicitOption, object?[] constructorArguments)

Parameters

testCase

The test case

tests IReadOnlyCollection<IXunitTest>

The tests for the test case

messageBus

The message bus to send execution messages to

aggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

displayName string

The display name of the test case

skipReason string

The skip reason, if the test case is being skipped

explicitOption

The user's choice on how to treat explicit tests

constructorArguments object[]

The constructor arguments for the test class