public void SetReplicationIntervalShouldUpdateTheTimerIntervalAndAutoResetAccordingly() { var sut = new ScheduledTimer(); var counter = 0; sut.Do(() => Interlocked.Increment(ref counter)).Every(TimeSpan.FromMilliseconds(100)); Assert.That(sut.TimerObject.Interval, Is.EqualTo(100)); sut.Begin(); Thread.Sleep(550); Assert.That(counter, Is.GreaterThanOrEqualTo(5)); }