public void TriAngleFactory_CalcArea(double a, double b, double c, double area) { Assert.LessOrEqual(Math.Abs(TriAngleFactory.Create(a, b, c).CalcArea() - area), 0.0001d); }
public void TriAngleFactory_Constructor_ThrowsZeroLengthException(double a, double b, double c) { Assert.Throws <ZeroLengthException>(() => TriAngleFactory.Create(a, b, c)); }
public void CheckPythagorasTheorem_ReturnTrue(double a, double b, double c) { Assert.True(TriAngleFactory.CheckPythagorasTheorem(a, b, c)); }
public void TriAngleFactory_Create_RightTriAngle(double a, double b, double c) { Assert.IsInstanceOf <RightTriAngle>(TriAngleFactory.Create(a, b, c)); }