コード例 #1
0
        public void Verify_Solution_For_OneHundred_Is_FortyFour()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(100);

            Assert.AreEqual(44, solution);
        }
コード例 #2
0
        public void Determine_Solution()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(4000000);

            Console.WriteLine("Solution = {0}", solution);
        }
コード例 #3
0
        public void Verify_Solution_For_OneHundred_Is_FortyFour()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(100);

            Assert.AreEqual(44, solution);
        }
コード例 #4
0
        public void Determine_Solution()
        {
            var problem = new ProblemTwo();

            long solution = problem.Solve(4000000);

            Console.WriteLine("Solution = {0}", solution);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 public void Return187WhenAddingEvenNumberOfFirstTenNumberOfFibonacciSequence()
 => ProblemTwo.GetSumOfEvenValuesOfFibonacciSequenceFromOneTo(89).Should().Be(187);