Exemple #1
0
        public void StartWithMinutes_WaitLittleMoreThanSetTime_TickCounterIsCorrect(int minutesToWait, int msToWait)
        {
            _uut.TickEvent += (sender, args) => { _tickCounter++; };

            _uut.StartWithMinutes(minutesToWait);

            var TARGET_TICKCOUNTER = minutesToWait * 60;

            Thread.Sleep(msToWait);

            Assert.That(_tickCounter == TARGET_TICKCOUNTER, Is.EqualTo(true));
        }