@@ -66,6 +66,7 @@ public abstract partial class MassFlowTestsBase
66
66
protected abstract double PoundsPerHourInOneGramPerSecond { get ; }
67
67
protected abstract double ShortTonsPerHourInOneGramPerSecond { get ; }
68
68
protected abstract double TonnesPerDayInOneGramPerSecond { get ; }
69
+ protected abstract double TonnesPerHourInOneGramPerSecond { get ; }
69
70
70
71
// ReSharper disable VirtualMemberNeverOverriden.Global
71
72
protected virtual double CentigramsPerSecondTolerance { get { return 1e-5 ; } }
@@ -82,6 +83,7 @@ public abstract partial class MassFlowTestsBase
82
83
protected virtual double PoundsPerHourTolerance { get { return 1e-5 ; } }
83
84
protected virtual double ShortTonsPerHourTolerance { get { return 1e-5 ; } }
84
85
protected virtual double TonnesPerDayTolerance { get { return 1e-5 ; } }
86
+ protected virtual double TonnesPerHourTolerance { get { return 1e-5 ; } }
85
87
// ReSharper restore VirtualMemberNeverOverriden.Global
86
88
87
89
[ Fact ]
@@ -102,6 +104,7 @@ public void GramPerSecondToMassFlowUnits()
102
104
AssertEx . EqualTolerance ( PoundsPerHourInOneGramPerSecond , grampersecond . PoundsPerHour , PoundsPerHourTolerance ) ;
103
105
AssertEx . EqualTolerance ( ShortTonsPerHourInOneGramPerSecond , grampersecond . ShortTonsPerHour , ShortTonsPerHourTolerance ) ;
104
106
AssertEx . EqualTolerance ( TonnesPerDayInOneGramPerSecond , grampersecond . TonnesPerDay , TonnesPerDayTolerance ) ;
107
+ AssertEx . EqualTolerance ( TonnesPerHourInOneGramPerSecond , grampersecond . TonnesPerHour , TonnesPerHourTolerance ) ;
105
108
}
106
109
107
110
[ Fact ]
@@ -121,6 +124,7 @@ public void FromValueAndUnit()
121
124
AssertEx . EqualTolerance ( 1 , MassFlow . From ( 1 , MassFlowUnit . PoundPerHour ) . PoundsPerHour , PoundsPerHourTolerance ) ;
122
125
AssertEx . EqualTolerance ( 1 , MassFlow . From ( 1 , MassFlowUnit . ShortTonPerHour ) . ShortTonsPerHour , ShortTonsPerHourTolerance ) ;
123
126
AssertEx . EqualTolerance ( 1 , MassFlow . From ( 1 , MassFlowUnit . TonnePerDay ) . TonnesPerDay , TonnesPerDayTolerance ) ;
127
+ AssertEx . EqualTolerance ( 1 , MassFlow . From ( 1 , MassFlowUnit . TonnePerHour ) . TonnesPerHour , TonnesPerHourTolerance ) ;
124
128
}
125
129
126
130
[ Fact ]
@@ -141,6 +145,7 @@ public void As()
141
145
AssertEx . EqualTolerance ( PoundsPerHourInOneGramPerSecond , grampersecond . As ( MassFlowUnit . PoundPerHour ) , PoundsPerHourTolerance ) ;
142
146
AssertEx . EqualTolerance ( ShortTonsPerHourInOneGramPerSecond , grampersecond . As ( MassFlowUnit . ShortTonPerHour ) , ShortTonsPerHourTolerance ) ;
143
147
AssertEx . EqualTolerance ( TonnesPerDayInOneGramPerSecond , grampersecond . As ( MassFlowUnit . TonnePerDay ) , TonnesPerDayTolerance ) ;
148
+ AssertEx . EqualTolerance ( TonnesPerHourInOneGramPerSecond , grampersecond . As ( MassFlowUnit . TonnePerHour ) , TonnesPerHourTolerance ) ;
144
149
}
145
150
146
151
[ Fact ]
@@ -161,6 +166,7 @@ public void ConversionRoundTrip()
161
166
AssertEx . EqualTolerance ( 1 , MassFlow . FromPoundsPerHour ( grampersecond . PoundsPerHour ) . GramsPerSecond , PoundsPerHourTolerance ) ;
162
167
AssertEx . EqualTolerance ( 1 , MassFlow . FromShortTonsPerHour ( grampersecond . ShortTonsPerHour ) . GramsPerSecond , ShortTonsPerHourTolerance ) ;
163
168
AssertEx . EqualTolerance ( 1 , MassFlow . FromTonnesPerDay ( grampersecond . TonnesPerDay ) . GramsPerSecond , TonnesPerDayTolerance ) ;
169
+ AssertEx . EqualTolerance ( 1 , MassFlow . FromTonnesPerHour ( grampersecond . TonnesPerHour ) . GramsPerSecond , TonnesPerHourTolerance ) ;
164
170
}
165
171
166
172
[ Fact ]
0 commit comments