public void Ctor_SetsArea() { double area = 2 * sideLength * sideLength * (1 + Math.Sqrt(2)); CustomAssert.PlusOrMinus(area, SUT.Area, 0.001); }
public void Ctor_SetsArea() { double area = 3 * Math.Sqrt(3) * sideLength * sideLength / 2; CustomAssert.PlusOrMinus(area, SUT.Area, 0.001); }
public void Ctor_SetsCircumference() => CustomAssert.PlusOrMinus(6 * sideLength, SUT.Circumference, 0.001);
public void Ctor_SetsArea() => CustomAssert.PlusOrMinus(sideLength * sideLength, SUT.Area, 0.001);