public void PolynomialCreation() { List <double> list = new List <double> { 1, 2, 3, 4, 5 }; //5*x^4+4*x^3+3*x^2+2*x+1 var pol = new Polynomial.Polynomial(list); Assert.IsNotNull(pol); Assert.IsTrue(pol.Function(1) == 15); Assert.IsTrue(pol.Function(0) == 1); Assert.IsTrue(pol.Function(-1) == 3); }