コード例 #1
0
 public void WhenSomeoneListening_SetsEventWaitObject()
 {
     using (var stopEvent = CreateStopGuardEvent())
     {
         Assert.False(stopEvent.WaitOne(0));
         Container.StopGuard();
         Assert.True(stopEvent.WaitOne(0));
     }
 }
コード例 #2
0
 public void WhenNooneListening_DoesNotFail()
 {
     Container.StopGuard();
 }