private void CreateTaskForDay(int currentDay) { var input = AOCInput.GetInput(currentDay); if (currentDay == 1) { CreateTask(() => Day1Main.Part1(input), () => Day1Main.Part2(input)); Day1Main.StartPart1ComputeShader(input); } else if (currentDay == 2) { CreateTask(() => Day2Main.Part1(input), () => Day2Main.Part2(input)); } else if (currentDay == 3) { CreateTask(() => Day3Main.Part1(input) + "", () => Day3Main.Part2(input) + ""); } else if (currentDay == 4) { CreateTask(() => Day4Main.Part1(input) + "", () => Day4Main.Part2(input) + ""); } else if (currentDay == 5) { CreateTask(() => Day5Main.Part1(input) + "", () => Day5Main.Part2(input) + ""); } else if (currentDay == 6) { CreateTask(() => Day6Main.Part1(input) + "", () => Day6Main.Part2(input) + ""); } else if (currentDay == 7) { CreateTask(() => Day7Main.Part1(input) + "", () => Day7Main.Part2(input) + ""); } else if (currentDay == 8) { CreateTask(() => Day8Main.Part1(input) + "", () => Day8Main.Part2(input) + ""); } else if (currentDay == 9) { CreateTask(() => Day9Main.Part1(input) + "", () => Day9Main.Part2(input) + ""); } else if (currentDay == 10) { CreateTask(() => Day10Main.Part1(input) + "", () => Day10Main.Part2(input) + ""); } else if (currentDay == 11) { CreateTask(() => Day11Main.Part1(input) + "", () => Day11Main.Part2(input) + ""); } else if (currentDay == 12) { CreateTask(() => Day12Main.Part1(input) + "", () => Day12Main.Part2(input) + ""); } else if (currentDay == 13) { CreateTask(() => Day13Main.Part1(input) + "", () => Day13Main.Part2(input) + ""); } else if (currentDay == 14) { CreateTask(() => Day14Main.Part1(input) + "", () => Day14Main.Part2(input) + ""); } else if (currentDay == 15) { CreateTask(() => Day15Main.Part1(input) + "", () => Day15Main.Part2(input) + ""); } }
public void Part1_Exemple4_Has41() { Assert.AreEqual(41, Day10Main.Part1(Exemple4Grid)); }
public void Part1_Exemple2_Has33() { Assert.AreEqual(33, Day10Main.Part1(Exemple2Grid)); }
public void Part1_Exemple3_Has35() { Assert.AreEqual(35, Day10Main.Part1(Exemple3Grid)); }
public void Part1_Exemple1_Has8() { Assert.AreEqual(8, Day10Main.Part1(Exemple1Grid)); }