示例#1
0
 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);
 }
示例#2
0
 public void TriAngleFactory_Constructor_ThrowsZeroLengthException(double a, double b, double c)
 {
     Assert.Throws <ZeroLengthException>(() => TriAngleFactory.Create(a, b, c));
 }
示例#3
0
 public void CheckPythagorasTheorem_ReturnTrue(double a, double b, double c)
 {
     Assert.True(TriAngleFactory.CheckPythagorasTheorem(a, b, c));
 }
示例#4
0
 public void TriAngleFactory_Create_RightTriAngle(double a, double b, double c)
 {
     Assert.IsInstanceOf <RightTriAngle>(TriAngleFactory.Create(a, b, c));
 }