Exemplo n.º 1
0
        public void DoesNotUpdate_If_IntervalAlreadyEqual()
        {
            _pollingTimer.Expect(p => p.Interval).Return(TimeSpan.FromSeconds(5));

            _pollingUpdaterResponder.ConfigUpdated(new ConfigSettings {
                PollFrequency = 5
            });

            _pollingTimer.AssertWasNotCalled(p => p.Stop());
            _countdownResetTimer.AssertWasNotCalled(c => c.Reset());
            _pollingTimer.AssertWasNotCalled(p => p.Start());
        }