Beispiel #1
0
        public void GeneratorFibonacci_3_DoneArray()
        {
            List <BigInteger> actual = new List <BigInteger>();

            foreach (BigInteger el in FibonacciGenerator.GeneratorFibonacci(3))
            {
                actual.Add(el);
            }

            List <BigInteger> expected = new List <BigInteger>()
            {
                new BigInteger(1), new BigInteger(1), new BigInteger(2)
            };

            CollectionAssert.AreEqual(expected, actual);
        }
Beispiel #2
0
 public void GeneratorFibonacci_Exception()
 => FibonacciGenerator.GeneratorFibonacci(0);