Method SetTestContext
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
SetTestContext(TContext, TestEngineStatus)
Sets the current TestContext for the current test class and the given test class status.
protected virtual void SetTestContext(TContext ctxt, TestEngineStatus testClassStatus)
Parameters
ctxtTContextThe context that describes the current test class
testClassStatusThe current test class status.
Remarks
This method must never throw. Behavior is undefined if it does. Instead, exceptions that
occur should be recorded in the aggregator in ctxt and will be reflected
in a way that's appropriate based on when this method is called.