Class TestContextAccessor
Default implementation of ITestContextAccessor.
public class TestContextAccessor : ITestContextAccessor
- Inheritance
-
TestContextAccessor
- Implements
- Inherited Members
Fields
Instance
Get the singleton instance of TestContextAccessor.
public static TestContextAccessor Instance
Field Value
Properties
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 ITestContext Current { get; }