Table of Contents

Class XunitTestCaseRunnerContext

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

Context class for XunitTestCaseRunner.

public class XunitTestCaseRunnerContext : XunitTestCaseRunnerBaseContext<IXunitTestCase, IXunitTest>, IAsyncLifetime, IAsyncDisposable
Inheritance
XunitTestCaseRunnerContext
Implements
Inherited Members

Constructors

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 IXunitTestCase

The test case

tests IReadOnlyCollection<IXunitTest>

The tests for the test case

messageBus IMessageBus

The message bus to send execution messages to

aggregator ExceptionAggregator

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 ExplicitOption

The user's choice on how to treat explicit tests

constructorArguments object[]

The constructor arguments for the test class