예제 #1
0
        public void SolveSecondPuzzle()
        {
            var sut = new Origami(REAL_INSTRUCTIONS);

            sut.FoldAccordingToInstructions();
            Assert.Equal(@"###...##..#..#.###..#..#.#....#..#.#....
#..#.#..#.#..#.#..#.#.#..#....#.#..#....
#..#.#....####.#..#.##...#....##...#....
###..#.##.#..#.###..#.#..#....#.#..#....
#....#..#.#..#.#.#..#.#..#....#.#..#....
#.....###.#..#.#..#.#..#.####.#..#.####.", sut.PlotPoints());
        }
예제 #2
0
        public void PlotPointsCorrectly()
        {
            var sut = new Origami(SAMPLE_INSTRUCTIONS);

            sut.FoldAccordingToInstructions();
            Assert.Equal(@"#####
#...#
#...#
#...#
#####
.....
.....", sut.PlotPoints());
        }