static bool testDay1() { Day1Solver day1Solver = new Day1Solver("../PuzzleInputs/Day1/input.txt"); TwoPartPuzzleOutput twoPartPuzzleOutput = day1Solver.Solve() as TwoPartPuzzleOutput; if ((long)twoPartPuzzleOutput.Part1.Output != 472L) { System.Console.WriteLine($"Day1 Part1 solver solution is {twoPartPuzzleOutput.Part1.Output} when it should have been 472"); return(false); } if ((long)twoPartPuzzleOutput.Part2.Output != 66932) { System.Console.WriteLine($"Day1 Part2 solver solution is {twoPartPuzzleOutput.Part2.Output} when it should have been 66932"); return(false); } return(true); }
static bool testDay3() { Day3Solver day3Solver = new Day3Solver("../PuzzleInputs/Day3/input.txt"); TwoPartPuzzleOutput twoPartPuzzleOutput = day3Solver.Solve() as TwoPartPuzzleOutput; if ((int)twoPartPuzzleOutput.Part1.Output != 114946) { System.Console.WriteLine($"Day1 Part1 solver solution is {twoPartPuzzleOutput.Part1.Output} when it should have been 114946"); return(false); } if ((int)twoPartPuzzleOutput.Part2.Output != 877) { System.Console.WriteLine($"Day1 Part2 solver solution is {twoPartPuzzleOutput.Part2.Output} when it should have been 877"); return(false); } return(true); }