private void CalculateSnowLoad2() { if (ConditionChecker.ForDesignSituation(snowLoad.ExcepctionalSituation, snowLoad.CurrentDesignSituation, true)) { RightSnowLoad = SnowLoadCalc.CalculateSnowLoadForAnnexB(RightShapeCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod); } }
private void CalculateSnowLoad1() { if (ConditionChecker.ForDesignSituation(snowLoad.ExcepctionalSituation, snowLoad.CurrentDesignSituation, true)) { SnowLoadNearTheTop = SnowLoadCalc.CalculateSnowLoadForAnnexB(ShapeCoefficient1, snowLoad.SnowLoadForSpecificReturnPeriod); } }
public void ForDesignSituationTest_SituationB1_Exceptional_Success() { bool result = ConditionChecker.ForDesignSituation(false, DesignSituation.B3, true); Assert.IsFalse(result, "Conditions checking is wrong"); }
public void ForDesignSituationTest_SituationB1_Exceptional_NotAnnexB_Success() { bool result = ConditionChecker.ForDesignSituation(true, DesignSituation.B1, false); Assert.IsTrue(result, "Conditions checking is wrong"); }