Exemple #1
0
        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());
        }
Exemple #2
0
 public void TestIsNotSolvedWhenPuzzleIsIncomplete()
 {
     Assert.IsFalse(_sudoku.IsSolved());
 }
Exemple #3
0
 public void TestIsSolvedWhenNoPuzzle()
 {
     _sudoku = new Sudoku(null, new Point2D());
     Assert.IsTrue(_sudoku.IsSolved());
 }