public void IsCorrectProblem008() { var problem = new Problem008(); Assert.Equal(Answers["8"], problem.Solve()); }
public void SolveTest(int n) { int sum = (n + 1) * n / 2; Assert.AreEqual(sum, Problem008.Solve(n)); }