From ddf61348fd3c237fda4aa8aacc90d4560f9f3f2d Mon Sep 17 00:00:00 2001 From: lipchev Date: Sat, 4 Jan 2025 22:51:37 +0200 Subject: [PATCH] Fix typo in MassMomentOfInertia.TonneSquareMilimeter (#1490) Renaming `MassMomentOfInertia.TonneSquareMilimeter` to `MassMomentOfInertia.TonneSquareMillimeter` (as part of #1200 ) --- .../UnitDefinitions/MassMomentOfInertia.json | 4 +- Common/UnitEnumValues.g.json | 6 +- .../Quantities/MassMomentOfInertia.g.cs | 36 ++--- .../Units/MassMomentOfInertiaUnit.g.cs | 6 +- ...erToMassMomentOfInertiaExtensionsTest.g.cs | 12 +- ...NumberToMassMomentOfInertiaExtensions.g.cs | 18 +-- .../CustomCode/MassMomentOfInertiaTests.cs | 6 +- .../GeneratedCode/IQuantityTests.g.cs | 2 +- .../MassMomentOfInertiaTestsBase.g.cs | 144 +++++++++--------- .../Quantities/MassMomentOfInertia.g.cs | 60 ++++---- .../Resources/MassMomentOfInertia.restext | 6 +- .../Units/MassMomentOfInertiaUnit.g.cs | 6 +- 12 files changed, 153 insertions(+), 153 deletions(-) diff --git a/Common/UnitDefinitions/MassMomentOfInertia.json b/Common/UnitDefinitions/MassMomentOfInertia.json index cfc7d2d2f8..a6124204a6 100644 --- a/Common/UnitDefinitions/MassMomentOfInertia.json +++ b/Common/UnitDefinitions/MassMomentOfInertia.json @@ -127,8 +127,8 @@ ] }, { - "SingularName": "TonneSquareMilimeter", - "PluralName": "TonneSquareMilimeters", + "SingularName": "TonneSquareMillimeter", + "PluralName": "TonneSquareMillimeters", "BaseUnits": { "L": "Millimeter", "M": "Tonne" diff --git a/Common/UnitEnumValues.g.json b/Common/UnitEnumValues.g.json index aa5b0b6558..cca9bcda85 100644 --- a/Common/UnitEnumValues.g.json +++ b/Common/UnitEnumValues.g.json @@ -949,11 +949,11 @@ "KilotonneSquareCentimeter": 9, "KilotonneSquareDecimeter": 10, "KilotonneSquareMeter": 11, - "KilotonneSquareMilimeter": 12, + "KilotonneSquareMillimeter": 12, "MegatonneSquareCentimeter": 13, "MegatonneSquareDecimeter": 14, "MegatonneSquareMeter": 15, - "MegatonneSquareMilimeter": 16, + "MegatonneSquareMillimeter": 16, "MilligramSquareCentimeter": 17, "MilligramSquareDecimeter": 18, "MilligramSquareMeter": 19, @@ -965,7 +965,7 @@ "TonneSquareCentimeter": 25, "TonneSquareDecimeter": 26, "TonneSquareMeter": 27, - "TonneSquareMilimeter": 28 + "TonneSquareMillimeter": 28 }, "MolarEnergy": { "JoulePerMole": 1, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index 91ce9ec4e6..bebc033d89 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -134,9 +134,9 @@ public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) public double KilotonneSquareMeters => As(MassMomentOfInertiaUnit.KilotonneSquareMeter); /// - /// Gets a value of this quantity converted into + /// Gets a value of this quantity converted into /// - public double KilotonneSquareMilimeters => As(MassMomentOfInertiaUnit.KilotonneSquareMilimeter); + public double KilotonneSquareMillimeters => As(MassMomentOfInertiaUnit.KilotonneSquareMillimeter); /// /// Gets a value of this quantity converted into @@ -154,9 +154,9 @@ public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) public double MegatonneSquareMeters => As(MassMomentOfInertiaUnit.MegatonneSquareMeter); /// - /// Gets a value of this quantity converted into + /// Gets a value of this quantity converted into /// - public double MegatonneSquareMilimeters => As(MassMomentOfInertiaUnit.MegatonneSquareMilimeter); + public double MegatonneSquareMillimeters => As(MassMomentOfInertiaUnit.MegatonneSquareMillimeter); /// /// Gets a value of this quantity converted into @@ -214,9 +214,9 @@ public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) public double TonneSquareMeters => As(MassMomentOfInertiaUnit.TonneSquareMeter); /// - /// Gets a value of this quantity converted into + /// Gets a value of this quantity converted into /// - public double TonneSquareMilimeters => As(MassMomentOfInertiaUnit.TonneSquareMilimeter); + public double TonneSquareMillimeters => As(MassMomentOfInertiaUnit.TonneSquareMillimeter); #endregion @@ -278,9 +278,9 @@ public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) public static MassMomentOfInertia FromKilotonneSquareMeters(double kilotonnesquaremeters) => new MassMomentOfInertia(kilotonnesquaremeters, MassMomentOfInertiaUnit.KilotonneSquareMeter); /// - /// Creates a from . + /// Creates a from . /// - public static MassMomentOfInertia FromKilotonneSquareMilimeters(double kilotonnesquaremilimeters) => new MassMomentOfInertia(kilotonnesquaremilimeters, MassMomentOfInertiaUnit.KilotonneSquareMilimeter); + public static MassMomentOfInertia FromKilotonneSquareMillimeters(double kilotonnesquaremillimeters) => new MassMomentOfInertia(kilotonnesquaremillimeters, MassMomentOfInertiaUnit.KilotonneSquareMillimeter); /// /// Creates a from . @@ -298,9 +298,9 @@ public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) public static MassMomentOfInertia FromMegatonneSquareMeters(double megatonnesquaremeters) => new MassMomentOfInertia(megatonnesquaremeters, MassMomentOfInertiaUnit.MegatonneSquareMeter); /// - /// Creates a from . + /// Creates a from . /// - public static MassMomentOfInertia FromMegatonneSquareMilimeters(double megatonnesquaremilimeters) => new MassMomentOfInertia(megatonnesquaremilimeters, MassMomentOfInertiaUnit.MegatonneSquareMilimeter); + public static MassMomentOfInertia FromMegatonneSquareMillimeters(double megatonnesquaremillimeters) => new MassMomentOfInertia(megatonnesquaremillimeters, MassMomentOfInertiaUnit.MegatonneSquareMillimeter); /// /// Creates a from . @@ -358,9 +358,9 @@ public MassMomentOfInertia(double value, MassMomentOfInertiaUnit unit) public static MassMomentOfInertia FromTonneSquareMeters(double tonnesquaremeters) => new MassMomentOfInertia(tonnesquaremeters, MassMomentOfInertiaUnit.TonneSquareMeter); /// - /// Creates a from . + /// Creates a from . /// - public static MassMomentOfInertia FromTonneSquareMilimeters(double tonnesquaremilimeters) => new MassMomentOfInertia(tonnesquaremilimeters, MassMomentOfInertiaUnit.TonneSquareMilimeter); + public static MassMomentOfInertia FromTonneSquareMillimeters(double tonnesquaremillimeters) => new MassMomentOfInertia(tonnesquaremillimeters, MassMomentOfInertiaUnit.TonneSquareMillimeter); /// /// Dynamically convert from value and unit enum to . @@ -413,11 +413,11 @@ private double GetValueInBaseUnit() MassMomentOfInertiaUnit.KilotonneSquareCentimeter => (_value / 1e1) * 1e3d, MassMomentOfInertiaUnit.KilotonneSquareDecimeter => (_value / 1e-1) * 1e3d, MassMomentOfInertiaUnit.KilotonneSquareMeter => (_value / 1e-3) * 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareMilimeter => (_value / 1e3) * 1e3d, + MassMomentOfInertiaUnit.KilotonneSquareMillimeter => (_value / 1e3) * 1e3d, MassMomentOfInertiaUnit.MegatonneSquareCentimeter => (_value / 1e1) * 1e6d, MassMomentOfInertiaUnit.MegatonneSquareDecimeter => (_value / 1e-1) * 1e6d, MassMomentOfInertiaUnit.MegatonneSquareMeter => (_value / 1e-3) * 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareMilimeter => (_value / 1e3) * 1e6d, + MassMomentOfInertiaUnit.MegatonneSquareMillimeter => (_value / 1e3) * 1e6d, MassMomentOfInertiaUnit.MilligramSquareCentimeter => (_value / 1e7) * 1e-3d, MassMomentOfInertiaUnit.MilligramSquareDecimeter => (_value / 1e5) * 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMeter => (_value / 1e3) * 1e-3d, @@ -429,7 +429,7 @@ private double GetValueInBaseUnit() MassMomentOfInertiaUnit.TonneSquareCentimeter => _value / 1e1, MassMomentOfInertiaUnit.TonneSquareDecimeter => _value / 1e-1, MassMomentOfInertiaUnit.TonneSquareMeter => _value / 1e-3, - MassMomentOfInertiaUnit.TonneSquareMilimeter => _value / 1e3, + MassMomentOfInertiaUnit.TonneSquareMillimeter => _value / 1e3, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -454,11 +454,11 @@ private double GetValueAs(MassMomentOfInertiaUnit unit) MassMomentOfInertiaUnit.KilotonneSquareCentimeter => (baseUnitValue * 1e1) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareDecimeter => (baseUnitValue * 1e-1) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareMeter => (baseUnitValue * 1e-3) / 1e3d, - MassMomentOfInertiaUnit.KilotonneSquareMilimeter => (baseUnitValue * 1e3) / 1e3d, + MassMomentOfInertiaUnit.KilotonneSquareMillimeter => (baseUnitValue * 1e3) / 1e3d, MassMomentOfInertiaUnit.MegatonneSquareCentimeter => (baseUnitValue * 1e1) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareDecimeter => (baseUnitValue * 1e-1) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareMeter => (baseUnitValue * 1e-3) / 1e6d, - MassMomentOfInertiaUnit.MegatonneSquareMilimeter => (baseUnitValue * 1e3) / 1e6d, + MassMomentOfInertiaUnit.MegatonneSquareMillimeter => (baseUnitValue * 1e3) / 1e6d, MassMomentOfInertiaUnit.MilligramSquareCentimeter => (baseUnitValue * 1e7) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareDecimeter => (baseUnitValue * 1e5) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMeter => (baseUnitValue * 1e3) / 1e-3d, @@ -470,7 +470,7 @@ private double GetValueAs(MassMomentOfInertiaUnit unit) MassMomentOfInertiaUnit.TonneSquareCentimeter => baseUnitValue * 1e1, MassMomentOfInertiaUnit.TonneSquareDecimeter => baseUnitValue * 1e-1, MassMomentOfInertiaUnit.TonneSquareMeter => baseUnitValue * 1e-3, - MassMomentOfInertiaUnit.TonneSquareMilimeter => baseUnitValue * 1e3, + MassMomentOfInertiaUnit.TonneSquareMillimeter => baseUnitValue * 1e3, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs index 33c92670cb..05827647fd 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs @@ -36,11 +36,11 @@ public enum MassMomentOfInertiaUnit KilotonneSquareCentimeter = 9, KilotonneSquareDecimeter = 10, KilotonneSquareMeter = 11, - KilotonneSquareMilimeter = 12, + KilotonneSquareMillimeter = 12, MegatonneSquareCentimeter = 13, MegatonneSquareDecimeter = 14, MegatonneSquareMeter = 15, - MegatonneSquareMilimeter = 16, + MegatonneSquareMillimeter = 16, MilligramSquareCentimeter = 17, MilligramSquareDecimeter = 18, MilligramSquareMeter = 19, @@ -52,7 +52,7 @@ public enum MassMomentOfInertiaUnit TonneSquareCentimeter = 25, TonneSquareDecimeter = 26, TonneSquareMeter = 27, - TonneSquareMilimeter = 28, + TonneSquareMillimeter = 28, } #pragma warning restore 1591 diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToMassMomentOfInertiaExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToMassMomentOfInertiaExtensionsTest.g.cs index 6f4a73a26e..c279f3e3c4 100644 --- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToMassMomentOfInertiaExtensionsTest.g.cs +++ b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToMassMomentOfInertiaExtensionsTest.g.cs @@ -69,8 +69,8 @@ public void NumberToKilotonneSquareMetersTest() => Assert.Equal(MassMomentOfInertia.FromKilotonneSquareMeters(2), 2.KilotonneSquareMeters()); [Fact] - public void NumberToKilotonneSquareMilimetersTest() => - Assert.Equal(MassMomentOfInertia.FromKilotonneSquareMilimeters(2), 2.KilotonneSquareMilimeters()); + public void NumberToKilotonneSquareMillimetersTest() => + Assert.Equal(MassMomentOfInertia.FromKilotonneSquareMillimeters(2), 2.KilotonneSquareMillimeters()); [Fact] public void NumberToMegatonneSquareCentimetersTest() => @@ -85,8 +85,8 @@ public void NumberToMegatonneSquareMetersTest() => Assert.Equal(MassMomentOfInertia.FromMegatonneSquareMeters(2), 2.MegatonneSquareMeters()); [Fact] - public void NumberToMegatonneSquareMilimetersTest() => - Assert.Equal(MassMomentOfInertia.FromMegatonneSquareMilimeters(2), 2.MegatonneSquareMilimeters()); + public void NumberToMegatonneSquareMillimetersTest() => + Assert.Equal(MassMomentOfInertia.FromMegatonneSquareMillimeters(2), 2.MegatonneSquareMillimeters()); [Fact] public void NumberToMilligramSquareCentimetersTest() => @@ -133,8 +133,8 @@ public void NumberToTonneSquareMetersTest() => Assert.Equal(MassMomentOfInertia.FromTonneSquareMeters(2), 2.TonneSquareMeters()); [Fact] - public void NumberToTonneSquareMilimetersTest() => - Assert.Equal(MassMomentOfInertia.FromTonneSquareMilimeters(2), 2.TonneSquareMilimeters()); + public void NumberToTonneSquareMillimetersTest() => + Assert.Equal(MassMomentOfInertia.FromTonneSquareMillimeters(2), 2.TonneSquareMillimeters()); } } diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToMassMomentOfInertiaExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToMassMomentOfInertiaExtensions.g.cs index 1aae922769..4e2e324403 100644 --- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToMassMomentOfInertiaExtensions.g.cs +++ b/UnitsNet.NumberExtensions/GeneratedCode/NumberToMassMomentOfInertiaExtensions.g.cs @@ -120,13 +120,13 @@ public static MassMomentOfInertia KilotonneSquareMeters(this T value) #endif => MassMomentOfInertia.FromKilotonneSquareMeters(Convert.ToDouble(value)); - /// - public static MassMomentOfInertia KilotonneSquareMilimeters(this T value) + /// + public static MassMomentOfInertia KilotonneSquareMillimeters(this T value) where T : notnull #if NET7_0_OR_GREATER , INumber #endif - => MassMomentOfInertia.FromKilotonneSquareMilimeters(Convert.ToDouble(value)); + => MassMomentOfInertia.FromKilotonneSquareMillimeters(Convert.ToDouble(value)); /// public static MassMomentOfInertia MegatonneSquareCentimeters(this T value) @@ -152,13 +152,13 @@ public static MassMomentOfInertia MegatonneSquareMeters(this T value) #endif => MassMomentOfInertia.FromMegatonneSquareMeters(Convert.ToDouble(value)); - /// - public static MassMomentOfInertia MegatonneSquareMilimeters(this T value) + /// + public static MassMomentOfInertia MegatonneSquareMillimeters(this T value) where T : notnull #if NET7_0_OR_GREATER , INumber #endif - => MassMomentOfInertia.FromMegatonneSquareMilimeters(Convert.ToDouble(value)); + => MassMomentOfInertia.FromMegatonneSquareMillimeters(Convert.ToDouble(value)); /// public static MassMomentOfInertia MilligramSquareCentimeters(this T value) @@ -248,13 +248,13 @@ public static MassMomentOfInertia TonneSquareMeters(this T value) #endif => MassMomentOfInertia.FromTonneSquareMeters(Convert.ToDouble(value)); - /// - public static MassMomentOfInertia TonneSquareMilimeters(this T value) + /// + public static MassMomentOfInertia TonneSquareMillimeters(this T value) where T : notnull #if NET7_0_OR_GREATER , INumber #endif - => MassMomentOfInertia.FromTonneSquareMilimeters(Convert.ToDouble(value)); + => MassMomentOfInertia.FromTonneSquareMillimeters(Convert.ToDouble(value)); } } diff --git a/UnitsNet.Tests/CustomCode/MassMomentOfInertiaTests.cs b/UnitsNet.Tests/CustomCode/MassMomentOfInertiaTests.cs index f1004c110e..2a86cd0937 100644 --- a/UnitsNet.Tests/CustomCode/MassMomentOfInertiaTests.cs +++ b/UnitsNet.Tests/CustomCode/MassMomentOfInertiaTests.cs @@ -68,7 +68,7 @@ public class MassMomentOfInertiaTests : MassMomentOfInertiaTestsBase protected override double KilotonneSquareMetersInOneKilogramSquareMeter => 1e-6; - protected override double KilotonneSquareMilimetersInOneKilogramSquareMeter => 1e0; + protected override double KilotonneSquareMillimetersInOneKilogramSquareMeter => 1e0; protected override double MegatonneSquareCentimetersInOneKilogramSquareMeter => 1e-5; @@ -76,7 +76,7 @@ public class MassMomentOfInertiaTests : MassMomentOfInertiaTestsBase protected override double MegatonneSquareMetersInOneKilogramSquareMeter => 1e-9; - protected override double MegatonneSquareMilimetersInOneKilogramSquareMeter => 1e-3; + protected override double MegatonneSquareMillimetersInOneKilogramSquareMeter => 1e-3; protected override double TonneSquareCentimetersInOneKilogramSquareMeter => 1e1; @@ -84,6 +84,6 @@ public class MassMomentOfInertiaTests : MassMomentOfInertiaTestsBase protected override double TonneSquareMetersInOneKilogramSquareMeter => 1e-3; - protected override double TonneSquareMilimetersInOneKilogramSquareMeter => 1e3; + protected override double TonneSquareMillimetersInOneKilogramSquareMeter => 1e3; } } diff --git a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs index afb8d58278..ae41b54f20 100644 --- a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs +++ b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs @@ -107,7 +107,7 @@ void Assertion(int expectedValue, Enum expectedUnit, IQuantity quantity) Assertion(3, MassFlowUnit.TonnePerHour, Quantity.From(3, MassFlowUnit.TonnePerHour)); Assertion(3, MassFluxUnit.KilogramPerSecondPerSquareMillimeter, Quantity.From(3, MassFluxUnit.KilogramPerSecondPerSquareMillimeter)); Assertion(3, MassFractionUnit.Percent, Quantity.From(3, MassFractionUnit.Percent)); - Assertion(3, MassMomentOfInertiaUnit.TonneSquareMilimeter, Quantity.From(3, MassMomentOfInertiaUnit.TonneSquareMilimeter)); + Assertion(3, MassMomentOfInertiaUnit.TonneSquareMillimeter, Quantity.From(3, MassMomentOfInertiaUnit.TonneSquareMillimeter)); Assertion(3, MolalityUnit.MolePerKilogram, Quantity.From(3, MolalityUnit.MolePerKilogram)); Assertion(3, MolarEnergyUnit.MegajoulePerMole, Quantity.From(3, MolarEnergyUnit.MegajoulePerMole)); Assertion(3, MolarEntropyUnit.MegajoulePerMoleKelvin, Quantity.From(3, MolarEntropyUnit.MegajoulePerMoleKelvin)); diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs index 79bd5ec378..701b0e2062 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs @@ -50,11 +50,11 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase protected abstract double KilotonneSquareCentimetersInOneKilogramSquareMeter { get; } protected abstract double KilotonneSquareDecimetersInOneKilogramSquareMeter { get; } protected abstract double KilotonneSquareMetersInOneKilogramSquareMeter { get; } - protected abstract double KilotonneSquareMilimetersInOneKilogramSquareMeter { get; } + protected abstract double KilotonneSquareMillimetersInOneKilogramSquareMeter { get; } protected abstract double MegatonneSquareCentimetersInOneKilogramSquareMeter { get; } protected abstract double MegatonneSquareDecimetersInOneKilogramSquareMeter { get; } protected abstract double MegatonneSquareMetersInOneKilogramSquareMeter { get; } - protected abstract double MegatonneSquareMilimetersInOneKilogramSquareMeter { get; } + protected abstract double MegatonneSquareMillimetersInOneKilogramSquareMeter { get; } protected abstract double MilligramSquareCentimetersInOneKilogramSquareMeter { get; } protected abstract double MilligramSquareDecimetersInOneKilogramSquareMeter { get; } protected abstract double MilligramSquareMetersInOneKilogramSquareMeter { get; } @@ -66,7 +66,7 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase protected abstract double TonneSquareCentimetersInOneKilogramSquareMeter { get; } protected abstract double TonneSquareDecimetersInOneKilogramSquareMeter { get; } protected abstract double TonneSquareMetersInOneKilogramSquareMeter { get; } - protected abstract double TonneSquareMilimetersInOneKilogramSquareMeter { get; } + protected abstract double TonneSquareMillimetersInOneKilogramSquareMeter { get; } // ReSharper disable VirtualMemberNeverOverriden.Global protected virtual double GramSquareCentimetersTolerance { get { return 1e-5; } } @@ -80,11 +80,11 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase protected virtual double KilotonneSquareCentimetersTolerance { get { return 1e-5; } } protected virtual double KilotonneSquareDecimetersTolerance { get { return 1e-5; } } protected virtual double KilotonneSquareMetersTolerance { get { return 1e-5; } } - protected virtual double KilotonneSquareMilimetersTolerance { get { return 1e-5; } } + protected virtual double KilotonneSquareMillimetersTolerance { get { return 1e-5; } } protected virtual double MegatonneSquareCentimetersTolerance { get { return 1e-5; } } protected virtual double MegatonneSquareDecimetersTolerance { get { return 1e-5; } } protected virtual double MegatonneSquareMetersTolerance { get { return 1e-5; } } - protected virtual double MegatonneSquareMilimetersTolerance { get { return 1e-5; } } + protected virtual double MegatonneSquareMillimetersTolerance { get { return 1e-5; } } protected virtual double MilligramSquareCentimetersTolerance { get { return 1e-5; } } protected virtual double MilligramSquareDecimetersTolerance { get { return 1e-5; } } protected virtual double MilligramSquareMetersTolerance { get { return 1e-5; } } @@ -96,7 +96,7 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase protected virtual double TonneSquareCentimetersTolerance { get { return 1e-5; } } protected virtual double TonneSquareDecimetersTolerance { get { return 1e-5; } } protected virtual double TonneSquareMetersTolerance { get { return 1e-5; } } - protected virtual double TonneSquareMilimetersTolerance { get { return 1e-5; } } + protected virtual double TonneSquareMillimetersTolerance { get { return 1e-5; } } // ReSharper restore VirtualMemberNeverOverriden.Global protected (double UnitsInBaseUnit, double Tolerence) GetConversionFactor(MassMomentOfInertiaUnit unit) @@ -114,11 +114,11 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase MassMomentOfInertiaUnit.KilotonneSquareCentimeter => (KilotonneSquareCentimetersInOneKilogramSquareMeter, KilotonneSquareCentimetersTolerance), MassMomentOfInertiaUnit.KilotonneSquareDecimeter => (KilotonneSquareDecimetersInOneKilogramSquareMeter, KilotonneSquareDecimetersTolerance), MassMomentOfInertiaUnit.KilotonneSquareMeter => (KilotonneSquareMetersInOneKilogramSquareMeter, KilotonneSquareMetersTolerance), - MassMomentOfInertiaUnit.KilotonneSquareMilimeter => (KilotonneSquareMilimetersInOneKilogramSquareMeter, KilotonneSquareMilimetersTolerance), + MassMomentOfInertiaUnit.KilotonneSquareMillimeter => (KilotonneSquareMillimetersInOneKilogramSquareMeter, KilotonneSquareMillimetersTolerance), MassMomentOfInertiaUnit.MegatonneSquareCentimeter => (MegatonneSquareCentimetersInOneKilogramSquareMeter, MegatonneSquareCentimetersTolerance), MassMomentOfInertiaUnit.MegatonneSquareDecimeter => (MegatonneSquareDecimetersInOneKilogramSquareMeter, MegatonneSquareDecimetersTolerance), MassMomentOfInertiaUnit.MegatonneSquareMeter => (MegatonneSquareMetersInOneKilogramSquareMeter, MegatonneSquareMetersTolerance), - MassMomentOfInertiaUnit.MegatonneSquareMilimeter => (MegatonneSquareMilimetersInOneKilogramSquareMeter, MegatonneSquareMilimetersTolerance), + MassMomentOfInertiaUnit.MegatonneSquareMillimeter => (MegatonneSquareMillimetersInOneKilogramSquareMeter, MegatonneSquareMillimetersTolerance), MassMomentOfInertiaUnit.MilligramSquareCentimeter => (MilligramSquareCentimetersInOneKilogramSquareMeter, MilligramSquareCentimetersTolerance), MassMomentOfInertiaUnit.MilligramSquareDecimeter => (MilligramSquareDecimetersInOneKilogramSquareMeter, MilligramSquareDecimetersTolerance), MassMomentOfInertiaUnit.MilligramSquareMeter => (MilligramSquareMetersInOneKilogramSquareMeter, MilligramSquareMetersTolerance), @@ -130,7 +130,7 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase MassMomentOfInertiaUnit.TonneSquareCentimeter => (TonneSquareCentimetersInOneKilogramSquareMeter, TonneSquareCentimetersTolerance), MassMomentOfInertiaUnit.TonneSquareDecimeter => (TonneSquareDecimetersInOneKilogramSquareMeter, TonneSquareDecimetersTolerance), MassMomentOfInertiaUnit.TonneSquareMeter => (TonneSquareMetersInOneKilogramSquareMeter, TonneSquareMetersTolerance), - MassMomentOfInertiaUnit.TonneSquareMilimeter => (TonneSquareMilimetersInOneKilogramSquareMeter, TonneSquareMilimetersTolerance), + MassMomentOfInertiaUnit.TonneSquareMillimeter => (TonneSquareMillimetersInOneKilogramSquareMeter, TonneSquareMillimetersTolerance), _ => throw new NotSupportedException() }; } @@ -148,11 +148,11 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase new object[] { MassMomentOfInertiaUnit.KilotonneSquareCentimeter }, new object[] { MassMomentOfInertiaUnit.KilotonneSquareDecimeter }, new object[] { MassMomentOfInertiaUnit.KilotonneSquareMeter }, - new object[] { MassMomentOfInertiaUnit.KilotonneSquareMilimeter }, + new object[] { MassMomentOfInertiaUnit.KilotonneSquareMillimeter }, new object[] { MassMomentOfInertiaUnit.MegatonneSquareCentimeter }, new object[] { MassMomentOfInertiaUnit.MegatonneSquareDecimeter }, new object[] { MassMomentOfInertiaUnit.MegatonneSquareMeter }, - new object[] { MassMomentOfInertiaUnit.MegatonneSquareMilimeter }, + new object[] { MassMomentOfInertiaUnit.MegatonneSquareMillimeter }, new object[] { MassMomentOfInertiaUnit.MilligramSquareCentimeter }, new object[] { MassMomentOfInertiaUnit.MilligramSquareDecimeter }, new object[] { MassMomentOfInertiaUnit.MilligramSquareMeter }, @@ -164,7 +164,7 @@ public abstract partial class MassMomentOfInertiaTestsBase : QuantityTestsBase new object[] { MassMomentOfInertiaUnit.TonneSquareCentimeter }, new object[] { MassMomentOfInertiaUnit.TonneSquareDecimeter }, new object[] { MassMomentOfInertiaUnit.TonneSquareMeter }, - new object[] { MassMomentOfInertiaUnit.TonneSquareMilimeter }, + new object[] { MassMomentOfInertiaUnit.TonneSquareMillimeter }, }; [Fact] @@ -243,11 +243,11 @@ public void KilogramSquareMeterToMassMomentOfInertiaUnits() AssertEx.EqualTolerance(KilotonneSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.KilotonneSquareCentimeters, KilotonneSquareCentimetersTolerance); AssertEx.EqualTolerance(KilotonneSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.KilotonneSquareDecimeters, KilotonneSquareDecimetersTolerance); AssertEx.EqualTolerance(KilotonneSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.KilotonneSquareMeters, KilotonneSquareMetersTolerance); - AssertEx.EqualTolerance(KilotonneSquareMilimetersInOneKilogramSquareMeter, kilogramsquaremeter.KilotonneSquareMilimeters, KilotonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(KilotonneSquareMillimetersInOneKilogramSquareMeter, kilogramsquaremeter.KilotonneSquareMillimeters, KilotonneSquareMillimetersTolerance); AssertEx.EqualTolerance(MegatonneSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.MegatonneSquareCentimeters, MegatonneSquareCentimetersTolerance); AssertEx.EqualTolerance(MegatonneSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.MegatonneSquareDecimeters, MegatonneSquareDecimetersTolerance); AssertEx.EqualTolerance(MegatonneSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.MegatonneSquareMeters, MegatonneSquareMetersTolerance); - AssertEx.EqualTolerance(MegatonneSquareMilimetersInOneKilogramSquareMeter, kilogramsquaremeter.MegatonneSquareMilimeters, MegatonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(MegatonneSquareMillimetersInOneKilogramSquareMeter, kilogramsquaremeter.MegatonneSquareMillimeters, MegatonneSquareMillimetersTolerance); AssertEx.EqualTolerance(MilligramSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.MilligramSquareCentimeters, MilligramSquareCentimetersTolerance); AssertEx.EqualTolerance(MilligramSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.MilligramSquareDecimeters, MilligramSquareDecimetersTolerance); AssertEx.EqualTolerance(MilligramSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.MilligramSquareMeters, MilligramSquareMetersTolerance); @@ -259,7 +259,7 @@ public void KilogramSquareMeterToMassMomentOfInertiaUnits() AssertEx.EqualTolerance(TonneSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.TonneSquareCentimeters, TonneSquareCentimetersTolerance); AssertEx.EqualTolerance(TonneSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.TonneSquareDecimeters, TonneSquareDecimetersTolerance); AssertEx.EqualTolerance(TonneSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.TonneSquareMeters, TonneSquareMetersTolerance); - AssertEx.EqualTolerance(TonneSquareMilimetersInOneKilogramSquareMeter, kilogramsquaremeter.TonneSquareMilimeters, TonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(TonneSquareMillimetersInOneKilogramSquareMeter, kilogramsquaremeter.TonneSquareMillimeters, TonneSquareMillimetersTolerance); } [Fact] @@ -309,9 +309,9 @@ public void From_ValueAndUnit_ReturnsQuantityWithSameValueAndUnit() AssertEx.EqualTolerance(1, quantity10.KilotonneSquareMeters, KilotonneSquareMetersTolerance); Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMeter, quantity10.Unit); - var quantity11 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.KilotonneSquareMilimeter); - AssertEx.EqualTolerance(1, quantity11.KilotonneSquareMilimeters, KilotonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMilimeter, quantity11.Unit); + var quantity11 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.KilotonneSquareMillimeter); + AssertEx.EqualTolerance(1, quantity11.KilotonneSquareMillimeters, KilotonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMillimeter, quantity11.Unit); var quantity12 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.MegatonneSquareCentimeter); AssertEx.EqualTolerance(1, quantity12.MegatonneSquareCentimeters, MegatonneSquareCentimetersTolerance); @@ -325,9 +325,9 @@ public void From_ValueAndUnit_ReturnsQuantityWithSameValueAndUnit() AssertEx.EqualTolerance(1, quantity14.MegatonneSquareMeters, MegatonneSquareMetersTolerance); Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMeter, quantity14.Unit); - var quantity15 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.MegatonneSquareMilimeter); - AssertEx.EqualTolerance(1, quantity15.MegatonneSquareMilimeters, MegatonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMilimeter, quantity15.Unit); + var quantity15 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.MegatonneSquareMillimeter); + AssertEx.EqualTolerance(1, quantity15.MegatonneSquareMillimeters, MegatonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMillimeter, quantity15.Unit); var quantity16 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.MilligramSquareCentimeter); AssertEx.EqualTolerance(1, quantity16.MilligramSquareCentimeters, MilligramSquareCentimetersTolerance); @@ -373,9 +373,9 @@ public void From_ValueAndUnit_ReturnsQuantityWithSameValueAndUnit() AssertEx.EqualTolerance(1, quantity26.TonneSquareMeters, TonneSquareMetersTolerance); Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMeter, quantity26.Unit); - var quantity27 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.TonneSquareMilimeter); - AssertEx.EqualTolerance(1, quantity27.TonneSquareMilimeters, TonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMilimeter, quantity27.Unit); + var quantity27 = MassMomentOfInertia.From(1, MassMomentOfInertiaUnit.TonneSquareMillimeter); + AssertEx.EqualTolerance(1, quantity27.TonneSquareMillimeters, TonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMillimeter, quantity27.Unit); } @@ -412,11 +412,11 @@ public void As() AssertEx.EqualTolerance(KilotonneSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.KilotonneSquareCentimeter), KilotonneSquareCentimetersTolerance); AssertEx.EqualTolerance(KilotonneSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.KilotonneSquareDecimeter), KilotonneSquareDecimetersTolerance); AssertEx.EqualTolerance(KilotonneSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.KilotonneSquareMeter), KilotonneSquareMetersTolerance); - AssertEx.EqualTolerance(KilotonneSquareMilimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.KilotonneSquareMilimeter), KilotonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(KilotonneSquareMillimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.KilotonneSquareMillimeter), KilotonneSquareMillimetersTolerance); AssertEx.EqualTolerance(MegatonneSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MegatonneSquareCentimeter), MegatonneSquareCentimetersTolerance); AssertEx.EqualTolerance(MegatonneSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MegatonneSquareDecimeter), MegatonneSquareDecimetersTolerance); AssertEx.EqualTolerance(MegatonneSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MegatonneSquareMeter), MegatonneSquareMetersTolerance); - AssertEx.EqualTolerance(MegatonneSquareMilimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MegatonneSquareMilimeter), MegatonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(MegatonneSquareMillimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MegatonneSquareMillimeter), MegatonneSquareMillimetersTolerance); AssertEx.EqualTolerance(MilligramSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MilligramSquareCentimeter), MilligramSquareCentimetersTolerance); AssertEx.EqualTolerance(MilligramSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MilligramSquareDecimeter), MilligramSquareDecimetersTolerance); AssertEx.EqualTolerance(MilligramSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.MilligramSquareMeter), MilligramSquareMetersTolerance); @@ -428,7 +428,7 @@ public void As() AssertEx.EqualTolerance(TonneSquareCentimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.TonneSquareCentimeter), TonneSquareCentimetersTolerance); AssertEx.EqualTolerance(TonneSquareDecimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.TonneSquareDecimeter), TonneSquareDecimetersTolerance); AssertEx.EqualTolerance(TonneSquareMetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.TonneSquareMeter), TonneSquareMetersTolerance); - AssertEx.EqualTolerance(TonneSquareMilimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.TonneSquareMilimeter), TonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(TonneSquareMillimetersInOneKilogramSquareMeter, kilogramsquaremeter.As(MassMomentOfInertiaUnit.TonneSquareMillimeter), TonneSquareMillimetersTolerance); } [Fact] @@ -620,8 +620,8 @@ public void Parse() try { var parsed = MassMomentOfInertia.Parse("1 kt·mm²", CultureInfo.GetCultureInfo("en-US")); - AssertEx.EqualTolerance(1, parsed.KilotonneSquareMilimeters, KilotonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMilimeter, parsed.Unit); + AssertEx.EqualTolerance(1, parsed.KilotonneSquareMillimeters, KilotonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMillimeter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try @@ -648,8 +648,8 @@ public void Parse() try { var parsed = MassMomentOfInertia.Parse("1 Mt·mm²", CultureInfo.GetCultureInfo("en-US")); - AssertEx.EqualTolerance(1, parsed.MegatonneSquareMilimeters, MegatonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMilimeter, parsed.Unit); + AssertEx.EqualTolerance(1, parsed.MegatonneSquareMillimeters, MegatonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMillimeter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try @@ -732,8 +732,8 @@ public void Parse() try { var parsed = MassMomentOfInertia.Parse("1 t·mm²", CultureInfo.GetCultureInfo("en-US")); - AssertEx.EqualTolerance(1, parsed.TonneSquareMilimeters, TonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMilimeter, parsed.Unit); + AssertEx.EqualTolerance(1, parsed.TonneSquareMillimeters, TonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMillimeter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } } @@ -809,8 +809,8 @@ public void TryParse() { Assert.True(MassMomentOfInertia.TryParse("1 kt·mm²", CultureInfo.GetCultureInfo("en-US"), out var parsed)); - AssertEx.EqualTolerance(1, parsed.KilotonneSquareMilimeters, KilotonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMilimeter, parsed.Unit); + AssertEx.EqualTolerance(1, parsed.KilotonneSquareMillimeters, KilotonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.KilotonneSquareMillimeter, parsed.Unit); } { @@ -833,8 +833,8 @@ public void TryParse() { Assert.True(MassMomentOfInertia.TryParse("1 Mt·mm²", CultureInfo.GetCultureInfo("en-US"), out var parsed)); - AssertEx.EqualTolerance(1, parsed.MegatonneSquareMilimeters, MegatonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMilimeter, parsed.Unit); + AssertEx.EqualTolerance(1, parsed.MegatonneSquareMillimeters, MegatonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.MegatonneSquareMillimeter, parsed.Unit); } { @@ -905,8 +905,8 @@ public void TryParse() { Assert.True(MassMomentOfInertia.TryParse("1 t·mm²", CultureInfo.GetCultureInfo("en-US"), out var parsed)); - AssertEx.EqualTolerance(1, parsed.TonneSquareMilimeters, TonneSquareMilimetersTolerance); - Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMilimeter, parsed.Unit); + AssertEx.EqualTolerance(1, parsed.TonneSquareMillimeters, TonneSquareMillimetersTolerance); + Assert.Equal(MassMomentOfInertiaUnit.TonneSquareMillimeter, parsed.Unit); } } @@ -923,11 +923,11 @@ public void TryParse() [InlineData("kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -939,7 +939,7 @@ public void TryParse() [InlineData("t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void ParseUnit_WithUsEnglishCurrentCulture(string abbreviation, MassMomentOfInertiaUnit expectedUnit) { // Fallback culture "en-US" is always localized @@ -960,11 +960,11 @@ public void ParseUnit_WithUsEnglishCurrentCulture(string abbreviation, MassMomen [InlineData("kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -976,7 +976,7 @@ public void ParseUnit_WithUsEnglishCurrentCulture(string abbreviation, MassMomen [InlineData("t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void ParseUnit_WithUnsupportedCurrentCulture_FallsBackToUsEnglish(string abbreviation, MassMomentOfInertiaUnit expectedUnit) { // Currently, no abbreviations are localized for Icelandic, so it should fall back to "en-US" when parsing. @@ -997,11 +997,11 @@ public void ParseUnit_WithUnsupportedCurrentCulture_FallsBackToUsEnglish(string [InlineData("en-US", "kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("en-US", "kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("en-US", "kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("en-US", "Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("en-US", "Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("en-US", "Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("en-US", "mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("en-US", "mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("en-US", "mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -1013,7 +1013,7 @@ public void ParseUnit_WithUnsupportedCurrentCulture_FallsBackToUsEnglish(string [InlineData("en-US", "t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("en-US", "t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("en-US", "t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void ParseUnit_WithCurrentCulture(string culture, string abbreviation, MassMomentOfInertiaUnit expectedUnit) { using var _ = new CultureScope(culture); @@ -1033,11 +1033,11 @@ public void ParseUnit_WithCurrentCulture(string culture, string abbreviation, Ma [InlineData("en-US", "kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("en-US", "kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("en-US", "kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("en-US", "Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("en-US", "Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("en-US", "Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("en-US", "mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("en-US", "mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("en-US", "mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -1049,7 +1049,7 @@ public void ParseUnit_WithCurrentCulture(string culture, string abbreviation, Ma [InlineData("en-US", "t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("en-US", "t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("en-US", "t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void ParseUnit_WithCulture(string culture, string abbreviation, MassMomentOfInertiaUnit expectedUnit) { MassMomentOfInertiaUnit parsedUnit = MassMomentOfInertia.ParseUnit(abbreviation, CultureInfo.GetCultureInfo(culture)); @@ -1068,11 +1068,11 @@ public void ParseUnit_WithCulture(string culture, string abbreviation, MassMomen [InlineData("kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -1084,7 +1084,7 @@ public void ParseUnit_WithCulture(string culture, string abbreviation, MassMomen [InlineData("t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void TryParseUnit_WithUsEnglishCurrentCulture(string abbreviation, MassMomentOfInertiaUnit expectedUnit) { // Fallback culture "en-US" is always localized @@ -1105,11 +1105,11 @@ public void TryParseUnit_WithUsEnglishCurrentCulture(string abbreviation, MassMo [InlineData("kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -1121,7 +1121,7 @@ public void TryParseUnit_WithUsEnglishCurrentCulture(string abbreviation, MassMo [InlineData("t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void TryParseUnit_WithUnsupportedCurrentCulture_FallsBackToUsEnglish(string abbreviation, MassMomentOfInertiaUnit expectedUnit) { // Currently, no abbreviations are localized for Icelandic, so it should fall back to "en-US" when parsing. @@ -1142,11 +1142,11 @@ public void TryParseUnit_WithUnsupportedCurrentCulture_FallsBackToUsEnglish(stri [InlineData("en-US", "kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("en-US", "kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("en-US", "kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("en-US", "Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("en-US", "Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("en-US", "Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("en-US", "mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("en-US", "mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("en-US", "mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -1158,7 +1158,7 @@ public void TryParseUnit_WithUnsupportedCurrentCulture_FallsBackToUsEnglish(stri [InlineData("en-US", "t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("en-US", "t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("en-US", "t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void TryParseUnit_WithCurrentCulture(string culture, string abbreviation, MassMomentOfInertiaUnit expectedUnit) { using var _ = new CultureScope(culture); @@ -1178,11 +1178,11 @@ public void TryParseUnit_WithCurrentCulture(string culture, string abbreviation, [InlineData("en-US", "kt·cm²", MassMomentOfInertiaUnit.KilotonneSquareCentimeter)] [InlineData("en-US", "kt·dm²", MassMomentOfInertiaUnit.KilotonneSquareDecimeter)] [InlineData("en-US", "kt·m²", MassMomentOfInertiaUnit.KilotonneSquareMeter)] - [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMilimeter)] + [InlineData("en-US", "kt·mm²", MassMomentOfInertiaUnit.KilotonneSquareMillimeter)] [InlineData("en-US", "Mt·cm²", MassMomentOfInertiaUnit.MegatonneSquareCentimeter)] [InlineData("en-US", "Mt·dm²", MassMomentOfInertiaUnit.MegatonneSquareDecimeter)] [InlineData("en-US", "Mt·m²", MassMomentOfInertiaUnit.MegatonneSquareMeter)] - [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMilimeter)] + [InlineData("en-US", "Mt·mm²", MassMomentOfInertiaUnit.MegatonneSquareMillimeter)] [InlineData("en-US", "mg·cm²", MassMomentOfInertiaUnit.MilligramSquareCentimeter)] [InlineData("en-US", "mg·dm²", MassMomentOfInertiaUnit.MilligramSquareDecimeter)] [InlineData("en-US", "mg·m²", MassMomentOfInertiaUnit.MilligramSquareMeter)] @@ -1194,7 +1194,7 @@ public void TryParseUnit_WithCurrentCulture(string culture, string abbreviation, [InlineData("en-US", "t·cm²", MassMomentOfInertiaUnit.TonneSquareCentimeter)] [InlineData("en-US", "t·dm²", MassMomentOfInertiaUnit.TonneSquareDecimeter)] [InlineData("en-US", "t·m²", MassMomentOfInertiaUnit.TonneSquareMeter)] - [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMilimeter)] + [InlineData("en-US", "t·mm²", MassMomentOfInertiaUnit.TonneSquareMillimeter)] public void TryParseUnit_WithCulture(string culture, string abbreviation, MassMomentOfInertiaUnit expectedUnit) { Assert.True(MassMomentOfInertia.TryParseUnit(abbreviation, CultureInfo.GetCultureInfo(culture), out MassMomentOfInertiaUnit parsedUnit)); @@ -1258,11 +1258,11 @@ public void ConversionRoundTrip() AssertEx.EqualTolerance(1, MassMomentOfInertia.FromKilotonneSquareCentimeters(kilogramsquaremeter.KilotonneSquareCentimeters).KilogramSquareMeters, KilotonneSquareCentimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromKilotonneSquareDecimeters(kilogramsquaremeter.KilotonneSquareDecimeters).KilogramSquareMeters, KilotonneSquareDecimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromKilotonneSquareMeters(kilogramsquaremeter.KilotonneSquareMeters).KilogramSquareMeters, KilotonneSquareMetersTolerance); - AssertEx.EqualTolerance(1, MassMomentOfInertia.FromKilotonneSquareMilimeters(kilogramsquaremeter.KilotonneSquareMilimeters).KilogramSquareMeters, KilotonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(1, MassMomentOfInertia.FromKilotonneSquareMillimeters(kilogramsquaremeter.KilotonneSquareMillimeters).KilogramSquareMeters, KilotonneSquareMillimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMegatonneSquareCentimeters(kilogramsquaremeter.MegatonneSquareCentimeters).KilogramSquareMeters, MegatonneSquareCentimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMegatonneSquareDecimeters(kilogramsquaremeter.MegatonneSquareDecimeters).KilogramSquareMeters, MegatonneSquareDecimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMegatonneSquareMeters(kilogramsquaremeter.MegatonneSquareMeters).KilogramSquareMeters, MegatonneSquareMetersTolerance); - AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMegatonneSquareMilimeters(kilogramsquaremeter.MegatonneSquareMilimeters).KilogramSquareMeters, MegatonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMegatonneSquareMillimeters(kilogramsquaremeter.MegatonneSquareMillimeters).KilogramSquareMeters, MegatonneSquareMillimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMilligramSquareCentimeters(kilogramsquaremeter.MilligramSquareCentimeters).KilogramSquareMeters, MilligramSquareCentimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMilligramSquareDecimeters(kilogramsquaremeter.MilligramSquareDecimeters).KilogramSquareMeters, MilligramSquareDecimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromMilligramSquareMeters(kilogramsquaremeter.MilligramSquareMeters).KilogramSquareMeters, MilligramSquareMetersTolerance); @@ -1274,7 +1274,7 @@ public void ConversionRoundTrip() AssertEx.EqualTolerance(1, MassMomentOfInertia.FromTonneSquareCentimeters(kilogramsquaremeter.TonneSquareCentimeters).KilogramSquareMeters, TonneSquareCentimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromTonneSquareDecimeters(kilogramsquaremeter.TonneSquareDecimeters).KilogramSquareMeters, TonneSquareDecimetersTolerance); AssertEx.EqualTolerance(1, MassMomentOfInertia.FromTonneSquareMeters(kilogramsquaremeter.TonneSquareMeters).KilogramSquareMeters, TonneSquareMetersTolerance); - AssertEx.EqualTolerance(1, MassMomentOfInertia.FromTonneSquareMilimeters(kilogramsquaremeter.TonneSquareMilimeters).KilogramSquareMeters, TonneSquareMilimetersTolerance); + AssertEx.EqualTolerance(1, MassMomentOfInertia.FromTonneSquareMillimeters(kilogramsquaremeter.TonneSquareMillimeters).KilogramSquareMeters, TonneSquareMillimetersTolerance); } [Fact] @@ -1433,11 +1433,11 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Assert.Equal("1 kt·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareCentimeter).ToString()); Assert.Equal("1 kt·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareDecimeter).ToString()); Assert.Equal("1 kt·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareMeter).ToString()); - Assert.Equal("1 kt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareMilimeter).ToString()); + Assert.Equal("1 kt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareMillimeter).ToString()); Assert.Equal("1 Mt·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareCentimeter).ToString()); Assert.Equal("1 Mt·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareDecimeter).ToString()); Assert.Equal("1 Mt·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareMeter).ToString()); - Assert.Equal("1 Mt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareMilimeter).ToString()); + Assert.Equal("1 Mt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareMillimeter).ToString()); Assert.Equal("1 mg·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MilligramSquareCentimeter).ToString()); Assert.Equal("1 mg·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MilligramSquareDecimeter).ToString()); Assert.Equal("1 mg·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MilligramSquareMeter).ToString()); @@ -1449,7 +1449,7 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Assert.Equal("1 t·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareCentimeter).ToString()); Assert.Equal("1 t·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareDecimeter).ToString()); Assert.Equal("1 t·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareMeter).ToString()); - Assert.Equal("1 t·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareMilimeter).ToString()); + Assert.Equal("1 t·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareMillimeter).ToString()); } [Fact] @@ -1469,11 +1469,11 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture Assert.Equal("1 kt·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareCentimeter).ToString(swedishCulture)); Assert.Equal("1 kt·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareDecimeter).ToString(swedishCulture)); Assert.Equal("1 kt·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareMeter).ToString(swedishCulture)); - Assert.Equal("1 kt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareMilimeter).ToString(swedishCulture)); + Assert.Equal("1 kt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.KilotonneSquareMillimeter).ToString(swedishCulture)); Assert.Equal("1 Mt·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareCentimeter).ToString(swedishCulture)); Assert.Equal("1 Mt·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareDecimeter).ToString(swedishCulture)); Assert.Equal("1 Mt·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareMeter).ToString(swedishCulture)); - Assert.Equal("1 Mt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareMilimeter).ToString(swedishCulture)); + Assert.Equal("1 Mt·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MegatonneSquareMillimeter).ToString(swedishCulture)); Assert.Equal("1 mg·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MilligramSquareCentimeter).ToString(swedishCulture)); Assert.Equal("1 mg·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MilligramSquareDecimeter).ToString(swedishCulture)); Assert.Equal("1 mg·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.MilligramSquareMeter).ToString(swedishCulture)); @@ -1485,7 +1485,7 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture Assert.Equal("1 t·cm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareCentimeter).ToString(swedishCulture)); Assert.Equal("1 t·dm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareDecimeter).ToString(swedishCulture)); Assert.Equal("1 t·m²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareMeter).ToString(swedishCulture)); - Assert.Equal("1 t·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareMilimeter).ToString(swedishCulture)); + Assert.Equal("1 t·mm²", new MassMomentOfInertia(1, MassMomentOfInertiaUnit.TonneSquareMillimeter).ToString(swedishCulture)); } [Fact] diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index ae78b4c4a1..487ff22190 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -84,11 +84,11 @@ static MassMomentOfInertia() new UnitInfo(MassMomentOfInertiaUnit.KilotonneSquareCentimeter, "KilotonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Kilotonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.KilotonneSquareDecimeter, "KilotonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Kilotonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.KilotonneSquareMeter, "KilotonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilotonne), "MassMomentOfInertia"), - new UnitInfo(MassMomentOfInertiaUnit.KilotonneSquareMilimeter, "KilotonneSquareMilimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilotonne), "MassMomentOfInertia"), + new UnitInfo(MassMomentOfInertiaUnit.KilotonneSquareMillimeter, "KilotonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Kilotonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.MegatonneSquareCentimeter, "MegatonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Megatonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.MegatonneSquareDecimeter, "MegatonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Megatonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.MegatonneSquareMeter, "MegatonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Megatonne), "MassMomentOfInertia"), - new UnitInfo(MassMomentOfInertiaUnit.MegatonneSquareMilimeter, "MegatonneSquareMilimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Megatonne), "MassMomentOfInertia"), + new UnitInfo(MassMomentOfInertiaUnit.MegatonneSquareMillimeter, "MegatonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Megatonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.MilligramSquareCentimeter, "MilligramSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Milligram), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.MilligramSquareDecimeter, "MilligramSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Milligram), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.MilligramSquareMeter, "MilligramSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Milligram), "MassMomentOfInertia"), @@ -100,7 +100,7 @@ static MassMomentOfInertia() new UnitInfo(MassMomentOfInertiaUnit.TonneSquareCentimeter, "TonneSquareCentimeters", new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Tonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.TonneSquareDecimeter, "TonneSquareDecimeters", new BaseUnits(length: LengthUnit.Decimeter, mass: MassUnit.Tonne), "MassMomentOfInertia"), new UnitInfo(MassMomentOfInertiaUnit.TonneSquareMeter, "TonneSquareMeters", new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Tonne), "MassMomentOfInertia"), - new UnitInfo(MassMomentOfInertiaUnit.TonneSquareMilimeter, "TonneSquareMilimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), "MassMomentOfInertia"), + new UnitInfo(MassMomentOfInertiaUnit.TonneSquareMillimeter, "TonneSquareMillimeters", new BaseUnits(length: LengthUnit.Millimeter, mass: MassUnit.Tonne), "MassMomentOfInertia"), }, BaseUnit, Zero, BaseDimensions); @@ -254,9 +254,9 @@ public MassMomentOfInertia(double value, UnitSystem unitSystem) public double KilotonneSquareMeters => As(MassMomentOfInertiaUnit.KilotonneSquareMeter); /// - /// Gets a value of this quantity converted into + /// Gets a value of this quantity converted into /// - public double KilotonneSquareMilimeters => As(MassMomentOfInertiaUnit.KilotonneSquareMilimeter); + public double KilotonneSquareMillimeters => As(MassMomentOfInertiaUnit.KilotonneSquareMillimeter); /// /// Gets a value of this quantity converted into @@ -274,9 +274,9 @@ public MassMomentOfInertia(double value, UnitSystem unitSystem) public double MegatonneSquareMeters => As(MassMomentOfInertiaUnit.MegatonneSquareMeter); /// - /// Gets a value of this quantity converted into + /// Gets a value of this quantity converted into /// - public double MegatonneSquareMilimeters => As(MassMomentOfInertiaUnit.MegatonneSquareMilimeter); + public double MegatonneSquareMillimeters => As(MassMomentOfInertiaUnit.MegatonneSquareMillimeter); /// /// Gets a value of this quantity converted into @@ -334,9 +334,9 @@ public MassMomentOfInertia(double value, UnitSystem unitSystem) public double TonneSquareMeters => As(MassMomentOfInertiaUnit.TonneSquareMeter); /// - /// Gets a value of this quantity converted into + /// Gets a value of this quantity converted into /// - public double TonneSquareMilimeters => As(MassMomentOfInertiaUnit.TonneSquareMilimeter); + public double TonneSquareMillimeters => As(MassMomentOfInertiaUnit.TonneSquareMillimeter); #endregion @@ -359,11 +359,11 @@ internal static void RegisterDefaultConversions(UnitConverter unitConverter) unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilotonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilotonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilotonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); - unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilotonneSquareMilimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); + unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilotonneSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MegatonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MegatonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MegatonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); - unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MegatonneSquareMilimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); + unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MegatonneSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MilligramSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MilligramSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.MilligramSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); @@ -375,7 +375,7 @@ internal static void RegisterDefaultConversions(UnitConverter unitConverter) unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.TonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.TonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.TonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); - unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.TonneSquareMilimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); + unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.TonneSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilogramSquareMeter)); // Register in unit converter: BaseUnit <-> BaseUnit unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter, quantity => quantity); @@ -391,11 +391,11 @@ internal static void RegisterDefaultConversions(UnitConverter unitConverter) unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareCentimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilotonneSquareCentimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareDecimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilotonneSquareDecimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilotonneSquareMeter)); - unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareMilimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilotonneSquareMilimeter)); + unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareMillimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.KilotonneSquareMillimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareCentimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MegatonneSquareCentimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareDecimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MegatonneSquareDecimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MegatonneSquareMeter)); - unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareMilimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MegatonneSquareMilimeter)); + unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareMillimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MegatonneSquareMillimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareCentimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MilligramSquareCentimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareDecimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MilligramSquareDecimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.MilligramSquareMeter)); @@ -407,7 +407,7 @@ internal static void RegisterDefaultConversions(UnitConverter unitConverter) unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareCentimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.TonneSquareCentimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareDecimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.TonneSquareDecimeter)); unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.TonneSquareMeter)); - unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMilimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.TonneSquareMilimeter)); + unitConverter.SetConversionFunction(MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMillimeter, quantity => quantity.ToUnit(MassMomentOfInertiaUnit.TonneSquareMillimeter)); } /// @@ -524,11 +524,11 @@ public static MassMomentOfInertia FromKilotonneSquareMeters(double value) } /// - /// Creates a from . + /// Creates a from . /// - public static MassMomentOfInertia FromKilotonneSquareMilimeters(double value) + public static MassMomentOfInertia FromKilotonneSquareMillimeters(double value) { - return new MassMomentOfInertia(value, MassMomentOfInertiaUnit.KilotonneSquareMilimeter); + return new MassMomentOfInertia(value, MassMomentOfInertiaUnit.KilotonneSquareMillimeter); } /// @@ -556,11 +556,11 @@ public static MassMomentOfInertia FromMegatonneSquareMeters(double value) } /// - /// Creates a from . + /// Creates a from . /// - public static MassMomentOfInertia FromMegatonneSquareMilimeters(double value) + public static MassMomentOfInertia FromMegatonneSquareMillimeters(double value) { - return new MassMomentOfInertia(value, MassMomentOfInertiaUnit.MegatonneSquareMilimeter); + return new MassMomentOfInertia(value, MassMomentOfInertiaUnit.MegatonneSquareMillimeter); } /// @@ -652,11 +652,11 @@ public static MassMomentOfInertia FromTonneSquareMeters(double value) } /// - /// Creates a from . + /// Creates a from . /// - public static MassMomentOfInertia FromTonneSquareMilimeters(double value) + public static MassMomentOfInertia FromTonneSquareMillimeters(double value) { - return new MassMomentOfInertia(value, MassMomentOfInertiaUnit.TonneSquareMilimeter); + return new MassMomentOfInertia(value, MassMomentOfInertiaUnit.TonneSquareMillimeter); } /// @@ -1135,11 +1135,11 @@ private bool TryToUnit(MassMomentOfInertiaUnit unit, [NotNullWhen(true)] out Mas (MassMomentOfInertiaUnit.KilotonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e1) * 1e3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.KilotonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e-1) * 1e3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.KilotonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e-3) * 1e3d, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.KilotonneSquareMilimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e3) * 1e3d, MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.KilotonneSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e3) * 1e3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MegatonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e1) * 1e6d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MegatonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e-1) * 1e6d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MegatonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e-3) * 1e6d, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.MegatonneSquareMilimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e3) * 1e6d, MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.MegatonneSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e3) * 1e6d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MilligramSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e7) * 1e-3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MilligramSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e5) * 1e-3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MilligramSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e3) * 1e-3d, MassMomentOfInertiaUnit.KilogramSquareMeter), @@ -1151,7 +1151,7 @@ private bool TryToUnit(MassMomentOfInertiaUnit unit, [NotNullWhen(true)] out Mas (MassMomentOfInertiaUnit.TonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e1, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.TonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e-1, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.TonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e-3, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.TonneSquareMilimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e3, MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.TonneSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e3, MassMomentOfInertiaUnit.KilogramSquareMeter), // BaseUnit -> MassMomentOfInertiaUnit (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.GramSquareCentimeter) => new MassMomentOfInertia(_value * 1e7, MassMomentOfInertiaUnit.GramSquareCentimeter), @@ -1164,11 +1164,11 @@ private bool TryToUnit(MassMomentOfInertiaUnit unit, [NotNullWhen(true)] out Mas (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareCentimeter) => new MassMomentOfInertia((_value * 1e1) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareCentimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareDecimeter) => new MassMomentOfInertia((_value * 1e-1) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareDecimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareMeter) => new MassMomentOfInertia((_value * 1e-3) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareMeter), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareMilimeter) => new MassMomentOfInertia((_value * 1e3) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareMilimeter), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.KilotonneSquareMillimeter) => new MassMomentOfInertia((_value * 1e3) / 1e3d, MassMomentOfInertiaUnit.KilotonneSquareMillimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareCentimeter) => new MassMomentOfInertia((_value * 1e1) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareCentimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareDecimeter) => new MassMomentOfInertia((_value * 1e-1) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareDecimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareMeter) => new MassMomentOfInertia((_value * 1e-3) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareMeter), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareMilimeter) => new MassMomentOfInertia((_value * 1e3) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareMilimeter), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MegatonneSquareMillimeter) => new MassMomentOfInertia((_value * 1e3) / 1e6d, MassMomentOfInertiaUnit.MegatonneSquareMillimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareCentimeter) => new MassMomentOfInertia((_value * 1e7) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareCentimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareDecimeter) => new MassMomentOfInertia((_value * 1e5) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareDecimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareMeter) => new MassMomentOfInertia((_value * 1e3) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMeter), @@ -1180,7 +1180,7 @@ private bool TryToUnit(MassMomentOfInertiaUnit unit, [NotNullWhen(true)] out Mas (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareCentimeter) => new MassMomentOfInertia(_value * 1e1, MassMomentOfInertiaUnit.TonneSquareCentimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareDecimeter) => new MassMomentOfInertia(_value * 1e-1, MassMomentOfInertiaUnit.TonneSquareDecimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMeter) => new MassMomentOfInertia(_value * 1e-3, MassMomentOfInertiaUnit.TonneSquareMeter), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMilimeter) => new MassMomentOfInertia(_value * 1e3, MassMomentOfInertiaUnit.TonneSquareMilimeter), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMillimeter) => new MassMomentOfInertia(_value * 1e3, MassMomentOfInertiaUnit.TonneSquareMillimeter), _ => null }; diff --git a/UnitsNet/GeneratedCode/Resources/MassMomentOfInertia.restext b/UnitsNet/GeneratedCode/Resources/MassMomentOfInertia.restext index bfe8e0bae8..6fcfcc30e6 100644 --- a/UnitsNet/GeneratedCode/Resources/MassMomentOfInertia.restext +++ b/UnitsNet/GeneratedCode/Resources/MassMomentOfInertia.restext @@ -9,11 +9,11 @@ KilogramSquareMillimeters=kg·mm² KilotonneSquareCentimeters=kt·cm² KilotonneSquareDecimeters=kt·dm² KilotonneSquareMeters=kt·m² -KilotonneSquareMilimeters=kt·mm² +KilotonneSquareMillimeters=kt·mm² MegatonneSquareCentimeters=Mt·cm² MegatonneSquareDecimeters=Mt·dm² MegatonneSquareMeters=Mt·m² -MegatonneSquareMilimeters=Mt·mm² +MegatonneSquareMillimeters=Mt·mm² MilligramSquareCentimeters=mg·cm² MilligramSquareDecimeters=mg·dm² MilligramSquareMeters=mg·m² @@ -25,4 +25,4 @@ SlugSquareInches=slug·in² TonneSquareCentimeters=t·cm² TonneSquareDecimeters=t·dm² TonneSquareMeters=t·m² -TonneSquareMilimeters=t·mm² +TonneSquareMillimeters=t·mm² diff --git a/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs b/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs index 33c92670cb..05827647fd 100644 --- a/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/MassMomentOfInertiaUnit.g.cs @@ -36,11 +36,11 @@ public enum MassMomentOfInertiaUnit KilotonneSquareCentimeter = 9, KilotonneSquareDecimeter = 10, KilotonneSquareMeter = 11, - KilotonneSquareMilimeter = 12, + KilotonneSquareMillimeter = 12, MegatonneSquareCentimeter = 13, MegatonneSquareDecimeter = 14, MegatonneSquareMeter = 15, - MegatonneSquareMilimeter = 16, + MegatonneSquareMillimeter = 16, MilligramSquareCentimeter = 17, MilligramSquareDecimeter = 18, MilligramSquareMeter = 19, @@ -52,7 +52,7 @@ public enum MassMomentOfInertiaUnit TonneSquareCentimeter = 25, TonneSquareDecimeter = 26, TonneSquareMeter = 27, - TonneSquareMilimeter = 28, + TonneSquareMillimeter = 28, } #pragma warning restore 1591