public void Test_CircleSquare_IsCorrect() { var rad = 5; var c = FigureFabric.CreateCircle(rad); Assert.IsTrue(Math.Abs(c.Square - 78.539) < error); }
public void Test_Triangle_InvalidSide_ThrowsException(double a, double b, double c) { FigureFabric.CreateTriange(a, b, c); }
public void Test_Triangle_IsRectangular() { var t = FigureFabric.CreateTriange(2, 3, 3.605); Assert.IsTrue(((Triangle)t).IsRectangular); }
public void Test_TriangleSquare_IsCorrect() { var c = FigureFabric.CreateTriange(2, 3, 3.605); Assert.IsTrue(Math.Abs(c.Square - 3) < error); }
public void Test_Circle_InvalidRadius_ThrowsException() { var c = FigureFabric.CreateCircle(-5); }