public void TestIsSolvedWhenPuzzleIsComplete() { string solution = new string('1', 81); PuzzleData puzzleData = new PuzzleData(solution, solution); _sudoku = new Sudoku(puzzleData, new Point2D()); Assert.IsTrue(_sudoku.IsSolved()); }
public void TestIsNotSolvedWhenPuzzleIsIncomplete() { Assert.IsFalse(_sudoku.IsSolved()); }
public void TestIsSolvedWhenNoPuzzle() { _sudoku = new Sudoku(null, new Point2D()); Assert.IsTrue(_sudoku.IsSolved()); }