Method RunTestCases
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
RunTestCases(TContext, Exception?)
Runs the list of test cases. By default, it runs the cases in order, synchronously.
protected virtual ValueTask<RunSummary> RunTestCases(TContext ctxt, Exception? exception)
Parameters
ctxtTContextThe context that describes the current test method
exceptionExceptionThe 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.
Remarks
This method runs during Running and any exceptions thrown will contribute to test method cleanup failure.