Class TestCaseRunnerBaseContext<TTestCase>
Base context class for TestCaseRunnerBase<TContext, TTestCase>.
public class TestCaseRunnerBaseContext<TTestCase> : ContextBase, IAsyncLifetime, IAsyncDisposable where TTestCase : class, ITestCase
Type Parameters
TTestCaseThe type of the test case used by the test framework. Must derive from ITestCase.
- Inheritance
-
TestCaseRunnerBaseContext<TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
TestCaseRunnerBaseContext(TTestCase, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)
Base context class for TestCaseRunnerBase<TContext, TTestCase>.
public TestCaseRunnerBaseContext(TTestCase testCase, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
Parameters
testCaseTTestCaseThe test case
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
messageBusIMessageBusThe message bus to send execution messages to
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
Properties
TestCase
Gets the test case that is being executed.
public TTestCase TestCase { get; }
Property Value
- TTestCase