public void ShouldOverrideGivenTimeoutWithGivenOptionsWhenDebuggerIsAttached() { // Debugger.Launch(); var cancellationTokenSource = new CancellationTokenSource(); sut.Wait(cancellationTokenSource.Token); cancellationTokenSource.CancelAfter(1100); sut.HasTriggered.ShouldBe(true); }
public void ShouldTimeoutIfNotTriggered() { Thread.Sleep(1100); sut.Wait().ShouldBe(false); }