public string Solve(Input input)
 {
     if (input.input == null)
     {
         return("Day7. No input given.");
     }
     return("Part 1: " + Day7Solver.SolvePart1(input.input) + "\n" +
            "Part 2: " + Day7Solver.SolvePart2(input.input));
 }
Beispiel #2
0
        public void TestPart2Solution(string inputFile, int expected)
        {
            // Arrange
            long[] input = Helpers.ReadIntCodeInput($"../../../{inputFile}");

            // Act
            var result = Day7Solver.Part2Solution(input);

            // Assert
            Assert.Equal(expected, result);
        }
Beispiel #3
0
 public void SetUp()
 {
     _solver = new Day7Solver();
     _input  = new Day7Input();
 }
Beispiel #4
0
 public void SetUp()
 {
     _solver = new Day7Solver();
     _parser = new Day7Parser();
 }