public void SolutionsShouldMatch(int maxNumber, long expectedValue) { var problem = new Problem6(); var result = problem.Solve(new SingleLimitProblemArgs(maxNumber)); Assert.AreEqual(expectedValue.ToString(), result); }
public void SolveTest() { Problem6 problem6 = new Problem6(); double expected = 2640; double actual = problem6.Solve(10); Assert.AreEqual(expected, actual); }
static void Main(string[] args) { Console.WriteLine($"Problem 1: {Problem1.Solve()}"); Console.WriteLine($"Problem 2: {Problem2.Solve()}"); Console.WriteLine($"Problem 3: {Problem3.Solve()}"); Console.WriteLine($"Problem 4: {Problem4.Solve()}"); Console.WriteLine($"Problem 5: {Problem5.Solve()}"); Console.WriteLine($"Problem 6: {Problem6.Solve()}"); Console.WriteLine($"Problem 7: {Problem7.Solve()}"); Console.WriteLine($"Problem 8: {Problem8.Solve()}"); Console.WriteLine($"Problem 9: {Problem9.Solve()}"); Console.WriteLine($"Problem 10: {Problem10.Solve()}"); }
public void Verify_Difference() { Assert.AreEqual(170, Problem6.Solve(5)); Assert.AreEqual(2640, Problem6.Solve(10)); }