Пример #1
0
        public void Problem25_CanSolve()
        {
            // Arrange
            var expected = 4782;
            var target = new Problem25();

            // Act
            var result = target.Solve();

            // Assert
            Assert.AreEqual(expected, result);
        }
Пример #2
0
        static void Main(string[] args)
        {
            var stopWatch = new Stopwatch();
            stopWatch.Start();

            var problem = new Problem25();
            var solution = problem.Solve();

            stopWatch.Stop();
            var elapsedSeconds = stopWatch.ElapsedMilliseconds / 1000.0;

            Console.WriteLine("Found solution " + solution + " in " + elapsedSeconds + " seconds");
            Console.ReadKey();
        }