Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }