Skip to content

Commit 46a21e5

Browse files
committed
Regenerate code
1 parent 646b1ad commit 46a21e5

16 files changed

+2385
-150
lines changed

UnitsNet.Tests/GeneratedCode/DensityTestsBase.g.cs

Lines changed: 92 additions & 38 deletions
Large diffs are not rendered by default.

UnitsNet.Tests/GeneratedCode/ForceTestsBase.g.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public abstract partial class ForceTestsBase
4242
protected abstract double KiloPondsInOneNewton { get; }
4343
protected abstract double NewtonsInOneNewton { get; }
4444
protected abstract double PoundalsInOneNewton { get; }
45-
protected abstract double PoundForcesInOneNewton { get; }
45+
protected abstract double PoundsForceInOneNewton { get; }
46+
protected abstract double TonnesForceInOneNewton { get; }
4647

4748
// ReSharper disable VirtualMemberNeverOverriden.Global
4849
protected virtual double DyneTolerance { get { return 1e-5; } }
@@ -51,7 +52,8 @@ public abstract partial class ForceTestsBase
5152
protected virtual double KiloPondsTolerance { get { return 1e-5; } }
5253
protected virtual double NewtonsTolerance { get { return 1e-5; } }
5354
protected virtual double PoundalsTolerance { get { return 1e-5; } }
54-
protected virtual double PoundForcesTolerance { get { return 1e-5; } }
55+
protected virtual double PoundsForceTolerance { get { return 1e-5; } }
56+
protected virtual double TonnesForceTolerance { get { return 1e-5; } }
5557
// ReSharper restore VirtualMemberNeverOverriden.Global
5658

5759
[Test]
@@ -64,7 +66,8 @@ public void NewtonToForceUnits()
6466
Assert.AreEqual(KiloPondsInOneNewton, newton.KiloPonds, KiloPondsTolerance);
6567
Assert.AreEqual(NewtonsInOneNewton, newton.Newtons, NewtonsTolerance);
6668
Assert.AreEqual(PoundalsInOneNewton, newton.Poundals, PoundalsTolerance);
67-
Assert.AreEqual(PoundForcesInOneNewton, newton.PoundForces, PoundForcesTolerance);
69+
Assert.AreEqual(PoundsForceInOneNewton, newton.PoundsForce, PoundsForceTolerance);
70+
Assert.AreEqual(TonnesForceInOneNewton, newton.TonnesForce, TonnesForceTolerance);
6871
}
6972

7073
[Test]
@@ -76,7 +79,8 @@ public void FromValueAndUnit()
7679
Assert.AreEqual(1, Force.From(1, ForceUnit.KiloPond).KiloPonds, KiloPondsTolerance);
7780
Assert.AreEqual(1, Force.From(1, ForceUnit.Newton).Newtons, NewtonsTolerance);
7881
Assert.AreEqual(1, Force.From(1, ForceUnit.Poundal).Poundals, PoundalsTolerance);
79-
Assert.AreEqual(1, Force.From(1, ForceUnit.PoundForce).PoundForces, PoundForcesTolerance);
82+
Assert.AreEqual(1, Force.From(1, ForceUnit.PoundForce).PoundsForce, PoundsForceTolerance);
83+
Assert.AreEqual(1, Force.From(1, ForceUnit.TonneForce).TonnesForce, TonnesForceTolerance);
8084
}
8185

8286
[Test]
@@ -89,7 +93,8 @@ public void As()
8993
Assert.AreEqual(KiloPondsInOneNewton, newton.As(ForceUnit.KiloPond), KiloPondsTolerance);
9094
Assert.AreEqual(NewtonsInOneNewton, newton.As(ForceUnit.Newton), NewtonsTolerance);
9195
Assert.AreEqual(PoundalsInOneNewton, newton.As(ForceUnit.Poundal), PoundalsTolerance);
92-
Assert.AreEqual(PoundForcesInOneNewton, newton.As(ForceUnit.PoundForce), PoundForcesTolerance);
96+
Assert.AreEqual(PoundsForceInOneNewton, newton.As(ForceUnit.PoundForce), PoundsForceTolerance);
97+
Assert.AreEqual(TonnesForceInOneNewton, newton.As(ForceUnit.TonneForce), TonnesForceTolerance);
9398
}
9499

95100
[Test]
@@ -102,7 +107,8 @@ public void ConversionRoundTrip()
102107
Assert.AreEqual(1, Force.FromKiloPonds(newton.KiloPonds).Newtons, KiloPondsTolerance);
103108
Assert.AreEqual(1, Force.FromNewtons(newton.Newtons).Newtons, NewtonsTolerance);
104109
Assert.AreEqual(1, Force.FromPoundals(newton.Poundals).Newtons, PoundalsTolerance);
105-
Assert.AreEqual(1, Force.FromPoundForces(newton.PoundForces).Newtons, PoundForcesTolerance);
110+
Assert.AreEqual(1, Force.FromPoundsForce(newton.PoundsForce).Newtons, PoundsForceTolerance);
111+
Assert.AreEqual(1, Force.FromTonnesForce(newton.TonnesForce).Newtons, TonnesForceTolerance);
106112
}
107113

