Пример #1
0
        public void Countdown_end_triggers_noise_when_enabled()
        {
            _sut.StartCountdown(1, true);

            for (var i = 0; i < 59; i++)
            {
                _timerFacadeCallback.Invoke(null);
            }

            A.CallTo(() => _fakeSoundProvider.MakeSound()).MustNotHaveHappened();
            _timerFacadeCallback?.Invoke(null);
            A.CallTo(() => _fakeSoundProvider.MakeSound()).MustHaveHappened();
        }