Example #1
0
        public void RealInputStageTwo()
        {
            var spiral = new SpiralStageTwo(368078);

            var nextValue = spiral.FindValueSecondStage(368078);

            Assert.Equal(369601, nextValue);
        }
Example #2
0
        public void SecondStage(int input, int output)
        {
            var spiral = new SpiralStageTwo(199);

            var nextValue = spiral.FindValueSecondStage(input);

            Assert.Equal(output, nextValue);
        }