@@ -66,6 +66,7 @@ public abstract partial class VolumeFlowTestsBase
66
66
protected abstract double CubicYardsPerSecondInOneCubicMeterPerSecond { get ; }
67
67
protected abstract double DecilitersPerMinuteInOneCubicMeterPerSecond { get ; }
68
68
protected abstract double KilolitersPerMinuteInOneCubicMeterPerSecond { get ; }
69
+ protected abstract double KilousGallonsPerMinuteInOneCubicMeterPerSecond { get ; }
69
70
protected abstract double LitersPerHourInOneCubicMeterPerSecond { get ; }
70
71
protected abstract double LitersPerMinuteInOneCubicMeterPerSecond { get ; }
71
72
protected abstract double LitersPerSecondInOneCubicMeterPerSecond { get ; }
@@ -94,6 +95,7 @@ public abstract partial class VolumeFlowTestsBase
94
95
protected virtual double CubicYardsPerSecondTolerance { get { return 1e-5 ; } }
95
96
protected virtual double DecilitersPerMinuteTolerance { get { return 1e-5 ; } }
96
97
protected virtual double KilolitersPerMinuteTolerance { get { return 1e-5 ; } }
98
+ protected virtual double KilousGallonsPerMinuteTolerance { get { return 1e-5 ; } }
97
99
protected virtual double LitersPerHourTolerance { get { return 1e-5 ; } }
98
100
protected virtual double LitersPerMinuteTolerance { get { return 1e-5 ; } }
99
101
protected virtual double LitersPerSecondTolerance { get { return 1e-5 ; } }
@@ -126,6 +128,7 @@ public void CubicMeterPerSecondToVolumeFlowUnits()
126
128
AssertEx . EqualTolerance ( CubicYardsPerSecondInOneCubicMeterPerSecond , cubicmeterpersecond . CubicYardsPerSecond , CubicYardsPerSecondTolerance ) ;
127
129
AssertEx . EqualTolerance ( DecilitersPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . DecilitersPerMinute , DecilitersPerMinuteTolerance ) ;
128
130
AssertEx . EqualTolerance ( KilolitersPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . KilolitersPerMinute , KilolitersPerMinuteTolerance ) ;
131
+ AssertEx . EqualTolerance ( KilousGallonsPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . KilousGallonsPerMinute , KilousGallonsPerMinuteTolerance ) ;
129
132
AssertEx . EqualTolerance ( LitersPerHourInOneCubicMeterPerSecond , cubicmeterpersecond . LitersPerHour , LitersPerHourTolerance ) ;
130
133
AssertEx . EqualTolerance ( LitersPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . LitersPerMinute , LitersPerMinuteTolerance ) ;
131
134
AssertEx . EqualTolerance ( LitersPerSecondInOneCubicMeterPerSecond , cubicmeterpersecond . LitersPerSecond , LitersPerSecondTolerance ) ;
@@ -157,6 +160,7 @@ public void FromValueAndUnit()
157
160
AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . CubicYardPerSecond ) . CubicYardsPerSecond , CubicYardsPerSecondTolerance ) ;
158
161
AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . DecilitersPerMinute ) . DecilitersPerMinute , DecilitersPerMinuteTolerance ) ;
159
162
AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . KilolitersPerMinute ) . KilolitersPerMinute , KilolitersPerMinuteTolerance ) ;
163
+ AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . KilousGallonsPerMinute ) . KilousGallonsPerMinute , KilousGallonsPerMinuteTolerance ) ;
160
164
AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . LitersPerHour ) . LitersPerHour , LitersPerHourTolerance ) ;
161
165
AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . LitersPerMinute ) . LitersPerMinute , LitersPerMinuteTolerance ) ;
162
166
AssertEx . EqualTolerance ( 1 , VolumeFlow . From ( 1 , VolumeFlowUnit . LitersPerSecond ) . LitersPerSecond , LitersPerSecondTolerance ) ;
@@ -189,6 +193,7 @@ public void As()
189
193
AssertEx . EqualTolerance ( CubicYardsPerSecondInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . CubicYardPerSecond ) , CubicYardsPerSecondTolerance ) ;
190
194
AssertEx . EqualTolerance ( DecilitersPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . DecilitersPerMinute ) , DecilitersPerMinuteTolerance ) ;
191
195
AssertEx . EqualTolerance ( KilolitersPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . KilolitersPerMinute ) , KilolitersPerMinuteTolerance ) ;
196
+ AssertEx . EqualTolerance ( KilousGallonsPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . KilousGallonsPerMinute ) , KilousGallonsPerMinuteTolerance ) ;
192
197
AssertEx . EqualTolerance ( LitersPerHourInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . LitersPerHour ) , LitersPerHourTolerance ) ;
193
198
AssertEx . EqualTolerance ( LitersPerMinuteInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . LitersPerMinute ) , LitersPerMinuteTolerance ) ;
194
199
AssertEx . EqualTolerance ( LitersPerSecondInOneCubicMeterPerSecond , cubicmeterpersecond . As ( VolumeFlowUnit . LitersPerSecond ) , LitersPerSecondTolerance ) ;
@@ -261,6 +266,10 @@ public void ToUnit()
261
266
AssertEx . EqualTolerance ( KilolitersPerMinuteInOneCubicMeterPerSecond , ( double ) kilolitersperminuteQuantity . Value , KilolitersPerMinuteTolerance ) ;
262
267
Assert . Equal ( VolumeFlowUnit . KilolitersPerMinute , kilolitersperminuteQuantity . Unit ) ;
263
268
269
+ var kilousgallonsperminuteQuantity = cubicmeterpersecond . ToUnit ( VolumeFlowUnit . KilousGallonsPerMinute ) ;
270
+ AssertEx . EqualTolerance ( KilousGallonsPerMinuteInOneCubicMeterPerSecond , ( double ) kilousgallonsperminuteQuantity . Value , KilousGallonsPerMinuteTolerance ) ;
271
+ Assert . Equal ( VolumeFlowUnit . KilousGallonsPerMinute , kilousgallonsperminuteQuantity . Unit ) ;
272
+
264
273
var litersperhourQuantity = cubicmeterpersecond . ToUnit ( VolumeFlowUnit . LitersPerHour ) ;
265
274
AssertEx . EqualTolerance ( LitersPerHourInOneCubicMeterPerSecond , ( double ) litersperhourQuantity . Value , LitersPerHourTolerance ) ;
266
275
Assert . Equal ( VolumeFlowUnit . LitersPerHour , litersperhourQuantity . Unit ) ;
@@ -331,6 +340,7 @@ public void ConversionRoundTrip()
331
340
AssertEx . EqualTolerance ( 1 , VolumeFlow . FromCubicYardsPerSecond ( cubicmeterpersecond . CubicYardsPerSecond ) . CubicMetersPerSecond , CubicYardsPerSecondTolerance ) ;
332
341
AssertEx . EqualTolerance ( 1 , VolumeFlow . FromDecilitersPerMinute ( cubicmeterpersecond . DecilitersPerMinute ) . CubicMetersPerSecond , DecilitersPerMinuteTolerance ) ;
333
342
AssertEx . EqualTolerance ( 1 , VolumeFlow . FromKilolitersPerMinute ( cubicmeterpersecond . KilolitersPerMinute ) . CubicMetersPerSecond , KilolitersPerMinuteTolerance ) ;
343
+ AssertEx . EqualTolerance ( 1 , VolumeFlow . FromKilousGallonsPerMinute ( cubicmeterpersecond . KilousGallonsPerMinute ) . CubicMetersPerSecond , KilousGallonsPerMinuteTolerance ) ;
334
344
AssertEx . EqualTolerance ( 1 , VolumeFlow . FromLitersPerHour ( cubicmeterpersecond . LitersPerHour ) . CubicMetersPerSecond , LitersPerHourTolerance ) ;
335
345
AssertEx . EqualTolerance ( 1 , VolumeFlow . FromLitersPerMinute ( cubicmeterpersecond . LitersPerMinute ) . CubicMetersPerSecond , LitersPerMinuteTolerance ) ;
336
346
AssertEx . EqualTolerance ( 1 , VolumeFlow . FromLitersPerSecond ( cubicmeterpersecond . LitersPerSecond ) . CubicMetersPerSecond , LitersPerSecondTolerance ) ;
0 commit comments