public void Verify_Solution_For_OneHundred_Is_FortyFour() { var problem = new ProblemTwo(); long solution = problem.Solve(100); Assert.AreEqual(44, solution); }
public void Determine_Solution() { var problem = new ProblemTwo(); long solution = problem.Solve(4000000); Console.WriteLine("Solution = {0}", solution); }
public void ListCombiner_WhenCalled_ShouldReturnCombinedList() { List <string> expected = new List <string> { "a", "b", "c", "d", "e", "f" }; var actual = ProblemTwo.ListCombiner <string>(new List <string> { "a", "c", "e" }, new List <string> { "b", "d", "f" }); CollectionAssert.AreEqual(expected, actual); }
public void Return187WhenAddingEvenNumberOfFirstTenNumberOfFibonacciSequence() => ProblemTwo.GetSumOfEvenValuesOfFibonacciSequenceFromOneTo(89).Should().Be(187);