Пример #1
0
        public async Task CountdownStopsAt0()
        {
            using var mobo = new Mobo();
            mobo.StartTheTimer(CountDownTimer.Default);
            await Clock.MoveForward(_defaultTimeLength);

            await mobo.CountDownIsPaused();

            mobo.CountDownCantBeReset();
        }
Пример #2
0
        public async Task PausingTheTimerPausesTheCountdown()
        {
            using var mobo = new Mobo();
            mobo.StartTheTimer(CountDownTimer.Default);
            mobo.PauseTimer();
            await mobo.CountDownIsPaused();

            mobo.TimerCantBeStarted();
            mobo.TimerCantBePaused();
            mobo.TimerCanBeStarted();
        }
Пример #3
0
 public async Task DefaultTimerStartsAt15mins()
 {
     using var mobo = new Mobo();
     mobo.TimeLeftOnTimerIs(_defaultTimeLength);
     await mobo.CountDownIsPaused();
 }