public void SubstituteVariableValue() { double[] coefficients = new double[] { 1, 2, 3, 4, 5 }; double x = 2; Polynom polynom = new Polynom(coefficients); double expected = 129; double actual = polynom.SubstituteVariableValue(x); Assert.AreEqual(expected, actual); }