Beispiel #1
0
        public void StartWithSeconds_WaitLittleMoreThanSetTime_TickCounterIsCorrect(int secondsToWait, int msToWait)
        {
            _uut.TickEvent += (sender, args) => { _tickCounter++; };

            _uut.StartWithSeconds(secondsToWait);

            Thread.Sleep(msToWait);

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