Example #1
0
        public void TestNumberSpiralDiagonals()
        {
            int rows = 1001;
            var task = new Task28();

            Assert.AreEqual(669171001, task.Run(rows), $"The sum of the numbers on the diagonals in a {rows} by {rows} spiral is {task.Run(rows)}");
        }
 static void Main(string[] args)
 {
     Task28.ExecuteTask();
 }