Пример #1
0
        public static void ReturnsSolution(int n, int x)
        {
            var result = Problem28.Solution(n);

            Assert.AreEqual(x, result);
        }
        public void Problem28_Return_Result_669171001()
        {
            long act = Problem28.NumberSpiralDiagonals();

            Assert.True(act.Equals(669171001));
        }
Пример #3
0
        public static void SpiralDiagonalSequence(int n, int x)
        {
            var element = Problem28.SpiralDiagonalSequence(n);

            Assert.AreEqual(x, element);
        }