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

            long solution = problem.Solve(100);

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

            long solution = problem.Solve(4000000);

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

            long solution = problem.Solve(100);

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