Пример #1
0
        public void CalculateMinimumCoverDueToBondRequirementTests(int testCaseNumber, ArrangementOfBars arrangementOfBars,
                                                                   double rebarDiameter, bool NominalMaximumAggregateSizeIsGreaterThan32mm, double expectedCover)
        {
            ConcreteCoverInput inputData = new ConcreteCoverInput()
            {
                ArrangementOfBars = ConcreteCoverCalculator.ConvertArrangementOfBarsToString(arrangementOfBars),
                RebarDiameter     = (rebarDiameter * 1000).ToString() + " mm",
                NominalMaximumAggregateSizeIsGreaterThan32mm = NominalMaximumAggregateSizeIsGreaterThan32mm
            };

            ConcreteCoverCalculator coverCalculator = new ConcreteCoverCalculator();

            var result = coverCalculator.CalculateMinimumCoverDueToBondRequirement(inputData);

            Assert.AreEqual(expectedCover, result.MinimumCoverDueToBondRequirement);
        }
Пример #2
0
 /// <summary>
 /// Converts ArrangementOfBars to string
 /// </summary>
 /// <param name="arrangementOfBars"></param>
 /// <returns></returns>
 public static string ConvertArrangementOfBarsToString(ArrangementOfBars arrangementOfBars)
 {
     return(arrangementOfBars.ToString());
 }