Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     Rectangle  = new RectangleArea();
     Triangle   = new TriangleArea();
     Circle     = new CircleArea();
     Quadratic  = new CalcQuadratic();
     Polynomial = new CalcPolynomial();
 }
Ejemplo n.º 2
0
        public void RectAreaTest2()
        {
            RectangleArea rectangle     = new RectangleArea();
            int           x             = 4;
            int           y             = 3;
            int           expectedValue = 20;
            int           actualValue   = rectangle.RectArea(x, y);

            Assert.AreNotEqual(expectedValue, actualValue);
        }