public void Recorder_Attempt_Add_Minutes_When_Recording_Does_Nothing() { IRecorder exerciseRecorder = new TestExerciseRecorder(110); exerciseRecorder.Resume(); exerciseRecorder.AddMinutes(2); exerciseRecorder.Pause(); Assert.That(exerciseRecorder.PreciseSeconds, Is.InRange(110, 112)); }
public void Recorder_TickActionCallBack_NotCalled_WhenRecording_After_Adding_Minutes() { bool fired = false; Action action = () => fired = true; IRecorder exerciseRecorder = new TestExerciseRecorder(110); exerciseRecorder.TickActionCallBack = action; exerciseRecorder.Resume(); exerciseRecorder.AddMinutes(2); exerciseRecorder.Pause(); Assert.IsFalse(fired); }