Exemple #1
0
        public void Ctor_SetsArea()
        {
            double area = 2 * sideLength * sideLength * (1 + Math.Sqrt(2));

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

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