public void TestTriangleSquare(double a, double b, double c, double testSquare) { TriangleGeometry t = (TriangleGeometry)builder.BuildTriangleBySides(a, b, c); var square = t.Square(); var isRightAngle = t.IsRightAngle(); Assert.AreEqual(square, testSquare); Assert.AreEqual(isRightAngle, true); }