Пример #1
0
        public void IsCorrectProblem008()
        {
            var problem = new Problem008();

            Assert.Equal(Answers["8"], problem.Solve());
        }
Пример #2
0
        public void SolveTest(int n)
        {
            int sum = (n + 1) * n / 2;

            Assert.AreEqual(sum, Problem008.Solve(n));
        }