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

            sut.FoldAlongX(655);
            Assert.Equal(751, sut.GetPointCount());
        }
예제 #2
0
        public void FoldPaperAlongXaxisCorrectly_WhenUsingSampleInstructions()
        {
            var sut = new Origami(SAMPLE_INSTRUCTIONS);

            sut.FoldAlongY(7);
            sut.FoldAlongX(5);
            Assert.Equal(16, sut.GetPointCount());
        }