public void ShouldCompleteIn_WhenFinishBeforeTimeout() { Should.NotThrow(() => Should.CompleteIn(() => Task.Delay(TimeSpan.FromSeconds(0.5)).Wait(), TimeSpan.FromSeconds(5))); }
public void Shouldly_ShouldNotThrowException() { var widget = new Widget(); Should.NotThrow(() => widget.Twist(5)); }
public void ShouldCompleteIn_WhenFinishBeforeTimeout() { Should.NotThrow(() => Should.CompleteIn(() => Thread.Sleep(TimeSpan.FromSeconds(0.5)), TimeSpan.FromSeconds(5))); }