public void ConversionRoundTrip()
        {
            SpecificDischarge litersecondpersquaremeter = SpecificDischarge.FromLiterSecondPerSquareMeters(1);

            AssertEx.EqualTolerance(1, SpecificDischarge.FromCubicFootMinutePerSquareFoots(litersecondpersquaremeter.CubicFootMinutePerSquareFoots).LiterSecondPerSquareMeters, CubicFootMinutePerSquareFootsTolerance);
            AssertEx.EqualTolerance(1, SpecificDischarge.FromCubicMeterPerHourSquareMeters(litersecondpersquaremeter.CubicMeterPerHourSquareMeters).LiterSecondPerSquareMeters, CubicMeterPerHourSquareMetersTolerance);
            AssertEx.EqualTolerance(1, SpecificDischarge.FromLiterSecondPerSquareMeters(litersecondpersquaremeter.LiterSecondPerSquareMeters).LiterSecondPerSquareMeters, LiterSecondPerSquareMetersTolerance);
        }
Пример #2
0
 public void NumberToCubicFootMinutePerSquareFootsTest() =>
 Assert.Equal(SpecificDischarge.FromCubicFootMinutePerSquareFoots(2), 2.CubicFootMinutePerSquareFoots());
 public static SpecificDischarge CubicFootMinutePerSquareFoots <T>(this T value) =>
 SpecificDischarge.FromCubicFootMinutePerSquareFoots(Convert.ToDouble(value));