Esempio n. 1
0
        public void solve_for_expected_answer_part_one(string input, string expected)
        {
            var solver = new DayTwoSolver();

            var actual = solver.PartOneSolve(input);

            actual.Should().Be(expected);
        }
Esempio n. 2
0
        public void solve_for_unknown_answer_part_one()
        {
            var input   = File.ReadAllLines("./Day02/input_part_one.txt")[0];
            var program = input.Split(",").Select(int.Parse).ToArray();

            program[1] = 12;
            program[2] = 2;
            var solver = new DayTwoSolver();

            var actual =
                solver.PartOneSolve(program.Select(i => i.ToString()).Aggregate((output, next) => $"{output},{next}"));

            _outputHelper.WriteLine($"{actual}");
        }