@Test public void isCorrectCalculationCylinderSquareWithRealValues() { Cylinder figure = new Cylinder(1.0, 1.0); assertEquals(4 * Math.PI, figure.calculateSquare(), DELTA); }
@Test public void isCorrectCalculationCylinderSquareWithZeroValue() { Cylinder figure = new Cylinder(0, 0); assertEquals(0, figure.calculateSquare(), DELTA); }
@Test public void isCorrectCalculationCylinderSquareWithIntegerValue() { Cylinder figure = new Cylinder(1, 1); assertEquals(4 * Math.PI, figure.calculateSquare(), DELTA); }