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

            sut.FoldAlongY(7);
            Assert.Equal(17, sut.GetPointCount());
        }
Exemplo n.º 2
0
        public void SolveFirstPuzzle()
        {
            var sut = new Origami(REAL_INSTRUCTIONS);

            sut.FoldAlongX(655);
            Assert.Equal(751, sut.GetPointCount());
        }
Exemplo n.º 3
0
        public void ParseInstructionsCorrectly(string instructions, int expectedPoints, int expectedFolds)
        {
            var sut = new Origami(instructions);

            Assert.Equal(expectedPoints, sut.GetPointCount());
            Assert.Equal(expectedFolds, sut.GetFoldCount());
        }