public void TestGetTriangleHeightFloat() { float distanceFloat = 10.60F; double result = PackingCircles.GetTriangleHeight(distanceFloat); Assert.IsNotNull(result); Assert.AreEqual(9, result); }
public void TestGetTriangleHeightInt() { int distanceInt = 10; double result = PackingCircles.GetTriangleHeight(distanceInt); Assert.IsNotNull(result); Assert.AreEqual(8, result); }
public void TestGetTriangleHeightDoubleNegativeAndZero() { double negativeDistance = -10; double zeroDistance = 0; double resultNegative = PackingCircles.GetTriangleHeight(negativeDistance); double resultZero = PackingCircles.GetTriangleHeight(zeroDistance); Assert.IsNotNull(resultNegative); Assert.IsNotNull(resultZero); Assert.AreEqual(0, resultNegative); Assert.AreEqual(0, resultZero); }