public void SolutionsShouldMatch(int primeOrder, long expectedValue) { var problem = new Problem7(); var result = problem.Solve(new SingleLimitProblemArgs(primeOrder)); Assert.AreEqual(expectedValue.ToString(), result); }
public void SolveTest() { Problem7 problem7 = new Problem7(); double expected = 13; double actual = problem7.Solve(6); 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 Get_Specific_Prime_Number() { Assert.AreEqual(13, Problem7.Solve(6)); Assert.AreEqual(47, Problem7.Solve(15)); Assert.AreEqual(104743, Problem7.Solve1(10001)); }