public void Read_9by9PuzzleString_ReturnPuzzleWithSameToString() { var puzzleString = PuzzleStringHelper.BuildPuzzleString(9); var reader = new PuzzleStringReader(puzzleString); var puzzle = reader.Read(); Assert.Equal(puzzleString, puzzle.ToString()); }
public static Puzzle BuildPuzzle(string puzzleString) { var writer = new PuzzleStringReader(puzzleString); return(writer.Read()); }