コード例 #1
0
ファイル: WaithHandles.cs プロジェクト: sign42/SystemWrapper
 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});
 }
コード例 #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});
 }