Пример #1
0
        public void TestPart2()
        {
            IEnumerable <string> lines = File.ReadLines(PersonalInput);
            var day = new DayOfDec09();

            var res = day.Part2(lines);

            Assert.AreEqual(238243506, res);
        }
Пример #2
0
        public void TestPart2_ExampleInput()
        {
            IEnumerable <string> lines = File.ReadLines(ExampleInput);
            var day = new DayOfDec09();

            day.PreambleLength = 5;

            var res = day.Part2(lines);

            Assert.AreEqual(62, res);
        }