public void CirAreaTest2()
        {
            CircleArea circle        = new CircleArea();
            double     x             = 2;
            double     expectedValue = 3.1415926535897931d;
            double     actualValue   = circle.CirArea(x);

            Assert.AreNotEqual(expectedValue, actualValue);
        }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     Rectangle  = new RectangleArea();
     Triangle   = new TriangleArea();
     Circle     = new CircleArea();
     Quadratic  = new CalcQuadratic();
     Polynomial = new CalcPolynomial();
 }