public void FindsExitPath() { var input = new char[, ] { { 'S', 'X', 'X' }, { ' ', ' ', ' ' }, { ' ', ' ', 'E' } }; var hasExit = SearchMaze.HasExit(input); Assert.True(hasExit); }
public void ReturnsFalseIfPathNotFound() { var input = new char[, ] { { 'S', 'X', 'X' }, { ' ', ' ', 'X' }, { ' ', 'X', 'E' } }; var hasExit = SearchMaze.HasExit(input); Assert.False(hasExit); }