static void Main(string[] args) { Overseer overseer = new Overseer(); overseer.Setup(); overseer.Expression.Print(); var mTerm = Multiplier.Multiply(overseer.Expression.PolynomialList[0].Terms[0], overseer.Expression.PolynomialList[0].Terms[1]); var dTerm = Divider.Divide(overseer.Expression.PolynomialList[0].Terms[0], overseer.Expression.PolynomialList[0].Terms[1]); var rPolynomial = Multiplier.Multiply(overseer.Expression.PolynomialList[0], overseer.Expression.PolynomialList[0]); var aPolynomial = Adder.Add(overseer.Expression.PolynomialList[0], overseer.Expression.PolynomialList[0]); mTerm.Print(); dTerm.Print(); rPolynomial.Print(); aPolynomial.Print(); }
public void YLessThan0() { Assert.AreEqual(Divider.Divide(500, -10), "Error: y must be in (0..100]"); }
public void XGreater0Less999() { Assert.AreNotEqual(Divider.Divide(10, 5), "Error: x must be in [0..999]"); }
public void XGreaterThan999() { Assert.AreEqual(Divider.Divide(1500, 20), "Error: x must be in [0..999]"); }
public void XLessThan0() { Assert.AreEqual(Divider.Divide(-200, 20), "Error: x must be in [0..999]"); }