Ejemplo n.º 1
0
        public void solve_for_expected_answer_part_two(string input, string expected)
        {
            var solver = new DayOneSolver();

            var actual = solver.PartTwoSolve(input);

            actual.Should().Be(expected);
        }
Ejemplo n.º 2
0
        public void solve_for_unknown_answer_part_two()
        {
            var inputs = File.ReadAllLines("./Day01/input_part_one.txt");
            var solver = new DayOneSolver();

            var actual = inputs.Select(input => int.Parse(solver.PartTwoSolve(input))).Sum();

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