public void CalculateMinimumCoverDueToEnvironmentalConditionsTests(int testCaseNumber, ExposureClass exposureClass, StructuralClass structuralClass, double expectedCover) { ConcreteCoverInput inputData = new ConcreteCoverInput() { ExposureClass = ConcreteCoverCalculator.ConvertExposureClassToString(exposureClass), }; ConcreteCoverCalculator coverCalculator = new ConcreteCoverCalculator(); coverCalculator.outputData.StructuralClass = ConcreteCoverCalculator.ConvertStructuralClassToString(structuralClass); var result = coverCalculator.CalculateMinimumCoverDueToEnvironmentalConditions(inputData); Assert.AreEqual(expectedCover, result.MinimumCoverDueToEnvironmentalConditions); }
public void CalculateStructuralClass(string testCaseNumber, StructuralClass structureClass, bool designWorkingLifeOf100Years, ExposureClass exposureClass, ConcreteClass concreteClass, bool memberWithSlabGeometry, bool specialQualityControlOfTheConcreteProductionEnsured, string expectedStructuralClass) { ConcreteCoverInput inputData = new ConcreteCoverInput() { // Recommended Structural Class when design working life is 50 years BaseStructuralClass = ConcreteCoverCalculator.ConvertStructuralClassToString(structureClass), DesignWorkingLifeOf100Years = designWorkingLifeOf100Years, ExposureClass = ConcreteCoverCalculator.ConvertExposureClassToString(exposureClass), ConcreteClass = ConcreteCoverCalculator.ConvertConcreteClassToString(concreteClass), MemberWithSlabGeometry = memberWithSlabGeometry, SpecialQualityControlOfTheConcreteProductionEnsured = specialQualityControlOfTheConcreteProductionEnsured }; ConcreteCoverCalculator coverCalculator = new ConcreteCoverCalculator(); var result = coverCalculator.CalculateStructuralClass(inputData); Assert.AreEqual(expectedStructuralClass, "S" + result.StructuralClass); }