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}); }
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}); }