Class TestCaseRunner<TContext, TTestCase, TTest>
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
A base class that provides default behavior when running test cases which are assumed to result in one or more tests (that implement ITest).
public abstract class TestCaseRunner<TContext, TTestCase, TTest> : TestCaseRunnerBase<TContext, TTestCase> where TContext : TestCaseRunnerContext<TTestCase, TTest> where TTestCase : class, ITestCase where TTest : class, ITest
Type Parameters
TContextThe context type used by the runner
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
-
TestCaseRunnerBase<TContext, TTestCase>TestCaseRunner<TContext, TTestCase, TTest>
- Derived
- Inherited Members
-
TestCaseRunnerBase<TContext, TTestCase>.OnError(TContext, Exception)TestCaseRunnerBase<TContext, TTestCase>.OnTestCaseCleanupFailure(TContext, Exception)TestCaseRunnerBase<TContext, TTestCase>.OnTestCaseFinished(TContext, RunSummary)TestCaseRunnerBase<TContext, TTestCase>.OnTestCaseStarting(TContext)TestCaseRunnerBase<TContext, TTestCase>.Run(TContext)TestCaseRunnerBase<TContext, TTestCase>.RunTestCase(TContext, Exception)TestCaseRunnerBase<TContext, TTestCase>.SetTestContext(TContext, TestEngineStatus)
Constructors
- TestCaseRunner()
Initializes a new instance of the TestCaseRunner<TContext, TTestCase, TTest> class.
Methods
- FailTest(TContext, TTest, Exception)
Override this method to fail an individual test.
- RunTest(TContext, TTest)
Override this method to run an individual test.
- RunTestCase(TContext, Exception?)
Override this to run the test case.