<PackageReference Include="NUnit" Version="4.3.2" />

NUnit.Framework.Internal.TestExecutionContext

Helper class used to save and restore certain static or singleton settings in the environment that affect tests or which might be changed by the user tests.
namespace NUnit.Framework.Internal { public class TestExecutionContext : LongLivedMarshalByRefObject { public class IsolatedContext : IDisposable { public IsolatedContext(); public void Dispose(); } public class AdhocContext : TestExecutionContext { public AdhocContext(); } public static TestExecutionContext CurrentContext { get; } public Test CurrentTest { get; set; } public DateTime StartTime { get; set; } public long StartTicks { get; set; } public double Duration { get; } public TestResult CurrentResult { get; set; } public TextWriter OutWriter { get; } public object TestObject { get; set; } public bool StopOnError { get; set; } public TestExecutionStatus ExecutionStatus { get; set; } public IWorkItemDispatcher Dispatcher { get; set; } public ParallelScope ParallelScope { get; set; } public Tolerance DefaultFloatingPointTolerance { get; set; } public TestWorker TestWorker { get; } public Randomizer RandomGenerator { get; } public int TestCaseTimeout { get; set; } public bool UseCancellation { get; set; } public CancellationToken CancellationToken { get; } public List<ITestAction> UpstreamActions { get; } public CultureInfo CurrentCulture { get; set; } public CultureInfo CurrentUICulture { get; set; } public IPrincipal CurrentPrincipal { get; set; } public ValueFormatter CurrentValueFormatter { get; } public bool IsSingleThreaded { get; set; } public int CurrentRepeatCount { get; set; } public TestExecutionContext(); public TestExecutionContext(TestExecutionContext other); public void UpdateContextFromEnvironment(); public void EstablishExecutionEnvironment(); public void IncrementAssertCount(); public void IncrementAssertCount(int count); public void AddFormatter(ValueFormatterFactory formatterFactory); public void SendMessage(string destination, string message); } }