Constructor TestRunnerContext
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
TestRunnerContext(TTest, IMessageBus, string?, ExplicitOption, ExceptionAggregator, CancellationTokenSource, MethodInfo, object?[])
Base context class for TestRunner<TContext, TTest>. This includes an assumption that a test means invoking a method on a class.
public TestRunnerContext(TTest test, IMessageBus messageBus, string? skipReason, ExplicitOption explicitOption, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, MethodInfo testMethod, object?[] testMethodArguments)
Parameters
testTTestThe test
messageBusThe message bus to send execution messages to
skipReasonstringThe skip reason for the test, if it's being skipped
explicitOptionThe user's choice on how to treat explicit tests
aggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
testMethodMethodInfoThe test method
testMethodArgumentsobject[]The method arguments for the test method