Class TestCollectionRunnerContext<TTestCollection, TTestCase>
Base context class for TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.
public class TestCollectionRunnerContext<TTestCollection, TTestCase> : ContextBase, IAsyncLifetime, IAsyncDisposable where TTestCollection : class, ITestCollection where TTestCase : class, ITestCase
Type Parameters
TTestCollectionThe type of the test collection used by the test framework. Must derive from ITestCollection.
TTestCaseThe type of the test case used by the test framework. Must derive from ITestCase.
- Inheritance
-
TestCollectionRunnerContext<TTestCollection, TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
TestCollectionRunnerContext(TTestCollection, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)
Base context class for TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.
public TestCollectionRunnerContext(TTestCollection testCollection, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
Parameters
testCollectionTTestCollectionThe test collection
testCasesIReadOnlyCollection<TTestCase>The test cases from the test collection
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
TestCases
Gets the test cases that belong to the test collection.
public IReadOnlyCollection<TTestCase> TestCases { get; protected set; }
Property Value
- IReadOnlyCollection<TTestCase>
TestCollection
Gets the test collection that is being executed.
public TTestCollection TestCollection { get; }
Property Value
- TTestCollection