diff --git a/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs b/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs index 49b95a45ea..50edf768d4 100644 --- a/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs +++ b/CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs @@ -205,7 +205,7 @@ public void Ctor_SIUnitSystem_ThrowsArgumentExceptionIfNotSupported() Assert.Equal(""{_quantity.Name}"", quantityInfo.Name); Assert.Equal(QuantityType.{_quantity.Name}, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues<{_unitEnumName}>().Except(new[] {{{_unitEnumName}.Undefined}}).ToArray(); + var units = EnumUtils.GetEnumValues<{_unitEnumName}>().Except(new[] {{{_unitEnumName}.Undefined}}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs index 2e34668cfd..ae5ed405e7 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AccelerationTestsBase.g.cs @@ -170,7 +170,7 @@ public void Acceleration_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Acceleration", quantityInfo.Name); Assert.Equal(QuantityType.Acceleration, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AccelerationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AccelerationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs index 1f1f3d9635..8e9595ce0b 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AmountOfSubstanceTestsBase.g.cs @@ -174,7 +174,7 @@ public void AmountOfSubstance_QuantityInfo_ReturnsQuantityInfoDescribingQuantity Assert.Equal("AmountOfSubstance", quantityInfo.Name); Assert.Equal(QuantityType.AmountOfSubstance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AmountOfSubstanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AmountOfSubstanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs index fdcb587b88..fd4ec2ae87 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AmplitudeRatioTestsBase.g.cs @@ -130,7 +130,7 @@ public void AmplitudeRatio_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("AmplitudeRatio", quantityInfo.Name); Assert.Equal(QuantityType.AmplitudeRatio, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AmplitudeRatioUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AmplitudeRatioUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs index aa44b3c995..0989d49ece 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AngleTestsBase.g.cs @@ -178,7 +178,7 @@ public void Angle_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Angle", quantityInfo.Name); Assert.Equal(QuantityType.Angle, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AngleUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AngleUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs index 23f61c85b0..9f3fe2ae9b 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentEnergyTestsBase.g.cs @@ -126,7 +126,7 @@ public void ApparentEnergy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ApparentEnergy", quantityInfo.Name); Assert.Equal(QuantityType.ApparentEnergy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ApparentEnergyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ApparentEnergyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs index 72d3deab28..de40291bb4 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ApparentPowerTestsBase.g.cs @@ -130,7 +130,7 @@ public void ApparentPower_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ApparentPower", quantityInfo.Name); Assert.Equal(QuantityType.ApparentPower, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ApparentPowerUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ApparentPowerUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs index a1e13536b8..5e9a74a24c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaDensityTestsBase.g.cs @@ -118,7 +118,7 @@ public void AreaDensity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("AreaDensity", quantityInfo.Name); Assert.Equal(QuantityType.AreaDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AreaDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AreaDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs index ef80986096..a788f00290 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaMomentOfInertiaTestsBase.g.cs @@ -138,7 +138,7 @@ public void AreaMomentOfInertia_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("AreaMomentOfInertia", quantityInfo.Name); Assert.Equal(QuantityType.AreaMomentOfInertia, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AreaMomentOfInertiaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AreaMomentOfInertiaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs index 55b4ad3ba2..96f9c0ab0c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/AreaTestsBase.g.cs @@ -170,7 +170,7 @@ public void Area_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Area", quantityInfo.Name); Assert.Equal(QuantityType.Area, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {AreaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {AreaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs index a174ae01b2..6bc0510edf 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/BitRateTestsBase.g.cs @@ -206,7 +206,7 @@ public void BitRate_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("BitRate", quantityInfo.Name); Assert.Equal(QuantityType.BitRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {BitRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {BitRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs index 70534fa6c2..7d85c689cf 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/BrakeSpecificFuelConsumptionTestsBase.g.cs @@ -126,7 +126,7 @@ public void BrakeSpecificFuelConsumption_QuantityInfo_ReturnsQuantityInfoDescrib Assert.Equal("BrakeSpecificFuelConsumption", quantityInfo.Name); Assert.Equal(QuantityType.BrakeSpecificFuelConsumption, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {BrakeSpecificFuelConsumptionUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {BrakeSpecificFuelConsumptionUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs index 1825f3ee80..035fe1717c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/CapacitanceTestsBase.g.cs @@ -142,7 +142,7 @@ public void Capacitance_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Capacitance", quantityInfo.Name); Assert.Equal(QuantityType.Capacitance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {CapacitanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {CapacitanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs index 19ddaac61e..e0379f0ca1 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/CoefficientOfThermalExpansionTestsBase.g.cs @@ -126,7 +126,7 @@ public void CoefficientOfThermalExpansion_QuantityInfo_ReturnsQuantityInfoDescri Assert.Equal("CoefficientOfThermalExpansion", quantityInfo.Name); Assert.Equal(QuantityType.CoefficientOfThermalExpansion, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {CoefficientOfThermalExpansionUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {CoefficientOfThermalExpansionUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs index 15b4893832..669e3c554d 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/CompressibilityTestsBase.g.cs @@ -142,7 +142,7 @@ public void Compressibility_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Compressibility", quantityInfo.Name); Assert.Equal(QuantityType.Compressibility, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {CompressibilityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {CompressibilityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs index 4656e6ec2f..1e6af01d5e 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs @@ -318,7 +318,7 @@ public void Density_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Density", quantityInfo.Name); Assert.Equal(QuantityType.Density, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {DensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {DensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs index 1dac156e56..47c7527bfb 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DurationTestsBase.g.cs @@ -158,7 +158,7 @@ public void Duration_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Duration", quantityInfo.Name); Assert.Equal(QuantityType.Duration, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {DurationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {DurationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs index 8fb0094e91..4140c1477e 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DynamicViscosityTestsBase.g.cs @@ -154,7 +154,7 @@ public void DynamicViscosity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity( Assert.Equal("DynamicViscosity", quantityInfo.Name); Assert.Equal(QuantityType.DynamicViscosity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {DynamicViscosityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {DynamicViscosityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs index 401cbba269..868a43d3be 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricAdmittanceTestsBase.g.cs @@ -130,7 +130,7 @@ public void ElectricAdmittance_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("ElectricAdmittance", quantityInfo.Name); Assert.Equal(QuantityType.ElectricAdmittance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricAdmittanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricAdmittanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs index 63cb0013cd..7714060c76 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeDensityTestsBase.g.cs @@ -118,7 +118,7 @@ public void ElectricChargeDensity_QuantityInfo_ReturnsQuantityInfoDescribingQuan Assert.Equal("ElectricChargeDensity", quantityInfo.Name); Assert.Equal(QuantityType.ElectricChargeDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricChargeDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricChargeDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs index f34c11afa0..9b1307c43a 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricChargeTestsBase.g.cs @@ -134,7 +134,7 @@ public void ElectricCharge_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ElectricCharge", quantityInfo.Name); Assert.Equal(QuantityType.ElectricCharge, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricChargeUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricChargeUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs index 55cef4a258..253c2e3b41 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductanceTestsBase.g.cs @@ -126,7 +126,7 @@ public void ElectricConductance_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("ElectricConductance", quantityInfo.Name); Assert.Equal(QuantityType.ElectricConductance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricConductanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricConductanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs index 229f28c2a3..d65dae4a03 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricConductivityTestsBase.g.cs @@ -126,7 +126,7 @@ public void ElectricConductivity_QuantityInfo_ReturnsQuantityInfoDescribingQuant Assert.Equal("ElectricConductivity", quantityInfo.Name); Assert.Equal(QuantityType.ElectricConductivity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricConductivityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricConductivityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs index 7d72e1782c..17252e0163 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentDensityTestsBase.g.cs @@ -126,7 +126,7 @@ public void ElectricCurrentDensity_QuantityInfo_ReturnsQuantityInfoDescribingQua Assert.Equal("ElectricCurrentDensity", quantityInfo.Name); Assert.Equal(QuantityType.ElectricCurrentDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricCurrentDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricCurrentDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs index c31e51bc8a..fe90a2ffb2 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentGradientTestsBase.g.cs @@ -130,7 +130,7 @@ public void ElectricCurrentGradient_QuantityInfo_ReturnsQuantityInfoDescribingQu Assert.Equal("ElectricCurrentGradient", quantityInfo.Name); Assert.Equal(QuantityType.ElectricCurrentGradient, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricCurrentGradientUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricCurrentGradientUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs index 7115158dcf..3377181539 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricCurrentTestsBase.g.cs @@ -146,7 +146,7 @@ public void ElectricCurrent_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ElectricCurrent", quantityInfo.Name); Assert.Equal(QuantityType.ElectricCurrent, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricCurrentUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricCurrentUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs index c6b92d4b6b..797deaf203 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricFieldTestsBase.g.cs @@ -118,7 +118,7 @@ public void ElectricField_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ElectricField", quantityInfo.Name); Assert.Equal(QuantityType.ElectricField, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricFieldUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricFieldUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs index 51fdfffb6f..3250b37b28 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricInductanceTestsBase.g.cs @@ -130,7 +130,7 @@ public void ElectricInductance_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("ElectricInductance", quantityInfo.Name); Assert.Equal(QuantityType.ElectricInductance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricInductanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricInductanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs index dfd9f50e7b..0d3403fa0f 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialAcTestsBase.g.cs @@ -134,7 +134,7 @@ public void ElectricPotentialAc_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("ElectricPotentialAc", quantityInfo.Name); Assert.Equal(QuantityType.ElectricPotentialAc, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialAcUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialAcUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs index 22c7d24319..e04cc1130c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialChangeRateTestsBase.g.cs @@ -194,7 +194,7 @@ public void ElectricPotentialChangeRate_QuantityInfo_ReturnsQuantityInfoDescribi Assert.Equal("ElectricPotentialChangeRate", quantityInfo.Name); Assert.Equal(QuantityType.ElectricPotentialChangeRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialChangeRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialChangeRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs index 28998d2e09..a25e8cf579 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialDcTestsBase.g.cs @@ -134,7 +134,7 @@ public void ElectricPotentialDc_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("ElectricPotentialDc", quantityInfo.Name); Assert.Equal(QuantityType.ElectricPotentialDc, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialDcUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialDcUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs index 2b1f28edcd..5957e1122a 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricPotentialTestsBase.g.cs @@ -134,7 +134,7 @@ public void ElectricPotential_QuantityInfo_ReturnsQuantityInfoDescribingQuantity Assert.Equal("ElectricPotential", quantityInfo.Name); Assert.Equal(QuantityType.ElectricPotential, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricPotentialUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs index de7e38bdab..39d0b0bdda 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs @@ -138,7 +138,7 @@ public void ElectricResistance_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("ElectricResistance", quantityInfo.Name); Assert.Equal(QuantityType.ElectricResistance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricResistanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricResistanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs index 88a93bb588..11e6e6d7af 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistivityTestsBase.g.cs @@ -170,7 +170,7 @@ public void ElectricResistivity_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("ElectricResistivity", quantityInfo.Name); Assert.Equal(QuantityType.ElectricResistivity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricResistivityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricResistivityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs index 6f7d17960b..873ccd5d4c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ElectricSurfaceChargeDensityTestsBase.g.cs @@ -126,7 +126,7 @@ public void ElectricSurfaceChargeDensity_QuantityInfo_ReturnsQuantityInfoDescrib Assert.Equal("ElectricSurfaceChargeDensity", quantityInfo.Name); Assert.Equal(QuantityType.ElectricSurfaceChargeDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ElectricSurfaceChargeDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ElectricSurfaceChargeDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs index 5fa4274e49..b0a7c596cc 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/EnergyTestsBase.g.cs @@ -258,7 +258,7 @@ public void Energy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Energy", quantityInfo.Name); Assert.Equal(QuantityType.Energy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {EnergyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {EnergyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs index 64a0b5b1a0..1bbb97d10d 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/EntropyTestsBase.g.cs @@ -142,7 +142,7 @@ public void Entropy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Entropy", quantityInfo.Name); Assert.Equal(QuantityType.Entropy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {EntropyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {EntropyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs index e0cfc3ae6c..7bbf82bf7b 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceChangeRateTestsBase.g.cs @@ -174,7 +174,7 @@ public void ForceChangeRate_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ForceChangeRate", quantityInfo.Name); Assert.Equal(QuantityType.ForceChangeRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ForceChangeRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ForceChangeRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs index dbf422a5f1..a6bd0c6100 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ForcePerLengthTestsBase.g.cs @@ -266,7 +266,7 @@ public void ForcePerLength_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ForcePerLength", quantityInfo.Name); Assert.Equal(QuantityType.ForcePerLength, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ForcePerLengthUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ForcePerLengthUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs index 261db84d83..9e06022009 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ForceTestsBase.g.cs @@ -174,7 +174,7 @@ public void Force_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Force", quantityInfo.Name); Assert.Equal(QuantityType.Force, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ForceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ForceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs index 3e7819f9f1..06c8e40283 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/FrequencyTestsBase.g.cs @@ -158,7 +158,7 @@ public void Frequency_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Frequency", quantityInfo.Name); Assert.Equal(QuantityType.Frequency, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {FrequencyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {FrequencyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs index 53874e8573..338d9852c6 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs @@ -130,7 +130,7 @@ public void FuelEfficiency_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("FuelEfficiency", quantityInfo.Name); Assert.Equal(QuantityType.FuelEfficiency, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {FuelEfficiencyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {FuelEfficiencyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs index f2a4284840..6124ec5fce 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatFluxTestsBase.g.cs @@ -186,7 +186,7 @@ public void HeatFlux_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("HeatFlux", quantityInfo.Name); Assert.Equal(QuantityType.HeatFlux, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {HeatFluxUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {HeatFluxUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs index 6a1a3fdf6e..4e5d2f2e24 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs @@ -126,7 +126,7 @@ public void HeatTransferCoefficient_QuantityInfo_ReturnsQuantityInfoDescribingQu Assert.Equal("HeatTransferCoefficient", quantityInfo.Name); Assert.Equal(QuantityType.HeatTransferCoefficient, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {HeatTransferCoefficientUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {HeatTransferCoefficientUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs index 5a6814d80b..f4026d14a4 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/IlluminanceTestsBase.g.cs @@ -130,7 +130,7 @@ public void Illuminance_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Illuminance", quantityInfo.Name); Assert.Equal(QuantityType.Illuminance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {IlluminanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {IlluminanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs index ede07efbbc..43f15e26d7 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/InformationTestsBase.g.cs @@ -206,7 +206,7 @@ public void Information_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Information", quantityInfo.Name); Assert.Equal(QuantityType.Information, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {InformationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {InformationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs index 54af878971..fe98238837 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradianceTestsBase.g.cs @@ -170,7 +170,7 @@ public void Irradiance_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Irradiance", quantityInfo.Name); Assert.Equal(QuantityType.Irradiance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {IrradianceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {IrradianceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs index b306169999..acdd685a7e 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/IrradiationTestsBase.g.cs @@ -142,7 +142,7 @@ public void Irradiation_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Irradiation", quantityInfo.Name); Assert.Equal(QuantityType.Irradiation, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {IrradiationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {IrradiationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs index d525821f70..9c970773cf 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/JerkTestsBase.g.cs @@ -158,7 +158,7 @@ public void Jerk_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Jerk", quantityInfo.Name); Assert.Equal(QuantityType.Jerk, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {JerkUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {JerkUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs index 729c8e088a..06f9b3b4af 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/KinematicViscosityTestsBase.g.cs @@ -150,7 +150,7 @@ public void KinematicViscosity_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("KinematicViscosity", quantityInfo.Name); Assert.Equal(QuantityType.KinematicViscosity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {KinematicViscosityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {KinematicViscosityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LapseRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LapseRateTestsBase.g.cs index d56847ad84..4287330b04 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LapseRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LapseRateTestsBase.g.cs @@ -118,7 +118,7 @@ public void LapseRate_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("LapseRate", quantityInfo.Name); Assert.Equal(QuantityType.LapseRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LapseRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LapseRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs index b32815d7dc..afb40712c9 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LengthTestsBase.g.cs @@ -258,7 +258,7 @@ public void Length_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Length", quantityInfo.Name); Assert.Equal(QuantityType.Length, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LengthUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LengthUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs index 45ed755acd..6b25067172 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LevelTestsBase.g.cs @@ -122,7 +122,7 @@ public void Level_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Level", quantityInfo.Name); Assert.Equal(QuantityType.Level, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LevelUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LevelUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs index 4b34b77c80..a42bcacaee 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearDensityTestsBase.g.cs @@ -170,7 +170,7 @@ public void LinearDensity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("LinearDensity", quantityInfo.Name); Assert.Equal(QuantityType.LinearDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LinearDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LinearDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs index 23f555e0e6..4c286e4725 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LinearPowerDensityTestsBase.g.cs @@ -214,7 +214,7 @@ public void LinearPowerDensity_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("LinearPowerDensity", quantityInfo.Name); Assert.Equal(QuantityType.LinearPowerDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LinearPowerDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LinearPowerDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs index 3759d4a8ad..2aced9ce26 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminosityTestsBase.g.cs @@ -170,7 +170,7 @@ public void Luminosity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Luminosity", quantityInfo.Name); Assert.Equal(QuantityType.Luminosity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LuminosityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LuminosityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs index 2377675169..2c7e85e90f 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousFluxTestsBase.g.cs @@ -118,7 +118,7 @@ public void LuminousFlux_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("LuminousFlux", quantityInfo.Name); Assert.Equal(QuantityType.LuminousFlux, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LuminousFluxUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LuminousFluxUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs index 7d53b988e5..9c6ed471c2 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/LuminousIntensityTestsBase.g.cs @@ -118,7 +118,7 @@ public void LuminousIntensity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity Assert.Equal("LuminousIntensity", quantityInfo.Name); Assert.Equal(QuantityType.LuminousIntensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {LuminousIntensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {LuminousIntensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs index 0d78d67696..c26ab230db 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFieldTestsBase.g.cs @@ -138,7 +138,7 @@ public void MagneticField_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MagneticField", quantityInfo.Name); Assert.Equal(QuantityType.MagneticField, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MagneticFieldUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MagneticFieldUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs index f1b147245f..82ce9bff38 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MagneticFluxTestsBase.g.cs @@ -118,7 +118,7 @@ public void MagneticFlux_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MagneticFlux", quantityInfo.Name); Assert.Equal(QuantityType.MagneticFlux, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MagneticFluxUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MagneticFluxUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs index e428afbd81..80630952b0 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MagnetizationTestsBase.g.cs @@ -118,7 +118,7 @@ public void Magnetization_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Magnetization", quantityInfo.Name); Assert.Equal(QuantityType.Magnetization, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MagnetizationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MagnetizationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs index d0e2f417d5..77ee7195e3 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs @@ -310,7 +310,7 @@ public void MassConcentration_QuantityInfo_ReturnsQuantityInfoDescribingQuantity Assert.Equal("MassConcentration", quantityInfo.Name); Assert.Equal(QuantityType.MassConcentration, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MassConcentrationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MassConcentrationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs index 2f65cf15c9..085a240510 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFlowTestsBase.g.cs @@ -246,7 +246,7 @@ public void MassFlow_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MassFlow", quantityInfo.Name); Assert.Equal(QuantityType.MassFlow, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MassFlowUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MassFlowUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs index d6193fcaeb..77b8130169 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFluxTestsBase.g.cs @@ -162,7 +162,7 @@ public void MassFlux_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MassFlux", quantityInfo.Name); Assert.Equal(QuantityType.MassFlux, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MassFluxUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MassFluxUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs index 21366e7836..99eaaebb96 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassFractionTestsBase.g.cs @@ -210,7 +210,7 @@ public void MassFraction_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MassFraction", quantityInfo.Name); Assert.Equal(QuantityType.MassFraction, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MassFractionUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MassFractionUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs index 439284f0f1..66961c9617 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassMomentOfInertiaTestsBase.g.cs @@ -226,7 +226,7 @@ public void MassMomentOfInertia_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("MassMomentOfInertia", quantityInfo.Name); Assert.Equal(QuantityType.MassMomentOfInertia, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MassMomentOfInertiaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MassMomentOfInertiaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs index 9bc016a848..67142b131f 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassTestsBase.g.cs @@ -214,7 +214,7 @@ public void Mass_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Mass", quantityInfo.Name); Assert.Equal(QuantityType.Mass, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MassUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MassUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs index d7675fa30a..f75aa4b304 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEnergyTestsBase.g.cs @@ -126,7 +126,7 @@ public void MolarEnergy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MolarEnergy", quantityInfo.Name); Assert.Equal(QuantityType.MolarEnergy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MolarEnergyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MolarEnergyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs index 9378a48c9f..fabbcbd6e1 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarEntropyTestsBase.g.cs @@ -126,7 +126,7 @@ public void MolarEntropy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MolarEntropy", quantityInfo.Name); Assert.Equal(QuantityType.MolarEntropy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MolarEntropyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MolarEntropyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs index 7a9a241718..2dc4dd29d6 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarMassTestsBase.g.cs @@ -162,7 +162,7 @@ public void MolarMass_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("MolarMass", quantityInfo.Name); Assert.Equal(QuantityType.MolarMass, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MolarMassUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MolarMassUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs index 23748e4445..e62d5ce72a 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs @@ -166,7 +166,7 @@ public void Molarity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Molarity", quantityInfo.Name); Assert.Equal(QuantityType.Molarity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {MolarityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {MolarityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs index fbf9d70526..0ab82c774f 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PermeabilityTestsBase.g.cs @@ -118,7 +118,7 @@ public void Permeability_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Permeability", quantityInfo.Name); Assert.Equal(QuantityType.Permeability, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PermeabilityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PermeabilityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs index a8f7686b0e..85aea8e6fd 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PermittivityTestsBase.g.cs @@ -118,7 +118,7 @@ public void Permittivity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Permittivity", quantityInfo.Name); Assert.Equal(QuantityType.Permittivity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PermittivityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PermittivityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs index 79eee6bc02..d65b6807d1 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PorousMediumPermeabilityTestsBase.g.cs @@ -134,7 +134,7 @@ public void PorousMediumPermeability_QuantityInfo_ReturnsQuantityInfoDescribingQ Assert.Equal("PorousMediumPermeability", quantityInfo.Name); Assert.Equal(QuantityType.PorousMediumPermeability, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PorousMediumPermeabilityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PorousMediumPermeabilityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs index 6d61a6e1fa..d9a4ef9f43 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerDensityTestsBase.g.cs @@ -290,7 +290,7 @@ public void PowerDensity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("PowerDensity", quantityInfo.Name); Assert.Equal(QuantityType.PowerDensity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PowerDensityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PowerDensityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs index 8d1d4346be..f70124cc0b 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerRatioTestsBase.g.cs @@ -122,7 +122,7 @@ public void PowerRatio_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("PowerRatio", quantityInfo.Name); Assert.Equal(QuantityType.PowerRatio, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PowerRatioUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PowerRatioUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs index cf09ea176e..efc29755c0 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PowerTestsBase.g.cs @@ -206,7 +206,7 @@ public void Power_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Power", quantityInfo.Name); Assert.Equal(QuantityType.Power, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PowerUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PowerUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs index 003c5a7e49..33360bbcfb 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureChangeRateTestsBase.g.cs @@ -170,7 +170,7 @@ public void PressureChangeRate_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("PressureChangeRate", quantityInfo.Name); Assert.Equal(QuantityType.PressureChangeRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PressureChangeRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PressureChangeRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs index 76546e5e1b..b9c0d3aa1d 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/PressureTestsBase.g.cs @@ -302,7 +302,7 @@ public void Pressure_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Pressure", quantityInfo.Name); Assert.Equal(QuantityType.Pressure, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {PressureUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {PressureUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs index a5c01c3c8b..bc722d0651 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioChangeRateTestsBase.g.cs @@ -122,7 +122,7 @@ public void RatioChangeRate_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("RatioChangeRate", quantityInfo.Name); Assert.Equal(QuantityType.RatioChangeRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RatioChangeRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RatioChangeRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs index aed8799f95..82a6562697 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RatioTestsBase.g.cs @@ -138,7 +138,7 @@ public void Ratio_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Ratio", quantityInfo.Name); Assert.Equal(QuantityType.Ratio, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RatioUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RatioUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs index 39b21e0be6..51633b90b0 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactiveEnergyTestsBase.g.cs @@ -126,7 +126,7 @@ public void ReactiveEnergy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ReactiveEnergy", quantityInfo.Name); Assert.Equal(QuantityType.ReactiveEnergy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ReactiveEnergyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ReactiveEnergyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs index b351025a05..7483b81625 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReactivePowerTestsBase.g.cs @@ -130,7 +130,7 @@ public void ReactivePower_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ReactivePower", quantityInfo.Name); Assert.Equal(QuantityType.ReactivePower, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ReactivePowerUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ReactivePowerUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs index ea7f6bcd15..06962d5da0 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalAreaTestsBase.g.cs @@ -158,7 +158,7 @@ public void ReciprocalArea_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("ReciprocalArea", quantityInfo.Name); Assert.Equal(QuantityType.ReciprocalArea, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ReciprocalAreaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ReciprocalAreaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs index a605c6f792..0b44a5e18c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ReciprocalLengthTestsBase.g.cs @@ -154,7 +154,7 @@ public void ReciprocalLength_QuantityInfo_ReturnsQuantityInfoDescribingQuantity( Assert.Equal("ReciprocalLength", quantityInfo.Name); Assert.Equal(QuantityType.ReciprocalLength, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ReciprocalLengthUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ReciprocalLengthUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs index c85b190bf3..9841d050d1 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RelativeHumidityTestsBase.g.cs @@ -118,7 +118,7 @@ public void RelativeHumidity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity( Assert.Equal("RelativeHumidity", quantityInfo.Name); Assert.Equal(QuantityType.RelativeHumidity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RelativeHumidityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RelativeHumidityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs index c13e504b96..5996860bef 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalAccelerationTestsBase.g.cs @@ -130,7 +130,7 @@ public void RotationalAcceleration_QuantityInfo_ReturnsQuantityInfoDescribingQua Assert.Equal("RotationalAcceleration", quantityInfo.Name); Assert.Equal(QuantityType.RotationalAcceleration, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RotationalAccelerationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RotationalAccelerationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs index e3c948003a..23bc2a66fd 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalSpeedTestsBase.g.cs @@ -166,7 +166,7 @@ public void RotationalSpeed_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("RotationalSpeed", quantityInfo.Name); Assert.Equal(QuantityType.RotationalSpeed, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RotationalSpeedUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RotationalSpeedUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs index 761b7e17c2..3766a1189e 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessPerLengthTestsBase.g.cs @@ -134,7 +134,7 @@ public void RotationalStiffnessPerLength_QuantityInfo_ReturnsQuantityInfoDescrib Assert.Equal("RotationalStiffnessPerLength", quantityInfo.Name); Assert.Equal(QuantityType.RotationalStiffnessPerLength, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RotationalStiffnessPerLengthUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RotationalStiffnessPerLengthUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs index c4fecf0e23..7197ae7eaf 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs @@ -246,7 +246,7 @@ public void RotationalStiffness_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("RotationalStiffness", quantityInfo.Name); Assert.Equal(QuantityType.RotationalStiffness, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {RotationalStiffnessUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {RotationalStiffnessUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs index 3b932af9e5..4765c25e9c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ScalarTestsBase.g.cs @@ -118,7 +118,7 @@ public void Scalar_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Scalar", quantityInfo.Name); Assert.Equal(QuantityType.Scalar, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ScalarUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ScalarUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs index bfa9e377c0..9f9cab0365 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SolidAngleTestsBase.g.cs @@ -118,7 +118,7 @@ public void SolidAngle_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("SolidAngle", quantityInfo.Name); Assert.Equal(QuantityType.SolidAngle, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SolidAngleUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SolidAngleUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs index b39dab9099..7aca5c6907 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEnergyTestsBase.g.cs @@ -230,7 +230,7 @@ public void SpecificEnergy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("SpecificEnergy", quantityInfo.Name); Assert.Equal(QuantityType.SpecificEnergy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SpecificEnergyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SpecificEnergyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs index 063d54e36c..fd422985bc 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificEntropyTestsBase.g.cs @@ -150,7 +150,7 @@ public void SpecificEntropy_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("SpecificEntropy", quantityInfo.Name); Assert.Equal(QuantityType.SpecificEntropy, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SpecificEntropyUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SpecificEntropyUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs index 29de4b5541..fc787f88f8 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificFuelConsumptionTestsBase.g.cs @@ -130,7 +130,7 @@ public void SpecificFuelConsumption_QuantityInfo_ReturnsQuantityInfoDescribingQu Assert.Equal("SpecificFuelConsumption", quantityInfo.Name); Assert.Equal(QuantityType.SpecificFuelConsumption, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SpecificFuelConsumptionUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SpecificFuelConsumptionUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs index 98096c623d..6ff10de6de 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificVolumeTestsBase.g.cs @@ -126,7 +126,7 @@ public void SpecificVolume_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("SpecificVolume", quantityInfo.Name); Assert.Equal(QuantityType.SpecificVolume, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SpecificVolumeUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SpecificVolumeUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs index 64cf04b105..642036073d 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpecificWeightTestsBase.g.cs @@ -182,7 +182,7 @@ public void SpecificWeight_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("SpecificWeight", quantityInfo.Name); Assert.Equal(QuantityType.SpecificWeight, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SpecificWeightUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SpecificWeightUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs index 385b529d88..71e2a79eab 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/SpeedTestsBase.g.cs @@ -242,7 +242,7 @@ public void Speed_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Speed", quantityInfo.Name); Assert.Equal(QuantityType.Speed, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {SpeedUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {SpeedUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs index 267d583476..725ca26cc5 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/StandardVolumeFlowTestsBase.g.cs @@ -150,7 +150,7 @@ public void StandardVolumeFlow_QuantityInfo_ReturnsQuantityInfoDescribingQuantit Assert.Equal("StandardVolumeFlow", quantityInfo.Name); Assert.Equal(QuantityType.StandardVolumeFlow, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {StandardVolumeFlowUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {StandardVolumeFlowUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs index f359a076b3..81b4904469 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureChangeRateTestsBase.g.cs @@ -154,7 +154,7 @@ public void TemperatureChangeRate_QuantityInfo_ReturnsQuantityInfoDescribingQuan Assert.Equal("TemperatureChangeRate", quantityInfo.Name); Assert.Equal(QuantityType.TemperatureChangeRate, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureChangeRateUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureChangeRateUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs index 33c0c21b81..8ea4c57609 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureDeltaTestsBase.g.cs @@ -150,7 +150,7 @@ public void TemperatureDelta_QuantityInfo_ReturnsQuantityInfoDescribingQuantity( Assert.Equal("TemperatureDelta", quantityInfo.Name); Assert.Equal(QuantityType.TemperatureDelta, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureDeltaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureDeltaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs index e324bfe0c3..4e27681216 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureGradientTestsBase.g.cs @@ -130,7 +130,7 @@ public void TemperatureGradient_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("TemperatureGradient", quantityInfo.Name); Assert.Equal(QuantityType.TemperatureGradient, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureGradientUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureGradientUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs index 298c6d3dab..924f2dd959 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TemperatureTestsBase.g.cs @@ -154,7 +154,7 @@ public void Temperature_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Temperature", quantityInfo.Name); Assert.Equal(QuantityType.Temperature, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TemperatureUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs index 3c3ab0e172..fba7607cae 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductivityTestsBase.g.cs @@ -122,7 +122,7 @@ public void ThermalConductivity_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("ThermalConductivity", quantityInfo.Name); Assert.Equal(QuantityType.ThermalConductivity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ThermalConductivityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ThermalConductivityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs index cde62069f3..27845ebef2 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/ThermalResistanceTestsBase.g.cs @@ -138,7 +138,7 @@ public void ThermalResistance_QuantityInfo_ReturnsQuantityInfoDescribingQuantity Assert.Equal("ThermalResistance", quantityInfo.Name); Assert.Equal(QuantityType.ThermalResistance, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {ThermalResistanceUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {ThermalResistanceUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs index 0a4c8c41c6..a13b7c7026 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TorquePerLengthTestsBase.g.cs @@ -198,7 +198,7 @@ public void TorquePerLength_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("TorquePerLength", quantityInfo.Name); Assert.Equal(QuantityType.TorquePerLength, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TorquePerLengthUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TorquePerLengthUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs index 1072645f58..c7398ef64c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TorqueTestsBase.g.cs @@ -214,7 +214,7 @@ public void Torque_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Torque", quantityInfo.Name); Assert.Equal(QuantityType.Torque, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TorqueUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TorqueUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs index 75073f3fa0..754a69de6a 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/TurbidityTestsBase.g.cs @@ -118,7 +118,7 @@ public void Turbidity_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Turbidity", quantityInfo.Name); Assert.Equal(QuantityType.Turbidity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {TurbidityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {TurbidityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs index 33604308dc..12dfa6c0b6 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VitaminATestsBase.g.cs @@ -118,7 +118,7 @@ public void VitaminA_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("VitaminA", quantityInfo.Name); Assert.Equal(QuantityType.VitaminA, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VitaminAUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VitaminAUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs index d5c0dc14fe..b103bd23bf 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs @@ -194,7 +194,7 @@ public void VolumeConcentration_QuantityInfo_ReturnsQuantityInfoDescribingQuanti Assert.Equal("VolumeConcentration", quantityInfo.Name); Assert.Equal(QuantityType.VolumeConcentration, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VolumeConcentrationUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VolumeConcentrationUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs index 630443e2d0..355674f1ea 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowPerAreaTestsBase.g.cs @@ -122,7 +122,7 @@ public void VolumeFlowPerArea_QuantityInfo_ReturnsQuantityInfoDescribingQuantity Assert.Equal("VolumeFlowPerArea", quantityInfo.Name); Assert.Equal(QuantityType.VolumeFlowPerArea, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VolumeFlowPerAreaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VolumeFlowPerAreaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs index 879058152a..9b53b5a575 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs @@ -362,7 +362,7 @@ public void VolumeFlow_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("VolumeFlow", quantityInfo.Name); Assert.Equal(QuantityType.VolumeFlow, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VolumeFlowUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VolumeFlowUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs index 6975764cf0..0d2ce3159d 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumePerLengthTestsBase.g.cs @@ -142,7 +142,7 @@ public void VolumePerLength_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("VolumePerLength", quantityInfo.Name); Assert.Equal(QuantityType.VolumePerLength, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VolumePerLengthUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VolumePerLengthUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs index a55794a1dd..8fe857906c 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeTestsBase.g.cs @@ -322,7 +322,7 @@ public void Volume_QuantityInfo_ReturnsQuantityInfoDescribingQuantity() Assert.Equal("Volume", quantityInfo.Name); Assert.Equal(QuantityType.Volume, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VolumeUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VolumeUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs index fdbc5e1fd9..0853117ff1 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumetricHeatCapacityTestsBase.g.cs @@ -150,7 +150,7 @@ public void VolumetricHeatCapacity_QuantityInfo_ReturnsQuantityInfoDescribingQua Assert.Equal("VolumetricHeatCapacity", quantityInfo.Name); Assert.Equal(QuantityType.VolumetricHeatCapacity, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {VolumetricHeatCapacityUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {VolumetricHeatCapacityUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs index a984a7b350..d2fb825e22 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/WarpingMomentOfInertiaTestsBase.g.cs @@ -138,7 +138,7 @@ public void WarpingMomentOfInertia_QuantityInfo_ReturnsQuantityInfoDescribingQua Assert.Equal("WarpingMomentOfInertia", quantityInfo.Name); Assert.Equal(QuantityType.WarpingMomentOfInertia, quantityInfo.QuantityType); - var units = EnumUtils.GetEnumValues().Except(new[] {WarpingMomentOfInertiaUnit.Undefined}).ToArray(); + var units = EnumUtils.GetEnumValues().Except(new[] {WarpingMomentOfInertiaUnit.Undefined}).OrderBy(x => x.ToString()).ToArray(); var unitNames = units.Select(x => x.ToString()); // Obsolete members