public void solve_part_two_for_known_values(string program, string expected)
        {
            var solver = new DaySevenSolver();

            var thrust = solver.PartTwoSolve(program);

            thrust.Should().Be(expected);
        }
        public void solve_for_unknown_value_part_two()
        {
            var inputs = File.ReadAllLines("./Day07/input_part_one.txt");
            var solver = new DaySevenSolver();

            var actual = solver.PartTwoSolve(inputs[0]);

            _outputHelper.WriteLine($"{actual}");
        }
Ejemplo n.º 3
0
        static async Task Main(string[] args)
        {
            var dayOneSolver = new DayOneSolver("../puzzle_input/day_1.txt");
            var solution     = await dayOneSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 1: {solution}.");

            var dayTwoSolver = new DayTwoSolver("../puzzle_input/day_2.txt");
            var solution2    = await dayTwoSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 2: {solution2}.");

            var dayThreeSolver = new DayThreeSolver("../puzzle_input/day_3.txt");
            var solution3      = await dayThreeSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 3: {solution3}.");

            var dayFourSolver = new DayFourSolver("../puzzle_input/day_4.txt");
            var solution4     = await dayFourSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 4: {solution4}.");

            var dayFiveSolver = new DayFiveSolver("../puzzle_input/day_5.txt");
            var solution5     = await dayFiveSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 5: {solution5}.");

            var daySixSolver = new DaySixSolver("../puzzle_input/day_6.txt");
            var solution6    = await daySixSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 6: {solution6}.");

            var daySevenSolver = new DaySevenSolver("../puzzle_input/day_7.txt");
            var solution7      = await daySevenSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 7: {solution7}.");

            var dayEightSolver = new DayEightSolver("../puzzle_input/day_8.txt");
            var solution8      = await dayEightSolver.SolveAsync().ConfigureAwait(false);

            Console.WriteLine($"Day 8: {solution8}.");
        }
Ejemplo n.º 4
0
        public void Test7()
        {
            var solver = new DaySevenSolver();

            Assert.AreEqual("bpvhwhh", solver.SolvePart1("../../../Resources/input-7.txt"));
        }
Ejemplo n.º 5
0
        //[TestMethod]
        public void Test2()
        {
            var solver = new DaySevenSolver();

            Assert.AreEqual(1037, solver.SolvePart2("../../../Resources/input-7.txt"));
        }