示例#1
0
        public void TestPart1OnRealInput()
        {
            var input    = File.ReadAllText("input.txt");
            var solution = Program.SolveAdventOfCodePart1(input);

            solution.ShouldBe(29019);
        }
示例#2
0
        public void TestPart1OnExampleInput()
        {
            var input = @"class: 1-3 or 5-7
row: 6-11 or 33-44
seat: 13-40 or 45-50

your ticket:
7,1,14

nearby tickets:
7,3,47
40,4,50
55,2,20
38,6,12";

            var solution = Program.SolveAdventOfCodePart1(input);

            solution.ShouldBe(71);
        }