Beispiel #1
0
        public void ExcessReinf_NormalValue_ReturnsReduced()
        {
            double             concreteStrength = 5000.0;
            double             excessReinf      = 0.5;
            double             ld      = 20;
            DevelopmentTension tensDev = CreateDevelopmentObject(concreteStrength, 1.0, 1.0, false, excessReinf, false);

            tensDev.ExcessFlexureReinforcementRatio = excessReinf;
            double ldReduced = tensDev.CheckExcessReinforcement(ld, true, false);

            Assert.AreEqual(ld * excessReinf, ldReduced);
        }
Beispiel #2
0
        //[ExpectedException(ExpectedMessage = "Exceess reinforcement ratio cannot be more than 1.0")]
        public void ExcessReinf_ExcessRebarMoreThan1_ThrowsException()
        {
            double             excessReinf = 2.0;
            double             ld          = 20;
            DevelopmentTension tensDev     = CreateDevelopmentObject(4000.0, 1.0, 1.0, false, excessReinf, false);

            tensDev.ExcessFlexureReinforcementRatio = excessReinf;
            //double ldReduced = tensDev.CheckExcessReinforcement(ld, true, false);

            var ex = Assert.Throws <Exception>(() => tensDev.CheckExcessReinforcement(ld, true, false));

            Assert.That(ex.Message, Is.EqualTo("Exceess reinforcement ratio cannot be more than 1.0"));
        }