示例#1
0
        public void RealInput()
        {
            var spiral = new Spiral(368078);

            var distance = spiral.GetDistance();

            Assert.Equal(371, distance);
        }
示例#2
0
        public void FindDistance(int target, int expectedDistance)
        {
            var spiral = new Spiral(target);

            var distance = spiral.GetDistance();

            Assert.Equal(expectedDistance, distance);
        }