public void ShouldOverrideGivenTimeoutWithGivenOptionsWhenDebuggerIsAttached()
        {
            // Debugger.Launch();

            var cancellationTokenSource = new CancellationTokenSource();

            sut.Wait(cancellationTokenSource.Token);

            cancellationTokenSource.CancelAfter(1100);

            sut.HasTriggered.ShouldBe(true);
        }
Example #2
0
        public void ShouldTimeoutIfNotTriggered()
        {
            Thread.Sleep(1100);

            sut.Wait().ShouldBe(false);
        }