Exemplo n.º 1
0
 public void Step()
 {
     _debuggerSyncEvent.Reset();
     Thread.Sleep(10);
     _debuggerStepEvent.Set();   // If we're stuck on the Step wait
     Thread.Sleep(10);
     _debuggerStepEvent.Reset(); // If we're stuck on the Step wait
     Thread.Sleep(10);
     _debuggerSyncEvent.Set();
 }
Exemplo n.º 2
0
 public void CanTimeoutStepEvent()
 {
     _cpuStepEvent.Reset();
     Assert.IsFalse(_cpuStepEvent.WaitOne(TimeSpan.FromSeconds(2)));
 }