public void Generator_ForSequence2()
        {
            int[] expected = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 };
            EnumerableGenerator <int> intEnumerableGenerator = new EnumerableGenerator <int>();

            CollectionAssert.AreEqual(expected, intEnumerableGenerator.GetEnumerable(1, 2, 10, (cur, prev) => 6 * cur - 8 * prev).ToArray());
        }
        public void Generator_ForSequence1()
        {
            int[] expected = { 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 };
            EnumerableGenerator <int> intEnumerableGenerator = new EnumerableGenerator <int>();

            CollectionAssert.AreEqual(expected, intEnumerableGenerator.GetEnumerable(1, 1, 10, (cur, prev) => cur + prev).ToArray());
        }
        public void Generator_ForSequence3()
        {
            double[] expected = { 1, 2, 2.5, 3.3, 4.05757575757576, 4.87086926018965, 5.70389834408211, 6.55785277425587, 7.42763417076325, 8.31053343902137 };
            EnumerableGenerator <double> doubleEnumerableGenerator = new EnumerableGenerator <double>();
            var result = doubleEnumerableGenerator.GetEnumerable(1, 2, 10, (cur, prev) => cur + prev / cur).ToArray();

            for (int i = 0; i < result.Length; i++)
            {
                Assert.AreEqual(expected[i], result[i], 0.0000001);
            }
        }