Exemplo n.º 1
0
        public void Test_FibonacciSequence_A_Prime_Number_23()
        {
            var expectedResult = new List <string> {
                "0", "1", "1", "2", "3", "5", "8", "13", "21", "23"
            };
            var objFibonacciNumbersSequenceGenerator = new FibonacciNumbersSequenceGenerator();
            var actualResult = objFibonacciNumbersSequenceGenerator.GenerateSequence(23);

            CollectionAssert.AreEqual(expectedResult, actualResult);
        }
Exemplo n.º 2
0
        public void Test_FibonacciSequence_Standard_Number_10()
        {
            var expectedResult = new List <string> {
                "0", "1", "1", "2", "3", "5", "8", "10"
            };
            var objFibonacciNumbersSequenceGenerator = new FibonacciNumbersSequenceGenerator();
            var actualResult = objFibonacciNumbersSequenceGenerator.GenerateSequence(10);

            CollectionAssert.AreEqual(expectedResult, actualResult);
        }