Method OnTestClassStarting
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
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.
protected override ValueTask<bool> OnTestClassStarting(TContext ctxt)
Parameters
ctxtTContextThe context that describes the current test class
Returns
Remarks
This method runs during Initializing and any exceptions thrown will contribute to test class failure (and will prevent the test class from running). Even if this method records exceptions, OnTestClassFinished(TContext, RunSummary) will be called.