public void ConeBasePerimeterWithNegativesTest() { Cone cone = new Cone(-11.5, 10); double actualPerimeter = cone.GetBasePerimeter(); double expectedPerimeter = 0; Assert.AreEqual(expectedPerimeter, actualPerimeter, 0.0001); }
public void ConeBasePerimeterTest() { Cone cone = new Cone(11.5, 10); double actualPerimeter = cone.GetBasePerimeter(); double expectedPerimeter = 72.2566; Assert.AreEqual(expectedPerimeter, actualPerimeter, 0.0001); }