コード例 #1
0
ファイル: LevelTests.cs プロジェクト: fchauvel/heat
 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);
 }
コード例 #2
0
ファイル: LevelTests.cs プロジェクト: fchauvel/heat
 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);
 }
コード例 #3
0
ファイル: Level.cs プロジェクト: fchauvel/heat
 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);
 }