Пример #1
0
        public void Test10()
        {
            var layout = new List <string>()
            {
                ".............",
                ".L.L.#.#.#.#.",
                "............."
            };

            var sut = new TestableShyBehaviour();

            Assert.Equal(0, sut.CallCountSurroundingPlaces(layout, 1, 1));
        }
Пример #2
0
        public void Test9()
        {
            var layout = new List <string>()
            {
                ".......#.",
                "...#.....",
                ".#.......",
                ".........",
                "..#L....#",
                "....#....",
                ".........",
                "#........",
                "...#....."
            };

            var sut = new TestableShyBehaviour();

            Assert.Equal(8, sut.CallCountSurroundingPlaces(layout, 4, 3));
        }