示例#1
0
        public void FindsExitPath()
        {
            var input = new char[, ]
            {
                { 'S', 'X', 'X' },
                { ' ', ' ', ' ' },
                { ' ', ' ', 'E' }
            };
            var hasExit = SearchMaze.HasExit(input);

            Assert.True(hasExit);
        }
示例#2
0
        public void ReturnsFalseIfPathNotFound()
        {
            var input = new char[, ]
            {
                { 'S', 'X', 'X' },
                { ' ', ' ', 'X' },
                { ' ', 'X', 'E' }
            };
            var hasExit = SearchMaze.HasExit(input);

            Assert.False(hasExit);
        }