public Form1() { InitializeComponent(); Rectangle = new RectangleArea(); Triangle = new TriangleArea(); Circle = new CircleArea(); Quadratic = new CalcQuadratic(); Polynomial = new CalcPolynomial(); }
public void CalcXTest2() { CalcQuadratic quadratic = new CalcQuadratic(); int x = -1; int y = 3; int z = 4; double[] expectedValue = { 4.0d, -1.0d }; double[] actualValue = quadratic.CalcX(x, y, z); Assert.AreNotEqual(expectedValue, actualValue); }