public void TestTotalDuration() { var exercises = new List<string>() { "a", "b", "c" }; var phase = new Phase(roundCount: 2, breakDuration: 5, exerciseDuration: 30); var actual = phase.TotalDuration(exercises); Assert.AreEqual(Duration.fromSeconds(10 + 180), actual); }
public void TestActiveDuration() { var exercises = new List<string>() { "a", "b", "c" }; var phase = new Phase(roundCount: 1, breakDuration: 5, exerciseDuration: 30); var actual = phase.ActiveTime(exercises); Assert.AreEqual(Duration.fromSeconds(90), actual); }
public Level(int roundCount, int breakTime = 5, int switchTime = 3, int exerciseTime = 30) { warmupPhase = new Phase(1, 5, 30); workoutPhase = new Phase(roundCount, breakTime, exerciseTime); stretchingPhase = new Phase(1, 5, 30); }