Property Current
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
Current
Gets the current test context. If called outside of the text discovery or execution path, will return a test context that is in the Unknown stage. The current test context is a "snapshot in time" for when this/ property is called, so do not cache the instance across a single method boundary (or else/ you run the risk of having an out-of-date context).
public static ITestContext Current { get; }