static void Main(string[] args) { //Programs.Polynomial obj = new Programs.Polynomial(); //int num = obj.GetPolynomial(343); Febonacci obj = new Febonacci(); //obj.Print(10); obj.print1(); }
public void Skip_Take_Test() { var febonaci = new Febonacci(new FebonacciGenerator()); var result = febonaci.Skip(1).Take(10).ToArray(); var expected = FEBONNACI.Skip(1).Take(10).ToArray(); Console.Write(result); Assert.AreEqual(expected.Count(), result.Count()); Assert.AreEqual(ZERO_BASE_FEBONNACI.Skip(1).Take(10).ToArray(), result); }