Пример #1
0
 public Form1()
 {
     InitializeComponent();
     Rectangle  = new RectangleArea();
     Triangle   = new TriangleArea();
     Circle     = new CircleArea();
     Quadratic  = new CalcQuadratic();
     Polynomial = new CalcPolynomial();
 }
Пример #2
0
        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);
        }