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

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

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

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