示例#1
0
        public void TestSolveMaze()
        {
            TextReader reader = new StreamReader("Hound Maze(tsv).txt");
            string     tsv    = reader.ReadToEnd();

            reader.Close();
            MazeHound.Business.MazeHound mh = new MazeHound.Business.MazeHound();
            Assert.IsTrue(mh.SolveMaze(tsv, 54, 77, 12, 20, 5, 5));
        }
示例#2
0
        public void TestLoadMaze()
        {
            TextReader reader = new StreamReader("Hound Maze(tsv).txt");
            string     tsv    = reader.ReadToEnd();

            reader.Close();
            MazeHound.Business.MazeHound mh = new MazeHound.Business.MazeHound();
            Assert.IsNotNull(mh.LoadMaze(tsv, 5, 5));
        }