public void BendingMomentLoadResults_GetValueForBendingMomentTest_Success()
        {
            var continousLoad = new Mock <IContinousLoad>();

            continousLoad.Setup(cl => cl.StartPosition.Value).Returns(5);

            var bendingMomentResult = new BendingMomentResult(continousLoad.Object);

            var result = bendingMomentResult.GetValue(4);

            Assert.That(result, Is.EqualTo(20));
        }
示例#2
0
        public void ShearLoadResults_GetValueForBendingMomentTest_InsideLoadLength_Success()
        {
            var result = _bendingMomentResult.GetValue(distanceFromLoadStartPosition: 2);

            Assert.That(result, Is.EqualTo(2.444444).Within(0.000001));
        }
示例#3
0
 public virtual double CalculateBendingMoment(double distanceFromLoadStartPosition)
 => BendingMomentResult?.GetValue(distanceFromLoadStartPosition) ?? 0;