Пример #1
0
        public void Solution()
        {
            const int Expected = 7657;

            var input  = Resources.InputD2P1.Split(Environment.NewLine).ToArray();
            var actual = DayTwo.Checksum(input);

            Assert.Equal(Expected, actual);
        }
Пример #2
0
        public void Test1()
        {
            var input = new[] { "abcdef", "bababc", "abbcde", "abcccd", "aabcdd", "abcdee", "ababab" };

            const int Expected = 12;
            var       actual   = DayTwo.Checksum(input);

            Assert.Equal(Expected, actual);
        }