Ejemplo n.º 1
0
 public void WaitAll_MutexAndAutoResetEvent_runs()
 {
     IAutoResetEvent autoResetEvent = new AutoResetEventWrap(false);
     IMutex mutex = new MutexWrap(false);
     IWaitHandleSystem waitHandleSystem = _mockRepository.DynamicMock<IWaitHandleSystem>();
     waitHandleSystem.WaitAll(new IWaitHandle[] {mutex, autoResetEvent});
 }
Ejemplo n.º 2
0
 public void WaitAll_MutexAndAutoResetEvent_runs()
 {
     IAutoResetEvent autoResetEvent = new AutoResetEventWrap(false);
     IMutex mutex = new MutexWrap(false);
     IWaitHandleSystem waitHandleSystem = NSubstitute.Substitute.For<IWaitHandleSystem>();
     waitHandleSystem.WaitAll(new IWaitHandle[] {mutex, autoResetEvent});
 }