Table of Contents

Class XunitTestCaseRunnerBase<TContext, TTestCase, TTest>

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

The test case runner for xUnit.net v3 tests (with overridable context).

public abstract class XunitTestCaseRunnerBase<TContext, TTestCase, TTest> : TestCaseRunner<TContext, TTestCase, TTest> where TContext : XunitTestCaseRunnerBaseContext<TTestCase, TTest> where TTestCase : class, IXunitTestCase where TTest : class, IXunitTest

Type Parameters

TContext
TTestCase
TTest
Inheritance
TestCaseRunnerBase<TContext, TTestCase>
TestCaseRunner<TContext, TTestCase, TTest>
XunitTestCaseRunnerBase<TContext, TTestCase, TTest>
Derived
Inherited Members

Methods

RunTestCase(TContext, Exception?)

Override this to run the test case.

protected override ValueTask<RunSummary> RunTestCase(TContext ctxt, Exception? exception)

Parameters

ctxt TContext

The context that describes the current test case

exception Exception

The exception that was caused during startup; should be used as an indicator that the downstream tests should fail with the provided exception rather than going through standard execution

Returns

ValueTask<RunSummary>

Returns summary information about the tests that were run.