Class TestCaseRunnerContext<TTestCase, TTest>
Base context class for TestCaseRunner<TContext, TTestCase, TTest>.
public abstract class TestCaseRunnerContext<TTestCase, TTest> : TestCaseRunnerBaseContext<TTestCase>, IAsyncLifetime, IAsyncDisposable where TTestCase : class, ITestCase where TTest : class, ITest
Type Parameters
TTestCaseThe type of the test case used by the test framework. Must derive from ITestCase.
TTestThe type of the test that is generated from the test case. Must derive from ITest.
- Inheritance
-
TestCaseRunnerBaseContext<TTestCase>TestCaseRunnerContext<TTestCase, TTest>
- Implements
- Derived
- Inherited Members
Constructors
TestCaseRunnerContext(TTestCase, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)
Base context class for TestCaseRunner<TContext, TTestCase, TTest>.
protected TestCaseRunnerContext(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
Tests
Gets the tests for the given test case.
public abstract IReadOnlyCollection<TTest> Tests { get; }
Property Value
- IReadOnlyCollection<TTest>