public void CalculateArea_Correct(double radius, double area) { var circle = FlatFigureFabric.CreateCircle(radius); var result = circle.CalculateArea(); Assert.AreEqual(area, result); }
public void NewCircle_NotPositiveRadius_Exception(double radius) { Assert.Throws <ValidationException>(() => FlatFigureFabric.CreateCircle(radius)); }
public void NewCircle_PositiveRadius_OK(double radius) { Assert.DoesNotThrow(() => FlatFigureFabric.CreateCircle(radius)); }