Ejemplo n.º 1
0
        public void Maze_Constructor_existingMaze_throws_error_on_column_value_greater_than_maze_Test()
        {
            Maze maze;

            Assert.That(() => maze = new Maze(startingPoint.Row, basicMaze[0].Length, basicMaze), Throws.Exception.TypeOf <IndexOutOfRangeException>());
        }
Ejemplo n.º 2
0
        public void GetPathToFollow_before_search_throws_exception_Test()
        {
            Maze maze = new Maze(startingPoint.Row, startingPoint.Column, basicMaze);

            Assert.That(() => maze.GetPathToFollow(), Throws.Exception.TypeOf <ApplicationException>());
        }
Ejemplo n.º 3
0
        public void Maze_Constructor_existingMaze_throws_error_on_negative_column_Test()
        {
            Maze maze;

            Assert.That(() => maze = new Maze(startingPoint.Row, -1, basicMaze), Throws.Exception.TypeOf <IndexOutOfRangeException>());
        }