Class TestClassRunnerContext<TTestClass, TTestCase>
Base context class for TestClassRunnerContext<TTestClass, TTestCase>.
public class TestClassRunnerContext<TTestClass, TTestCase> : ContextBase, IAsyncLifetime, IAsyncDisposable where TTestClass : class, ITestClass where TTestCase : class, ITestCase
Type Parameters
TTestClassThe type of the test class used by the test framework. Must derive from ITestClass.
TTestCaseThe type of the test case used by the test framework. Must derive from ITestCase.
- Inheritance
-
TestClassRunnerContext<TTestClass, TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
TestClassRunnerContext(TTestClass, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)
Base context class for TestClassRunnerContext<TTestClass, TTestCase>.
public TestClassRunnerContext(TTestClass testClass, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
Parameters
testClassTTestClassThe test class
testCasesIReadOnlyCollection<TTestCase>The test from the test class
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 associated with the test class.
public IReadOnlyCollection<TTestCase> TestCases { get; }
Property Value
- IReadOnlyCollection<TTestCase>
TestClass
Gets the test class that is being executed.
public TTestClass TestClass { get; }
Property Value
- TTestClass