Esempio n. 1
0
        public void Problem1_Example1(int address, int expectedDistance)
        {
            var distance = SpiralMemory.Distance(address);

            Assert.Equal(expectedDistance, distance);
        }
Esempio n. 2
0
        public override string SecondStar()
        {
            var result = SpiralMemory.FirstWrittenLargerThan(289326);

            return(result.ToString());
        }
Esempio n. 3
0
        public void Problem2_Example1(int value, int expected)
        {
            var written = SpiralMemory.FirstWrittenLargerThan(value);

            Assert.Equal(expected, written);
        }
Esempio n. 4
0
        public override string FirstStar()
        {
            var result = SpiralMemory.Distance(289326);

            return(result.ToString());
        }