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

NUnit.Framework.Internal.ThreadUtility

public static class ThreadUtility
ThreadUtility provides a set of static methods convenient for working with threads.
namespace NUnit.Framework.Internal { public static class ThreadUtility { public static IPrincipal GetCurrentThreadPrincipal(); public static void SetCurrentThreadPrincipal(IPrincipal principal); } }