Esempio n. 1
0
        public void Part1(string input, int expected)
        {
            var d8     = new AdventOfCode.Days._2020._8.Day8(input);
            var result = d8.Part1();

            result.ShouldBe(expected);
        }
Esempio n. 2
0
        public void Part2()
        {
            var input = @"nop +0
                    acc +1
                    jmp +4
                    acc +3
                    jmp -3
                    acc -99
                    acc +1
                    jmp -4
                    acc +6".TrimIndent();

            var d8     = new AdventOfCode.Days._2020._8.Day8(input);
            var result = d8.Part2();

            result.ShouldBe(8);
        }