public void ConversionRoundTrip() { StandardFlow standardcubicmeterpersecond = StandardFlow.FromStandardCubicMetersPerSecond(1); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicCentimetersPerMinute(standardcubicmeterpersecond.StandardCubicCentimetersPerMinute).StandardCubicMetersPerSecond, StandardCubicCentimetersPerMinuteTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicCentimetersPerSecond(standardcubicmeterpersecond.StandardCubicCentimetersPerSecond).StandardCubicMetersPerSecond, StandardCubicCentimetersPerSecondTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicDecimetersPerMinute(standardcubicmeterpersecond.StandardCubicDecimetersPerMinute).StandardCubicMetersPerSecond, StandardCubicDecimetersPerMinuteTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicFeetPerDay(standardcubicmeterpersecond.StandardCubicFeetPerDay).StandardCubicMetersPerSecond, StandardCubicFeetPerDayTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicFeetPerHour(standardcubicmeterpersecond.StandardCubicFeetPerHour).StandardCubicMetersPerSecond, StandardCubicFeetPerHourTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicFeetPerMinute(standardcubicmeterpersecond.StandardCubicFeetPerMinute).StandardCubicMetersPerSecond, StandardCubicFeetPerMinuteTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicFeetPerSecond(standardcubicmeterpersecond.StandardCubicFeetPerSecond).StandardCubicMetersPerSecond, StandardCubicFeetPerSecondTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicMetersPerDay(standardcubicmeterpersecond.StandardCubicMetersPerDay).StandardCubicMetersPerSecond, StandardCubicMetersPerDayTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicMetersPerHour(standardcubicmeterpersecond.StandardCubicMetersPerHour).StandardCubicMetersPerSecond, StandardCubicMetersPerHourTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicMetersPerMinute(standardcubicmeterpersecond.StandardCubicMetersPerMinute).StandardCubicMetersPerSecond, StandardCubicMetersPerMinuteTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicMetersPerSecond(standardcubicmeterpersecond.StandardCubicMetersPerSecond).StandardCubicMetersPerSecond, StandardCubicMetersPerSecondTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicMillimetersPerSecond(standardcubicmeterpersecond.StandardCubicMillimetersPerSecond).StandardCubicMetersPerSecond, StandardCubicMillimetersPerSecondTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicYardsPerDay(standardcubicmeterpersecond.StandardCubicYardsPerDay).StandardCubicMetersPerSecond, StandardCubicYardsPerDayTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicYardsPerHour(standardcubicmeterpersecond.StandardCubicYardsPerHour).StandardCubicMetersPerSecond, StandardCubicYardsPerHourTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicYardsPerMinute(standardcubicmeterpersecond.StandardCubicYardsPerMinute).StandardCubicMetersPerSecond, StandardCubicYardsPerMinuteTolerance); AssertEx.EqualTolerance(1, StandardFlow.FromStandardCubicYardsPerSecond(standardcubicmeterpersecond.StandardCubicYardsPerSecond).StandardCubicMetersPerSecond, StandardCubicYardsPerSecondTolerance); }
public void NumberToStandardCubicDecimetersPerMinuteTest() => Assert.Equal(StandardFlow.FromStandardCubicDecimetersPerMinute(2), 2.StandardCubicDecimetersPerMinute());
public static StandardFlow StandardCubicDecimetersPerMinute <T>(this T value) => StandardFlow.FromStandardCubicDecimetersPerMinute(Convert.ToDouble(value));