Esempio n. 1
0
        public void TestPart2()
        {
            IEnumerable <string> lines = File.ReadLines(PersonalInput);
            var day = new DayOfDec09();

            var res = day.Part2(lines);

            Assert.AreEqual(238243506, res);
        }
Esempio n. 2
0
        public void TestPart1()
        {
            IEnumerable <string> lines = File.ReadLines(PersonalInput);
            var day = new DayOfDec09();

            var res = day.Part1(lines);

            Assert.AreEqual(1492208709, res);
        }
Esempio n. 3
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);
        }