示例#1
0
        public async Task TimerCanBeSetToACustomLength()
        {
            using var mobo = new Mobo();
            var customTimerLength = TimeSpan.FromMinutes(5);

            mobo.StartTheTimer(customTimerLength);
            mobo.TimeLeftOnTimerIs(customTimerLength);
            await mobo.CountDownIsRunning();
        }
示例#2
0
        public async Task ResetingTimerSetsTimeBackToOriginalTime()
        {
            using var mobo = new Mobo();
            var customTimerLength = TimeSpan.FromMinutes(5);

            mobo.StartTheTimer(customTimerLength);
            await Clock.MoveForward(TimeSpan.FromMinutes(3));

            mobo.ResetTimer();
            mobo.TimeLeftOnTimerIs(customTimerLength);
        }
示例#3
0
 public async Task DefaultTimerStartsAt15mins()
 {
     using var mobo = new Mobo();
     mobo.TimeLeftOnTimerIs(_defaultTimeLength);
     await mobo.CountDownIsPaused();
 }