Table of Contents

Constructor XunitTestMethodRunnerContext

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

XunitTestMethodRunnerContext(IXunitTestMethod, IReadOnlyCollection<IXunitTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource, object?[])

Context class for XunitTestMethodRunner.

public XunitTestMethodRunnerContext(IXunitTestMethod testMethod, IReadOnlyCollection<IXunitTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, object?[] constructorArguments)

Parameters

testMethod

The test method

testCases IReadOnlyCollection<IXunitTestCase>

The test cases from the test method

explicitOption

The user's choice on how to treat explicit tests

messageBus

The message bus to send execution messages to

aggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

constructorArguments object[]

The constructor arguments for the test class