Skip to content

Commit 171054b

Browse files
committed
Edited from TonPerHour to TonnePerHour
1 parent 9679831 commit 171054b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

UnitsNet.Tests/GeneratedCode/MassFlowTestsBase.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void FromValueAndUnit()
124124
AssertEx.EqualTolerance(1, MassFlow.From(1, MassFlowUnit.PoundPerHour).PoundsPerHour, PoundsPerHourTolerance);
125125
AssertEx.EqualTolerance(1, MassFlow.From(1, MassFlowUnit.ShortTonPerHour).ShortTonsPerHour, ShortTonsPerHourTolerance);
126126
AssertEx.EqualTolerance(1, MassFlow.From(1, MassFlowUnit.TonnePerDay).TonnesPerDay, TonnesPerDayTolerance);
127-
AssertEx.EqualTolerance(1, MassFlow.From(1, MassFlowUnit.TonPerHour).TonnesPerHour, TonnesPerHourTolerance);
127+
AssertEx.EqualTolerance(1, MassFlow.From(1, MassFlowUnit.TonnePerHour).TonnesPerHour, TonnesPerHourTolerance);
128128
}
129129

130130
[Fact]
@@ -145,7 +145,7 @@ public void As()
145145
AssertEx.EqualTolerance(PoundsPerHourInOneGramPerSecond, grampersecond.As(MassFlowUnit.PoundPerHour), PoundsPerHourTolerance);
146146
AssertEx.EqualTolerance(ShortTonsPerHourInOneGramPerSecond, grampersecond.As(MassFlowUnit.ShortTonPerHour), ShortTonsPerHourTolerance);
147147
AssertEx.EqualTolerance(TonnesPerDayInOneGramPerSecond, grampersecond.As(MassFlowUnit.TonnePerDay), TonnesPerDayTolerance);
148-
AssertEx.EqualTolerance(TonnesPerHourInOneGramPerSecond, grampersecond.As(MassFlowUnit.TonPerHour), TonnesPerHourTolerance);
148+
AssertEx.EqualTolerance(TonnesPerHourInOneGramPerSecond, grampersecond.As(MassFlowUnit.TonnePerHour), TonnesPerHourTolerance);
149149
}
150150

151151
[Fact]

UnitsNet/GeneratedCode/Extensions/Number/NumberToMassFlowExtensions.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public static class NumberToMassFlowExtensions
520520

521521
#endregion
522522

523-
#region TonPerHour
523+
#region TonnePerHour
524524

525525
/// <inheritdoc cref="MassFlow.FromTonnesPerHour(double)"/>
526526
public static MassFlow TonnesPerHour(this int value) => MassFlow.FromTonnesPerHour(value);

UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ public static MassFlow From(QuantityValue value, MassFlowUnit fromUnit)
801801
return FromShortTonsPerHour(value);
802802
case MassFlowUnit.TonnePerDay:
803803
return FromTonnesPerDay(value);
804-
case MassFlowUnit.TonPerHour:
804+
case MassFlowUnit.TonnePerHour:
805805
return FromTonnesPerHour(value);
806806

807807
default:
@@ -853,7 +853,7 @@ public static MassFlow From(QuantityValue value, MassFlowUnit fromUnit)
853853
return FromShortTonsPerHour(value.Value);
854854
case MassFlowUnit.TonnePerDay:
855855
return FromTonnesPerDay(value.Value);
856-
case MassFlowUnit.TonPerHour:
856+
case MassFlowUnit.TonnePerHour:
857857
return FromTonnesPerHour(value.Value);
858858

859859
default:
@@ -1056,7 +1056,7 @@ public double As(MassFlowUnit unit)
10561056
return ShortTonsPerHour;
10571057
case MassFlowUnit.TonnePerDay:
10581058
return TonnesPerDay;
1059-
case MassFlowUnit.TonPerHour:
1059+
case MassFlowUnit.TonnePerHour:
10601060
return TonnesPerHour;
10611061

10621062
default:

UnitsNet/GeneratedCode/UnitSystem.Default.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2338,7 +2338,7 @@ private static readonly ReadOnlyCollection<UnitLocalization> DefaultLocalization
23382338
{
23392339
new AbbreviationsForCulture("en-US", "t/d"),
23402340
}),
2341-
new CulturesForEnumValue((int) MassFlowUnit.TonPerHour,
2341+
new CulturesForEnumValue((int) MassFlowUnit.TonnePerHour,
23422342
new[]
23432343
{
23442344
new AbbreviationsForCulture("en-US", "t/h"),

UnitsNet/GeneratedCode/Units/MassFlowUnit.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ public enum MassFlowUnit
5656
PoundPerHour,
5757
ShortTonPerHour,
5858
TonnePerDay,
59-
TonPerHour,
59+
TonnePerHour,
6060
}
6161
}

UnitsNet/UnitDefinitions/MassFlow.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
]
3434
},
3535
{
36-
"SingularName": "TonPerHour",
36+
"SingularName": "TonnePerHour",
3737
"PluralName": "TonnesPerHour",
3838
"FromUnitToBaseFunc": "1000*x/3.6",
3939
"FromBaseToUnitFunc": "x*3.6/1000",

0 commit comments

Comments
 (0)