예제 #1
0
        public void Read_9by9PuzzleString_ReturnPuzzleWithSameToString()
        {
            var puzzleString = PuzzleStringHelper.BuildPuzzleString(9);

            var reader = new PuzzleStringReader(puzzleString);
            var puzzle = reader.Read();

            Assert.Equal(puzzleString, puzzle.ToString());
        }
예제 #2
0
        public static Puzzle BuildPuzzle(string puzzleString)
        {
            var writer = new PuzzleStringReader(puzzleString);

            return(writer.Read());
        }