示例#1
0
        public void Day18_Part1_Solution()
        {
            var d = new Day18();

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

            var expected = 1061;
            var actual = d.SolutionPart1(100, input);

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void Day18_Part1_Examples()
        {
            var d = new Day18();

            var initialState = new string[] { ".#.#.#", 
                                              "...##.", 
                                              "#....#", 
                                              "..#...", 
                                              "#.#..#", 
                                              "####.." };

            var expected = 4;
            var actual = d.SolutionPart1(4, initialState);

            Assert.AreEqual(expected, actual);
        }