Class XunitTestCaseRunnerContext
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
testCaseIXunitTestCaseThe test case
testsIReadOnlyCollection<IXunitTest>The tests for the test case
messageBusIMessageBusThe message bus to send execution messages to
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
displayNamestringThe display name of the test case
skipReasonstringThe skip reason, if the test case is being skipped
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
constructorArgumentsobject[]The constructor arguments for the test class