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

ThreadUtility

public static class ThreadUtility
ThreadUtility provides a set of static methods convenient for working with threads.
using System.Threading.Tasks; namespace NUnit.Framework.Internal { public static class ThreadUtility { internal static void BlockingDelay(int milliseconds) { Task.Delay(milliseconds).GetAwaiter().GetResult(); } } }