예제 #1
0
        public void DeadTest2()
        {
            string[]   directions = new string[] { "N", "N", "N", "N", "N", "E", "E", "S", "S", "S", "S", "S", "S" };
            MazeRunner test       = new MazeRunner();
            string     result     = test.mazeRunner(maze, directions);

            Assert.AreEqual("Dead", result, "Should return: 'Dead'");
        }
예제 #2
0
        public void LostTest1()
        {
            string[]   directions = new string[] { "N", "E", "E", "E", "E" };
            MazeRunner test       = new MazeRunner();
            string     result     = test.mazeRunner(maze, directions);

            Assert.AreEqual("Lost", result, "Should return: 'Lost'");
        }
예제 #3
0
        public void FinishTest3()
        {
            string[]   directions = new string[] { "N", "N", "N", "N", "N", "E", "E", "E", "E", "E", "W", "W" };
            MazeRunner test       = new MazeRunner();
            string     result     = test.mazeRunner(maze, directions);

            Assert.AreEqual("Finish", result, "Should return: 'Finish'");
        }