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>()); }
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>()); }
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>()); }