public void TestMethod6() { char[][] board = null; var expected = false; var sut = new valid_sudoku.Solution(); var actual = sut.IsValidSudoku(board); Assert.AreEqual(expected, actual); }
public void TestMethod5() { var board = new char[][] { new char[] { '6', '3', '.', '.', '7', '.', '.', '.', '.' }, new char[] { '6', '.', '.', '1', '9', '5', '.', '.', '.' }, new char[] { '.', '9', '8', '.', '.', '.', '.', '6', '.' }, new char[] { '8', '.', '.', '.', '6', '.', '.', '.', '3' }, new char[] { '4', '.', '.', '8', '.', '3', '.', '.', '1' }, new char[] { '7', '.', '.', '.', '2', '.', '.', '.', '6' }, new char[] { '.', '6', '.', '.', '.', '.', '2', '8', '.' }, new char[] { '.', '.', '.', '4', '1', '9', '.', '.', '5' }, new char[] { '1', '.', '.', '.', '8', '.', '.', '7', '9' } }; var expected = false; var sut = new valid_sudoku.Solution(); var actual = sut.IsValidSudoku(board); Assert.AreEqual(expected, actual); }
public void TestMethod2() { var board = new char[][] { new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' }, new char[] { '.', '.', '.', '.', '.', '.', '.', '.', '.' } }; var expected = true; var sut = new valid_sudoku.Solution(); var actual = sut.IsValidSudoku(board); Assert.AreEqual(expected, actual); }