Пример #1
0
        public void Day04_Part1_Examples()
        {
            var d = new Day04();

            Assert.AreEqual(609043, d.Solution("abcdef", "00000"));
            Assert.AreEqual(1048970, d.Solution("pqrstuv", "00000"));
        }
Пример #2
0
        public void Day04_Part2_Solution()
        {
            var d = new Day04();

            var input = FileHelper.ReadTestFile(4);
            Assert.IsNotNull(input);

            var expected = 9958218;
            var actual = d.Solution(input[0], "000000");

            Assert.AreEqual(expected, actual);
        }