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); }
/// <summary> /// Converts ArrangementOfBars to string /// </summary> /// <param name="arrangementOfBars"></param> /// <returns></returns> public static string ConvertArrangementOfBarsToString(ArrangementOfBars arrangementOfBars) { return(arrangementOfBars.ToString()); }