예제 #1
0
        public void TestPart1()
        {
            IEnumerable <string> lines = File.ReadLines(PersonalInput);
            var day = new DayOfDec09();

            var res = day.Part1(lines);

            Assert.AreEqual(1492208709, res);
        }
예제 #2
0
        public void TestPart1_ExampleInput()
        {
            IEnumerable <string> lines = File.ReadLines(ExampleInput);
            var day = new DayOfDec09();

            day.PreambleLength = 5;

            var res = day.Part1(lines);

            Assert.AreEqual(127, res);
        }