public static void TestCancelException()
 {
     while (true)
     {
         Thread.Sleep(50);
         ProcessThreadsManager.ThrowIfCancellationRequested();
     }
 }