Ejemplo n.º 1
0
        public void Verify_Solution_For_OneHundred_Is_FortyFour()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(100);

            Assert.AreEqual(44, solution);
        }
Ejemplo n.º 2
0
        public void Determine_Solution()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(4000000);

            Console.WriteLine("Solution = {0}", solution);
        }
Ejemplo n.º 3
0
        public void Verify_Solution_For_OneHundred_Is_FortyFour()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(100);

            Assert.AreEqual(44, solution);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 6
0
 public void Return187WhenAddingEvenNumberOfFirstTenNumberOfFibonacciSequence()
 => ProblemTwo.GetSumOfEvenValuesOfFibonacciSequenceFromOneTo(89).Should().Be(187);