Constructor XunitTestRunnerContext
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
XunitTestRunnerContext(IXunitTest, IMessageBus, ExplicitOption, ExceptionAggregator, CancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute>, object?[])
Context class for XunitTestRunner.
public XunitTestRunnerContext(IXunitTest test, IMessageBus messageBus, ExplicitOption explicitOption, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, IReadOnlyCollection<IBeforeAfterTestAttribute> beforeAfterTestAttributes, object?[] constructorArguments)
Parameters
testThe test
messageBusThe message bus to send execution messages to
explicitOptionThe user's choice on how to treat explicit tests
aggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
beforeAfterTestAttributesIReadOnlyCollection<IBeforeAfterTestAttribute>The IBeforeAfterTestAttributes that are applied to the test
constructorArgumentsobject[]The constructor arguments for the test class