public void WhenSomeoneListening_SetsEventWaitObject() { using (var stopEvent = CreateStopGuardEvent()) { Assert.False(stopEvent.WaitOne(0)); Container.StopGuard(); Assert.True(stopEvent.WaitOne(0)); } }
public void WhenNooneListening_DoesNotFail() { Container.StopGuard(); }