Table of Contents

Method OnTestClassDisposeStarting

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

OnTestClassDisposeStarting(TContext)

This method will be called when a test class instance is about to be disposed. By default, this sends TestClassDisposeStarting.

protected virtual ValueTask<bool> OnTestClassDisposeStarting(TContext ctxt)

Parameters

ctxt TContext

The invoker context

Returns

ValueTask<bool>

Return true if test execution should continue; false if it should be shut down.

Remarks

This method runs during Running and any exceptions thrown will contribute to test failure.