public void Given_L_H_Ratio_Of_2_85_Calculate_Glass_Tickness() { Mock <IGlassStrength> mock = new Mock <IGlassStrength>(); mock.Setup(foo => foo.GetStrength(2.85)).Returns(new AlfaBetaConstants(3.0, 0.067, 0.37)); GlassTicknessCalculator calc = new GlassTicknessCalculator(mock.Object); Aquarium aquarium = new Aquarium(99.75, 50, 35); var glassTicknes = calc.GetGlassTicknes(aquarium); Assert.Equal(6, glassTicknes); }
public void Given_L_H_Ratio_Of_1_533_Calculate_Glass_Tickness() { Mock <IGlassStrength> mock = new Mock <IGlassStrength>(); mock.Setup(foo => foo.GetStrength(1.533)).Returns(new AlfaBetaConstants(2.0, 0.056, 0.26)); GlassTicknessCalculator calc = new GlassTicknessCalculator(mock.Object); Aquarium aquarium = new Aquarium(229.95, 100, 150); var glassTicknes = calc.GetGlassTicknes(aquarium); Assert.Equal(42, glassTicknes); }