108114
[Test]

UnitsNet.Tests/GeneratedCode/PressureTestsBase.g.cs

Lines changed: 72 additions & 0 deletions
Large diffs are not rendered by default.

UnitsNet.Tests/GeneratedCode/SpecificWeightTestsBase.g.cs

Lines changed: 257 additions & 0 deletions
Large diffs are not rendered by default.

UnitsNet.Tests/GeneratedCode/TorqueTestsBase.g.cs

Lines changed: 129 additions & 39 deletions
Large diffs are not rendered by default.

UnitsNet/GeneratedCode/Enums/DensityUnit.g.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ namespace UnitsNet.Units
2525
public enum DensityUnit
2626
{
2727
Undefined = 0,
28+
KilogramPerCubicCentimeter,
2829
KilogramPerCubicMeter,
30+
KilogramPerCubicMillimeter,
31+
KilopoundPerCubicFoot,
32+
KilopoundPerCubicInch,
33+
PoundPerCubicFoot,
34+
PoundPerCubicInch,
35+
TonnePerCubicCentimeter,
36+
TonnePerCubicMeter,
37+
TonnePerCubicMillimeter,
2938
}
3039
}

UnitsNet/GeneratedCode/Enums/ForceUnit.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ public enum ForceUnit
3232
Newton,
3333
Poundal,
3434
PoundForce,
35+
TonneForce,
3536
}
3637
}

UnitsNet/GeneratedCode/Enums/PressureUnit.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,26 @@ public enum PressureUnit
2828
Atmosphere,
2929
Bar,
3030
KilogramForcePerSquareCentimeter,
31+
KilogramForcePerSquareMeter,
32+
KilogramForcePerSquareMillimeter,
33+
KilonewtonPerSquareCentimeter,
34+
KilonewtonPerSquareMeter,
35+
KilonewtonPerSquareMillimeter,
3136
Kilopascal,
37+
KilopoundForcePerSquareFoot,
38+
KilopoundForcePerSquareInch,
3239
Megapascal,
3340
NewtonPerSquareCentimeter,
3441
NewtonPerSquareMeter,
3542
NewtonPerSquareMillimeter,
3643
Pascal,
44+
PoundForcePerSquareFoot,
45+
PoundForcePerSquareInch,
3746
Psi,
3847
TechnicalAtmosphere,
48+
TonneForcePerSquareCentimeter,
49+
TonneForcePerSquareMeter,
50+
TonneForcePerSquareMillimeter,
3951
Torr,
4052
}
4153
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright © 2007 by Initial Force AS. All rights reserved.
2+
// https://github.com/InitialForce/UnitsNet
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
5+
// of this software and associated documentation files (the "Software"), to deal
6+
// in the Software without restriction, including without limitation the rights
7+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
// copies of the Software, and to permit persons to whom the Software is
9+
// furnished to do so, subject to the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included in
12+
// all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
// THE SOFTWARE.
21+
22+
// ReSharper disable once CheckNamespace
23+
namespace UnitsNet.Units
24+
{
25+
public enum SpecificWeightUnit
26+
{
27+
Undefined = 0,
28+
KilogramForcePerCubicCentimeter,
29+
KilogramForcePerCubicMeter,
30+
KilogramForcePerCubicMillimeter,
31+
KilonewtonPerCubicCentimeter,
32+
KilonewtonPerCubicMeter,
33+
KilonewtonPerCubicMillimeter,
34+
KilopoundForcePerCubicFoot,
35+
KilopoundForcePerCubicInch,
36+
NewtonPerCubicCentimeter,
37+
NewtonPerCubicMeter,
38+
NewtonPerCubicMillimeter,
39+
PoundForcePerCubicFoot,
40+
PoundForcePerCubicInch,
41+
TonneForcePerCubicCentimeter,
42+
TonneForcePerCubicMeter,
43+
TonneForcePerCubicMillimeter,
44+
}
45+
}

UnitsNet/GeneratedCode/Enums/TorqueUnit.g.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ namespace UnitsNet.Units
2525
public enum TorqueUnit
2626
{
2727
Undefined = 0,
28-
Newtonmeter,
28+
KilogramForceCentimeter,
29+
KilogramForceMeter,
30+
KilogramForceMillimeter,
31+
KilonewtonCentimeter,
32+
KilonewtonMeter,
33+
KilonewtonMillimeter,
34+
KilopoundForceFoot,
35+
KilopoundForceInch,
36+
NewtonCentimeter,
37+
NewtonMeter,
38+
NewtonMillimeter,
39+
PoundForceFoot,
40+
PoundForceInch,
41+
TonneForceCentimeter,
42+
TonneForceMeter,
43+
TonneForceMillimeter,
2944
}
3045
}

0 commit comments

Comments
 (0)