Class XunitTestClassRunnerBase<TContext, TTestClass, TTestMethod, TTestCase>
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
The test class runner for xUnit.net v3 tests (with overridable context).
public abstract class XunitTestClassRunnerBase<TContext, TTestClass, TTestMethod, TTestCase> : TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase> where TContext : XunitTestClassRunnerBaseContext<TTestClass, TTestCase> where TTestClass : class, IXunitTestClass where TTestMethod : class, IXunitTestMethod where TTestCase : class, IXunitTestCase
Type Parameters
TContextTTestClassTTestMethodTTestCase
- Inheritance
-
TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>XunitTestClassRunnerBase<TContext, TTestClass, TTestMethod, TTestCase>
- Derived
- Inherited Members
-
TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.CreateTestClassConstructorArguments(TContext)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.FailTestMethod(TContext, TTestMethod, IReadOnlyCollection<TTestCase>, object[], Exception)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.OnError(TContext, Exception)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.OnTestClassCleanupFailure(TContext, Exception)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.OnTestClassFinished(TContext, RunSummary)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.OnTestClassStarting(TContext)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.OrderTestCases(TContext)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.Run(TContext)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.RunTestMethods(TContext, Exception)TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.RunTestMethod(TContext, TTestMethod, IReadOnlyCollection<TTestCase>, object[])TestClassRunner<TContext, TTestClass, TTestMethod, TTestCase>.SetTestContext(TContext, TestEngineStatus)
Methods
- CreateTestClassConstructorArguments(TContext)
Creates the arguments for the test class constructor. By default just returns an empty set of arguments. Override to find the arguments for the constructor. Arguments without matching values may be returned as Value, as the ITypeActivator is responsible for determining how to resolve unknown arguments.
- FormatConstructorArgsMissingMessage(TContext, ConstructorInfo, IReadOnlyList<Tuple<int, ParameterInfo>>)
Gets the message to be used when the constructor is missing arguments.
- GetConstructorArgument(TContext, ConstructorInfo, int, ParameterInfo)
Tries to supply a test class constructor argument.
- OnTestClassFinished(TContext, RunSummary)
This method will be called when the test class has finished running. By default, this sends TestClassFinished. Override this to enable any extensibility related to test class finish.
- OnTestClassStarting(TContext)
This method will be called before the test class has started running. By default, this sends TestClassStarting. Override this to enable any extensibility related to test class start.
- OrderTestCases(TContext)
Orders the test cases in the class. By default does not re-order the test cases. Override this to provide custom test case ordering.
- SelectTestClassConstructor(TContext)
Selects the test constructor.
- SetTestContext(TContext, TestEngineStatus)
Sets the current TestContext for the current test class and the given test class status.