Ejemplo n.º 1
0
        public void Ctor_SetsArea()
        {
            double area = 2 * sideLength * sideLength * (1 + Math.Sqrt(2));

            CustomAssert.PlusOrMinus(area, SUT.Area, 0.001);
        }
Ejemplo n.º 2
0
        public void Ctor_SetsArea()
        {
            double area = 3 * Math.Sqrt(3) * sideLength * sideLength / 2;

            CustomAssert.PlusOrMinus(area, SUT.Area, 0.001);
        }
Ejemplo n.º 3
0
 public void Ctor_SetsCircumference() => CustomAssert.PlusOrMinus(6 * sideLength, SUT.Circumference, 0.001);
Ejemplo n.º 4
0
 public void Ctor_SetsArea() => CustomAssert.PlusOrMinus(sideLength * sideLength, SUT.Area, 0.001);