public void TileError() { var validSudoku = TestsHelpers.GetBoardContent("Boards\\BoardTileError.txt"); Board board = new Board(validSudoku); Assert.IsFalse(board.IsValid()); }
public void ValidBoard() { var validSudoku = TestsHelpers.GetBoardContent("Boards\\BoardValid.txt"); Board board = new Board(validSudoku); Assert.IsTrue(board.IsValid()); }
public void GenerateOneFilled() { var board = new Board(TestsHelpers.GetBoardContent("Boards\\BoardValid.txt")); board = board.Generate(1); Assert.IsTrue(board.IsValid()); }
public void ConstructorStringArray() { var validSudoku = TestsHelpers.GetBoardContent("Boards\\BoardValid.txt"); Board board = new Board(validSudoku); foreach (var value in board.AsStrings()) { Console.WriteLine(value); } Assert.AreEqual(validSudoku, board.AsStrings()); }