Exemplo n.º 1
0
        public void SolveSecondPuzzle()
        {
            var sut = new Origami(REAL_INSTRUCTIONS);

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

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