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);
        }
Ejemplo n.º 2
0
 public void NumberToCubicMeterPerHourSquareMetersTest() =>
 Assert.Equal(SpecificDischarge.FromCubicMeterPerHourSquareMeters(2), 2.CubicMeterPerHourSquareMeters());
 public static SpecificDischarge CubicMeterPerHourSquareMeters <T>(this T value) =>
 SpecificDischarge.FromCubicMeterPerHourSquareMeters(Convert.ToDouble(value));