From ea9d006a061c7bba7606fedc583cb895ee58bace Mon Sep 17 00:00:00 2001 From: Andreas Gullberg Larsen Date: Mon, 8 Jul 2024 15:00:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=E2=9C=8F=EF=B8=8FChange=20liter=20?= =?UTF-8?q?abbreviations=20to=20lowercase=20l=20(v6)=20(#1404)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1115 Change from `L` to `l` in unit abbreviations for liters, to be consistent in library and to follow SI Unit System conventions. Note: - Parsing is backwards compatible, since parsing unit abbreviations has fallback to case insensitive as long as there is no ambiguity. E.g. `Volume.Parse("10 L")` and `Volume.Parse("10 l")` both work. - To avoid breaking backwards compatibility, we keep `liter` instead of `litre` when naming units. Also updated wiki: https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit#abbreviation-naming-conventions ### Changed units - `Density.GramPerLiter` + prefixes - `FuelEfficiency.LiterPer100Kilometers` - `FuelEfficiency.KilometerPerLiter` - `MassConcentration.GramPerMicroliter` - `MassConcentration.GramPerMilliliter` - `MassConcentration.GramPerDeciliter` - `MassConcentration.GramPerLiter` - `Molarity.MolePerLiter` - `VolumeConcentration.LitersPerLiter` - `VolumeConcentration.LitersPerMililiter` - `VolumeFlow.LiterPerSecond` - `VolumeFlow.LiterPerMinute` - `VolumeFlow.LiterPerHour` - `VolumeFlow.LiterPerDay` --- Common/UnitDefinitions/Density.json | 2 +- Common/UnitDefinitions/FuelEfficiency.json | 4 +- Common/UnitDefinitions/MassConcentration.json | 8 +- Common/UnitDefinitions/Molarity.json | 2 +- .../UnitDefinitions/VolumeConcentration.json | 4 +- Common/UnitDefinitions/VolumeFlow.json | 8 +- .../TestsBase/DensityTestsBase.g.cs | 96 ++--- .../TestsBase/FuelEfficiencyTestsBase.g.cs | 40 +- .../TestsBase/MassConcentrationTestsBase.g.cs | 348 +++++++-------- .../TestsBase/MolarityTestsBase.g.cs | 96 ++--- .../VolumeConcentrationTestsBase.g.cs | 168 ++++---- .../TestsBase/VolumeFlowTestsBase.g.cs | 408 +++++++++--------- .../GeneratedCode/Resources/Density.restext | 16 +- .../Resources/FuelEfficiency.restext | 4 +- .../Resources/MassConcentration.restext | 58 +-- .../GeneratedCode/Resources/Molarity.restext | 16 +- .../Resources/VolumeConcentration.restext | 28 +- .../Resources/VolumeFlow.restext | 80 ++-- 18 files changed, 693 insertions(+), 693 deletions(-) diff --git a/Common/UnitDefinitions/Density.json b/Common/UnitDefinitions/Density.json index c0b6c4997e..df417ef08c 100644 --- a/Common/UnitDefinitions/Density.json +++ b/Common/UnitDefinitions/Density.json @@ -191,7 +191,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "g/L" ] + "Abbreviations": [ "g/l" ] } ] }, diff --git a/Common/UnitDefinitions/FuelEfficiency.json b/Common/UnitDefinitions/FuelEfficiency.json index a32e9cd959..aa9c693d14 100644 --- a/Common/UnitDefinitions/FuelEfficiency.json +++ b/Common/UnitDefinitions/FuelEfficiency.json @@ -11,7 +11,7 @@ "Localization": [{ "Culture": "en-US", "Abbreviations": [ - "L/100km" + "l/100km" ] }] }, @@ -47,7 +47,7 @@ "Localization": [{ "Culture": "en-US", "Abbreviations": [ - "km/L" + "km/l" ] }] } diff --git a/Common/UnitDefinitions/MassConcentration.json b/Common/UnitDefinitions/MassConcentration.json index a8f7d6097c..703c2a0c2a 100644 --- a/Common/UnitDefinitions/MassConcentration.json +++ b/Common/UnitDefinitions/MassConcentration.json @@ -76,7 +76,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "g/μL" ] + "Abbreviations": [ "g/μl" ] } ] }, @@ -93,7 +93,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "g/mL" ] + "Abbreviations": [ "g/ml" ] } ] }, @@ -106,7 +106,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "g/dL" ] + "Abbreviations": [ "g/dl" ] } ] }, @@ -123,7 +123,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "g/L"] + "Abbreviations": [ "g/l"] } ] }, diff --git a/Common/UnitDefinitions/Molarity.json b/Common/UnitDefinitions/Molarity.json index 81a0c605dc..49bba550ef 100644 --- a/Common/UnitDefinitions/Molarity.json +++ b/Common/UnitDefinitions/Molarity.json @@ -38,7 +38,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "mol/L", "M" ] + "Abbreviations": [ "mol/l", "M" ] } ] }, diff --git a/Common/UnitDefinitions/VolumeConcentration.json b/Common/UnitDefinitions/VolumeConcentration.json index d72be50504..f6bb6ba684 100644 --- a/Common/UnitDefinitions/VolumeConcentration.json +++ b/Common/UnitDefinitions/VolumeConcentration.json @@ -25,7 +25,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "L/L" ] + "Abbreviations": [ "l/l" ] } ] }, @@ -38,7 +38,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "L/mL" ] + "Abbreviations": [ "l/ml" ] } ] }, diff --git a/Common/UnitDefinitions/VolumeFlow.json b/Common/UnitDefinitions/VolumeFlow.json index e824e590f4..5abe12f512 100644 --- a/Common/UnitDefinitions/VolumeFlow.json +++ b/Common/UnitDefinitions/VolumeFlow.json @@ -185,7 +185,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "L/s", "LPS" ] + "Abbreviations": [ "l/s", "LPS" ] }, { "Culture": "ru-RU", @@ -202,7 +202,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "L/min", "LPM" ] + "Abbreviations": [ "l/min", "LPM" ] }, { "Culture": "ru-RU", @@ -219,7 +219,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "L/h", "LPH" ] + "Abbreviations": [ "l/h", "LPH" ] }, { "Culture": "ru-RU", @@ -236,7 +236,7 @@ "Localization": [ { "Culture": "en-US", - "Abbreviations": [ "l/day", "L/d", "LPD" ] + "Abbreviations": [ "l/day", "l/d", "LPD" ] } ] }, diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs index e7e3a06fa4..83b92eaa60 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs @@ -739,7 +739,7 @@ public void Parse() try { - var parsed = Density.Parse("1 cg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 cg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentigramsPerLiter, CentigramsPerLiterTolerance); Assert.Equal(DensityUnit.CentigramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -760,7 +760,7 @@ public void Parse() try { - var parsed = Density.Parse("1 dg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 dg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecigramsPerLiter, DecigramsPerLiterTolerance); Assert.Equal(DensityUnit.DecigramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -781,7 +781,7 @@ public void Parse() try { - var parsed = Density.Parse("1 fg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 fg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.FemtogramsPerLiter, FemtogramsPerLiterTolerance); Assert.Equal(DensityUnit.FemtogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -844,7 +844,7 @@ public void Parse() try { - var parsed = Density.Parse("1 g/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 g/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.GramsPerLiter, GramsPerLiterTolerance); Assert.Equal(DensityUnit.GramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -935,7 +935,7 @@ public void Parse() try { - var parsed = Density.Parse("1 µg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 µg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrogramsPerLiter, MicrogramsPerLiterTolerance); Assert.Equal(DensityUnit.MicrogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -970,7 +970,7 @@ public void Parse() try { - var parsed = Density.Parse("1 mg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 mg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MilligramsPerLiter, MilligramsPerLiterTolerance); Assert.Equal(DensityUnit.MilligramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -991,7 +991,7 @@ public void Parse() try { - var parsed = Density.Parse("1 ng/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 ng/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanogramsPerLiter, NanogramsPerLiterTolerance); Assert.Equal(DensityUnit.NanogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1012,7 +1012,7 @@ public void Parse() try { - var parsed = Density.Parse("1 pg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Density.Parse("1 pg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicogramsPerLiter, PicogramsPerLiterTolerance); Assert.Equal(DensityUnit.PicogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1162,7 +1162,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 cg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 cg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentigramsPerLiter, CentigramsPerLiterTolerance); Assert.Equal(DensityUnit.CentigramPerLiter, parsed.Unit); } @@ -1180,7 +1180,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 dg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 dg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecigramsPerLiter, DecigramsPerLiterTolerance); Assert.Equal(DensityUnit.DecigramPerLiter, parsed.Unit); } @@ -1198,7 +1198,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 fg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 fg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.FemtogramsPerLiter, FemtogramsPerLiterTolerance); Assert.Equal(DensityUnit.FemtogramPerLiter, parsed.Unit); } @@ -1252,7 +1252,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 g/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 g/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.GramsPerLiter, GramsPerLiterTolerance); Assert.Equal(DensityUnit.GramPerLiter, parsed.Unit); } @@ -1330,7 +1330,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 µg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 µg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrogramsPerLiter, MicrogramsPerLiterTolerance); Assert.Equal(DensityUnit.MicrogramPerLiter, parsed.Unit); } @@ -1360,7 +1360,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 mg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 mg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MilligramsPerLiter, MilligramsPerLiterTolerance); Assert.Equal(DensityUnit.MilligramPerLiter, parsed.Unit); } @@ -1378,7 +1378,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 ng/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 ng/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanogramsPerLiter, NanogramsPerLiterTolerance); Assert.Equal(DensityUnit.NanogramPerLiter, parsed.Unit); } @@ -1396,7 +1396,7 @@ public void TryParse() } { - Assert.True(Density.TryParse("1 pg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Density.TryParse("1 pg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicogramsPerLiter, PicogramsPerLiterTolerance); Assert.Equal(DensityUnit.PicogramPerLiter, parsed.Unit); } @@ -1528,7 +1528,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("cg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("cg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.CentigramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1546,7 +1546,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("dg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("dg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.DecigramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1564,7 +1564,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("fg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("fg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.FemtogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1618,7 +1618,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("g/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("g/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.GramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1696,7 +1696,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("µg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("µg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.MicrogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1726,7 +1726,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("mg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("mg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.MilligramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1744,7 +1744,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("ng/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("ng/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.NanogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1762,7 +1762,7 @@ public void ParseUnit() try { - var parsedUnit = Density.ParseUnit("pg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Density.ParseUnit("pg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(DensityUnit.PicogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1891,7 +1891,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("cg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("cg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.CentigramPerLiter, parsedUnit); } @@ -1906,7 +1906,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("dg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("dg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.DecigramPerLiter, parsedUnit); } @@ -1921,7 +1921,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("fg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("fg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.FemtogramPerLiter, parsedUnit); } @@ -1966,7 +1966,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("g/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("g/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.GramPerLiter, parsedUnit); } @@ -2031,7 +2031,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("µg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("µg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.MicrogramPerLiter, parsedUnit); } @@ -2056,7 +2056,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("mg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("mg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.MilligramPerLiter, parsedUnit); } @@ -2071,7 +2071,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("ng/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("ng/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.NanogramPerLiter, parsedUnit); } @@ -2086,7 +2086,7 @@ public void TryParseUnit() } { - Assert.True(Density.TryParseUnit("pg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Density.TryParseUnit("pg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(DensityUnit.PicogramPerLiter, parsedUnit); } @@ -2437,13 +2437,13 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); try { Assert.Equal("1 cg/dl", new Density(1, DensityUnit.CentigramPerDeciliter).ToString()); - Assert.Equal("1 cg/L", new Density(1, DensityUnit.CentigramPerLiter).ToString()); + Assert.Equal("1 cg/l", new Density(1, DensityUnit.CentigramPerLiter).ToString()); Assert.Equal("1 cg/ml", new Density(1, DensityUnit.CentigramPerMilliliter).ToString()); Assert.Equal("1 dg/dl", new Density(1, DensityUnit.DecigramPerDeciliter).ToString()); - Assert.Equal("1 dg/L", new Density(1, DensityUnit.DecigramPerLiter).ToString()); + Assert.Equal("1 dg/l", new Density(1, DensityUnit.DecigramPerLiter).ToString()); Assert.Equal("1 dg/ml", new Density(1, DensityUnit.DecigramPerMilliliter).ToString()); Assert.Equal("1 fg/dl", new Density(1, DensityUnit.FemtogramPerDeciliter).ToString()); - Assert.Equal("1 fg/L", new Density(1, DensityUnit.FemtogramPerLiter).ToString()); + Assert.Equal("1 fg/l", new Density(1, DensityUnit.FemtogramPerLiter).ToString()); Assert.Equal("1 fg/ml", new Density(1, DensityUnit.FemtogramPerMilliliter).ToString()); Assert.Equal("1 g/cm³", new Density(1, DensityUnit.GramPerCubicCentimeter).ToString()); Assert.Equal("1 g/ft³", new Density(1, DensityUnit.GramPerCubicFoot).ToString()); @@ -2451,7 +2451,7 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Assert.Equal("1 g/m³", new Density(1, DensityUnit.GramPerCubicMeter).ToString()); Assert.Equal("1 g/mm³", new Density(1, DensityUnit.GramPerCubicMillimeter).ToString()); Assert.Equal("1 g/dl", new Density(1, DensityUnit.GramPerDeciliter).ToString()); - Assert.Equal("1 g/L", new Density(1, DensityUnit.GramPerLiter).ToString()); + Assert.Equal("1 g/l", new Density(1, DensityUnit.GramPerLiter).ToString()); Assert.Equal("1 g/ml", new Density(1, DensityUnit.GramPerMilliliter).ToString()); Assert.Equal("1 kg/cm³", new Density(1, DensityUnit.KilogramPerCubicCentimeter).ToString()); Assert.Equal("1 kg/m³", new Density(1, DensityUnit.KilogramPerCubicMeter).ToString()); @@ -2462,17 +2462,17 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Assert.Equal("1 kip/yd³", new Density(1, DensityUnit.KilopoundPerCubicYard).ToString()); Assert.Equal("1 µg/m³", new Density(1, DensityUnit.MicrogramPerCubicMeter).ToString()); Assert.Equal("1 µg/dl", new Density(1, DensityUnit.MicrogramPerDeciliter).ToString()); - Assert.Equal("1 µg/L", new Density(1, DensityUnit.MicrogramPerLiter).ToString()); + Assert.Equal("1 µg/l", new Density(1, DensityUnit.MicrogramPerLiter).ToString()); Assert.Equal("1 µg/ml", new Density(1, DensityUnit.MicrogramPerMilliliter).ToString()); Assert.Equal("1 mg/m³", new Density(1, DensityUnit.MilligramPerCubicMeter).ToString()); Assert.Equal("1 mg/dl", new Density(1, DensityUnit.MilligramPerDeciliter).ToString()); - Assert.Equal("1 mg/L", new Density(1, DensityUnit.MilligramPerLiter).ToString()); + Assert.Equal("1 mg/l", new Density(1, DensityUnit.MilligramPerLiter).ToString()); Assert.Equal("1 mg/ml", new Density(1, DensityUnit.MilligramPerMilliliter).ToString()); Assert.Equal("1 ng/dl", new Density(1, DensityUnit.NanogramPerDeciliter).ToString()); - Assert.Equal("1 ng/L", new Density(1, DensityUnit.NanogramPerLiter).ToString()); + Assert.Equal("1 ng/l", new Density(1, DensityUnit.NanogramPerLiter).ToString()); Assert.Equal("1 ng/ml", new Density(1, DensityUnit.NanogramPerMilliliter).ToString()); Assert.Equal("1 pg/dl", new Density(1, DensityUnit.PicogramPerDeciliter).ToString()); - Assert.Equal("1 pg/L", new Density(1, DensityUnit.PicogramPerLiter).ToString()); + Assert.Equal("1 pg/l", new Density(1, DensityUnit.PicogramPerLiter).ToString()); Assert.Equal("1 pg/ml", new Density(1, DensityUnit.PicogramPerMilliliter).ToString()); Assert.Equal("1 lb/cm³", new Density(1, DensityUnit.PoundPerCubicCentimeter).ToString()); Assert.Equal("1 lb/ft³", new Density(1, DensityUnit.PoundPerCubicFoot).ToString()); @@ -2506,13 +2506,13 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture var swedishCulture = CultureInfo.GetCultureInfo("sv-SE"); Assert.Equal("1 cg/dl", new Density(1, DensityUnit.CentigramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 cg/L", new Density(1, DensityUnit.CentigramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 cg/l", new Density(1, DensityUnit.CentigramPerLiter).ToString(swedishCulture)); Assert.Equal("1 cg/ml", new Density(1, DensityUnit.CentigramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 dg/dl", new Density(1, DensityUnit.DecigramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 dg/L", new Density(1, DensityUnit.DecigramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 dg/l", new Density(1, DensityUnit.DecigramPerLiter).ToString(swedishCulture)); Assert.Equal("1 dg/ml", new Density(1, DensityUnit.DecigramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 fg/dl", new Density(1, DensityUnit.FemtogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 fg/L", new Density(1, DensityUnit.FemtogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 fg/l", new Density(1, DensityUnit.FemtogramPerLiter).ToString(swedishCulture)); Assert.Equal("1 fg/ml", new Density(1, DensityUnit.FemtogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 g/cm³", new Density(1, DensityUnit.GramPerCubicCentimeter).ToString(swedishCulture)); Assert.Equal("1 g/ft³", new Density(1, DensityUnit.GramPerCubicFoot).ToString(swedishCulture)); @@ -2520,7 +2520,7 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture Assert.Equal("1 g/m³", new Density(1, DensityUnit.GramPerCubicMeter).ToString(swedishCulture)); Assert.Equal("1 g/mm³", new Density(1, DensityUnit.GramPerCubicMillimeter).ToString(swedishCulture)); Assert.Equal("1 g/dl", new Density(1, DensityUnit.GramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 g/L", new Density(1, DensityUnit.GramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 g/l", new Density(1, DensityUnit.GramPerLiter).ToString(swedishCulture)); Assert.Equal("1 g/ml", new Density(1, DensityUnit.GramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 kg/cm³", new Density(1, DensityUnit.KilogramPerCubicCentimeter).ToString(swedishCulture)); Assert.Equal("1 kg/m³", new Density(1, DensityUnit.KilogramPerCubicMeter).ToString(swedishCulture)); @@ -2531,17 +2531,17 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture Assert.Equal("1 kip/yd³", new Density(1, DensityUnit.KilopoundPerCubicYard).ToString(swedishCulture)); Assert.Equal("1 µg/m³", new Density(1, DensityUnit.MicrogramPerCubicMeter).ToString(swedishCulture)); Assert.Equal("1 µg/dl", new Density(1, DensityUnit.MicrogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 µg/L", new Density(1, DensityUnit.MicrogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 µg/l", new Density(1, DensityUnit.MicrogramPerLiter).ToString(swedishCulture)); Assert.Equal("1 µg/ml", new Density(1, DensityUnit.MicrogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 mg/m³", new Density(1, DensityUnit.MilligramPerCubicMeter).ToString(swedishCulture)); Assert.Equal("1 mg/dl", new Density(1, DensityUnit.MilligramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 mg/L", new Density(1, DensityUnit.MilligramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 mg/l", new Density(1, DensityUnit.MilligramPerLiter).ToString(swedishCulture)); Assert.Equal("1 mg/ml", new Density(1, DensityUnit.MilligramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 ng/dl", new Density(1, DensityUnit.NanogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 ng/L", new Density(1, DensityUnit.NanogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 ng/l", new Density(1, DensityUnit.NanogramPerLiter).ToString(swedishCulture)); Assert.Equal("1 ng/ml", new Density(1, DensityUnit.NanogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 pg/dl", new Density(1, DensityUnit.PicogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 pg/L", new Density(1, DensityUnit.PicogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 pg/l", new Density(1, DensityUnit.PicogramPerLiter).ToString(swedishCulture)); Assert.Equal("1 pg/ml", new Density(1, DensityUnit.PicogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 lb/cm³", new Density(1, DensityUnit.PoundPerCubicCentimeter).ToString(swedishCulture)); Assert.Equal("1 lb/ft³", new Density(1, DensityUnit.PoundPerCubicFoot).ToString(swedishCulture)); diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs index 6f5a23ad6e..b3c8b98537 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/FuelEfficiencyTestsBase.g.cs @@ -212,14 +212,14 @@ public void Parse() { try { - var parsed = FuelEfficiency.Parse("1 km/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = FuelEfficiency.Parse("1 km/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.KilometersPerLiter, KilometersPerLiterTolerance); Assert.Equal(FuelEfficiencyUnit.KilometerPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = FuelEfficiency.Parse("1 L/100km", CultureInfo.GetCultureInfo("en-US")); + var parsed = FuelEfficiency.Parse("1 l/100km", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPer100Kilometers, LitersPer100KilometersTolerance); Assert.Equal(FuelEfficiencyUnit.LiterPer100Kilometers, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -244,13 +244,13 @@ public void Parse() public void TryParse() { { - Assert.True(FuelEfficiency.TryParse("1 km/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(FuelEfficiency.TryParse("1 km/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.KilometersPerLiter, KilometersPerLiterTolerance); Assert.Equal(FuelEfficiencyUnit.KilometerPerLiter, parsed.Unit); } { - Assert.True(FuelEfficiency.TryParse("1 L/100km", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(FuelEfficiency.TryParse("1 l/100km", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPer100Kilometers, LitersPer100KilometersTolerance); Assert.Equal(FuelEfficiencyUnit.LiterPer100Kilometers, parsed.Unit); } @@ -274,13 +274,13 @@ public void ParseUnit() { try { - var parsedUnit = FuelEfficiency.ParseUnit("km/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = FuelEfficiency.ParseUnit("km/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(FuelEfficiencyUnit.KilometerPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = FuelEfficiency.ParseUnit("L/100km", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = FuelEfficiency.ParseUnit("l/100km", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(FuelEfficiencyUnit.LiterPer100Kilometers, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -302,12 +302,12 @@ public void ParseUnit() public void TryParseUnit() { { - Assert.True(FuelEfficiency.TryParseUnit("km/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(FuelEfficiency.TryParseUnit("km/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(FuelEfficiencyUnit.KilometerPerLiter, parsedUnit); } { - Assert.True(FuelEfficiency.TryParseUnit("L/100km", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(FuelEfficiency.TryParseUnit("l/100km", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(FuelEfficiencyUnit.LiterPer100Kilometers, parsedUnit); } @@ -520,8 +520,8 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() var prevCulture = Thread.CurrentThread.CurrentCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); try { - Assert.Equal("1 km/L", new FuelEfficiency(1, FuelEfficiencyUnit.KilometerPerLiter).ToString()); - Assert.Equal("1 L/100km", new FuelEfficiency(1, FuelEfficiencyUnit.LiterPer100Kilometers).ToString()); + Assert.Equal("1 km/l", new FuelEfficiency(1, FuelEfficiencyUnit.KilometerPerLiter).ToString()); + Assert.Equal("1 l/100km", new FuelEfficiency(1, FuelEfficiencyUnit.LiterPer100Kilometers).ToString()); Assert.Equal("1 mpg (imp.)", new FuelEfficiency(1, FuelEfficiencyUnit.MilePerUkGallon).ToString()); Assert.Equal("1 mpg (U.S.)", new FuelEfficiency(1, FuelEfficiencyUnit.MilePerUsGallon).ToString()); } @@ -537,8 +537,8 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture // Chose this culture, because we don't currently have any abbreviations mapped for that culture and we expect the en-US to be used as fallback. var swedishCulture = CultureInfo.GetCultureInfo("sv-SE"); - Assert.Equal("1 km/L", new FuelEfficiency(1, FuelEfficiencyUnit.KilometerPerLiter).ToString(swedishCulture)); - Assert.Equal("1 L/100km", new FuelEfficiency(1, FuelEfficiencyUnit.LiterPer100Kilometers).ToString(swedishCulture)); + Assert.Equal("1 km/l", new FuelEfficiency(1, FuelEfficiencyUnit.KilometerPerLiter).ToString(swedishCulture)); + Assert.Equal("1 l/100km", new FuelEfficiency(1, FuelEfficiencyUnit.LiterPer100Kilometers).ToString(swedishCulture)); Assert.Equal("1 mpg (imp.)", new FuelEfficiency(1, FuelEfficiencyUnit.MilePerUkGallon).ToString(swedishCulture)); Assert.Equal("1 mpg (U.S.)", new FuelEfficiency(1, FuelEfficiencyUnit.MilePerUsGallon).ToString(swedishCulture)); } @@ -550,10 +550,10 @@ public void ToString_SFormat_FormatsNumberWithGivenDigitsAfterRadixForCurrentCul try { CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; - Assert.Equal("0.1 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s1")); - Assert.Equal("0.12 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s2")); - Assert.Equal("0.123 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s3")); - Assert.Equal("0.1235 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s4")); + Assert.Equal("0.1 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s1")); + Assert.Equal("0.12 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s2")); + Assert.Equal("0.123 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s3")); + Assert.Equal("0.1235 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s4")); } finally { @@ -565,10 +565,10 @@ public void ToString_SFormat_FormatsNumberWithGivenDigitsAfterRadixForCurrentCul public void ToString_SFormatAndCulture_FormatsNumberWithGivenDigitsAfterRadixForGivenCulture() { var culture = CultureInfo.InvariantCulture; - Assert.Equal("0.1 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s1", culture)); - Assert.Equal("0.12 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s2", culture)); - Assert.Equal("0.123 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s3", culture)); - Assert.Equal("0.1235 L/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s4", culture)); + Assert.Equal("0.1 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s1", culture)); + Assert.Equal("0.12 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s2", culture)); + Assert.Equal("0.123 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s3", culture)); + Assert.Equal("0.1235 l/100km", new FuelEfficiency(0.123456, FuelEfficiencyUnit.LiterPer100Kilometers).ToString("s4", culture)); } [Theory] diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs index f36a2637fc..674853a27b 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MassConcentrationTestsBase.g.cs @@ -662,56 +662,56 @@ public void Parse() { try { - var parsed = MassConcentration.Parse("1 cg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 cg/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentigramsPerDeciliter, CentigramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 cg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 cg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentigramsPerLiter, CentigramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 cg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 cg/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentigramsPerMicroliter, CentigramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 cg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 cg/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentigramsPerMilliliter, CentigramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 dg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 dg/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecigramsPerDeciliter, DecigramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 dg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 dg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecigramsPerLiter, DecigramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 dg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 dg/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecigramsPerMicroliter, DecigramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 dg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 dg/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecigramsPerMilliliter, DecigramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -746,28 +746,28 @@ public void Parse() try { - var parsed = MassConcentration.Parse("1 g/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 g/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.GramsPerDeciliter, GramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.GramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 g/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 g/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.GramsPerLiter, GramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.GramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 g/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 g/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.GramsPerMicroliter, GramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.GramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 g/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 g/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.GramsPerMilliliter, GramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.GramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -802,7 +802,7 @@ public void Parse() try { - var parsed = MassConcentration.Parse("1 kg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 kg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.KilogramsPerLiter, KilogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.KilogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -837,28 +837,28 @@ public void Parse() try { - var parsed = MassConcentration.Parse("1 µg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 µg/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrogramsPerDeciliter, MicrogramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 µg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 µg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrogramsPerLiter, MicrogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 µg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 µg/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrogramsPerMicroliter, MicrogramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 µg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 µg/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrogramsPerMilliliter, MicrogramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -879,56 +879,56 @@ public void Parse() try { - var parsed = MassConcentration.Parse("1 mg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 mg/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MilligramsPerDeciliter, MilligramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 mg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 mg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MilligramsPerLiter, MilligramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 mg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 mg/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MilligramsPerMicroliter, MilligramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 mg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 mg/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MilligramsPerMilliliter, MilligramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 ng/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 ng/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanogramsPerDeciliter, NanogramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 ng/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 ng/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanogramsPerLiter, NanogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 ng/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 ng/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanogramsPerMicroliter, NanogramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 ng/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 ng/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanogramsPerMilliliter, NanogramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -949,28 +949,28 @@ public void Parse() try { - var parsed = MassConcentration.Parse("1 pg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 pg/dl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicogramsPerDeciliter, PicogramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerDeciliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 pg/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 pg/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicogramsPerLiter, PicogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 pg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 pg/μl", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicogramsPerMicroliter, PicogramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerMicroliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = MassConcentration.Parse("1 pg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = MassConcentration.Parse("1 pg/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicogramsPerMilliliter, PicogramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerMilliliter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1037,49 +1037,49 @@ public void Parse() public void TryParse() { { - Assert.True(MassConcentration.TryParse("1 cg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 cg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentigramsPerDeciliter, CentigramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 cg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 cg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentigramsPerLiter, CentigramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 cg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 cg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentigramsPerMicroliter, CentigramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 cg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 cg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentigramsPerMilliliter, CentigramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.CentigramPerMilliliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 dg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 dg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecigramsPerDeciliter, DecigramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 dg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 dg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecigramsPerLiter, DecigramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 dg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 dg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecigramsPerMicroliter, DecigramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 dg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 dg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecigramsPerMilliliter, DecigramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.DecigramPerMilliliter, parsed.Unit); } @@ -1109,25 +1109,25 @@ public void TryParse() } { - Assert.True(MassConcentration.TryParse("1 g/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 g/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.GramsPerDeciliter, GramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.GramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 g/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 g/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.GramsPerLiter, GramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.GramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 g/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 g/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.GramsPerMicroliter, GramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.GramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 g/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 g/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.GramsPerMilliliter, GramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.GramPerMilliliter, parsed.Unit); } @@ -1157,7 +1157,7 @@ public void TryParse() } { - Assert.True(MassConcentration.TryParse("1 kg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 kg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.KilogramsPerLiter, KilogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.KilogramPerLiter, parsed.Unit); } @@ -1187,25 +1187,25 @@ public void TryParse() } { - Assert.True(MassConcentration.TryParse("1 µg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 µg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrogramsPerDeciliter, MicrogramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 µg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 µg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrogramsPerLiter, MicrogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 µg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 µg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrogramsPerMicroliter, MicrogramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 µg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 µg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrogramsPerMilliliter, MicrogramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.MicrogramPerMilliliter, parsed.Unit); } @@ -1223,49 +1223,49 @@ public void TryParse() } { - Assert.True(MassConcentration.TryParse("1 mg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 mg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MilligramsPerDeciliter, MilligramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 mg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 mg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MilligramsPerLiter, MilligramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 mg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 mg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MilligramsPerMicroliter, MilligramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 mg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 mg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MilligramsPerMilliliter, MilligramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.MilligramPerMilliliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 ng/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 ng/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanogramsPerDeciliter, NanogramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 ng/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 ng/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanogramsPerLiter, NanogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 ng/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 ng/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanogramsPerMicroliter, NanogramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 ng/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 ng/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanogramsPerMilliliter, NanogramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.NanogramPerMilliliter, parsed.Unit); } @@ -1283,25 +1283,25 @@ public void TryParse() } { - Assert.True(MassConcentration.TryParse("1 pg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 pg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicogramsPerDeciliter, PicogramsPerDeciliterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerDeciliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 pg/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 pg/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicogramsPerLiter, PicogramsPerLiterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerLiter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 pg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 pg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicogramsPerMicroliter, PicogramsPerMicroliterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerMicroliter, parsed.Unit); } { - Assert.True(MassConcentration.TryParse("1 pg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(MassConcentration.TryParse("1 pg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicogramsPerMilliliter, PicogramsPerMilliliterTolerance); Assert.Equal(MassConcentrationUnit.PicogramPerMilliliter, parsed.Unit); } @@ -1361,49 +1361,49 @@ public void ParseUnit() { try { - var parsedUnit = MassConcentration.ParseUnit("cg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("cg/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.CentigramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("cg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("cg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.CentigramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("cg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("cg/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.CentigramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("cg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("cg/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.CentigramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("dg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("dg/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.DecigramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("dg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("dg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.DecigramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("dg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("dg/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.DecigramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("dg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("dg/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.DecigramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1433,25 +1433,25 @@ public void ParseUnit() try { - var parsedUnit = MassConcentration.ParseUnit("g/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("g/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.GramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("g/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("g/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.GramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("g/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("g/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.GramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("g/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("g/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.GramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1481,7 +1481,7 @@ public void ParseUnit() try { - var parsedUnit = MassConcentration.ParseUnit("kg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("kg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.KilogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1511,25 +1511,25 @@ public void ParseUnit() try { - var parsedUnit = MassConcentration.ParseUnit("µg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("µg/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MicrogramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("µg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("µg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MicrogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("µg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("µg/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MicrogramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("µg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("µg/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MicrogramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1547,49 +1547,49 @@ public void ParseUnit() try { - var parsedUnit = MassConcentration.ParseUnit("mg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("mg/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MilligramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("mg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("mg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MilligramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("mg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("mg/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MilligramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("mg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("mg/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.MilligramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("ng/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("ng/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.NanogramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("ng/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("ng/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.NanogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("ng/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("ng/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.NanogramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("ng/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("ng/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.NanogramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1607,25 +1607,25 @@ public void ParseUnit() try { - var parsedUnit = MassConcentration.ParseUnit("pg/dL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("pg/dl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.PicogramPerDeciliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("pg/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("pg/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.PicogramPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("pg/μL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("pg/μl", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.PicogramPerMicroliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = MassConcentration.ParseUnit("pg/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = MassConcentration.ParseUnit("pg/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MassConcentrationUnit.PicogramPerMilliliter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1683,42 +1683,42 @@ public void ParseUnit() public void TryParseUnit() { { - Assert.True(MassConcentration.TryParseUnit("cg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("cg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.CentigramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("cg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("cg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.CentigramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("cg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("cg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.CentigramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("cg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("cg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.CentigramPerMilliliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("dg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("dg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.DecigramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("dg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("dg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.DecigramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("dg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("dg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.DecigramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("dg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("dg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.DecigramPerMilliliter, parsedUnit); } @@ -1743,22 +1743,22 @@ public void TryParseUnit() } { - Assert.True(MassConcentration.TryParseUnit("g/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("g/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.GramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("g/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("g/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.GramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("g/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("g/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.GramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("g/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("g/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.GramPerMilliliter, parsedUnit); } @@ -1783,7 +1783,7 @@ public void TryParseUnit() } { - Assert.True(MassConcentration.TryParseUnit("kg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("kg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.KilogramPerLiter, parsedUnit); } @@ -1808,22 +1808,22 @@ public void TryParseUnit() } { - Assert.True(MassConcentration.TryParseUnit("µg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("µg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MicrogramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("µg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("µg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MicrogramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("µg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("µg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MicrogramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("µg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("µg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MicrogramPerMilliliter, parsedUnit); } @@ -1838,42 +1838,42 @@ public void TryParseUnit() } { - Assert.True(MassConcentration.TryParseUnit("mg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("mg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MilligramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("mg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("mg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MilligramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("mg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("mg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MilligramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("mg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("mg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.MilligramPerMilliliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("ng/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("ng/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.NanogramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("ng/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("ng/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.NanogramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("ng/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("ng/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.NanogramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("ng/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("ng/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.NanogramPerMilliliter, parsedUnit); } @@ -1888,22 +1888,22 @@ public void TryParseUnit() } { - Assert.True(MassConcentration.TryParseUnit("pg/dL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("pg/dl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.PicogramPerDeciliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("pg/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("pg/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.PicogramPerLiter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("pg/μL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("pg/μl", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.PicogramPerMicroliter, parsedUnit); } { - Assert.True(MassConcentration.TryParseUnit("pg/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(MassConcentration.TryParseUnit("pg/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MassConcentrationUnit.PicogramPerMilliliter, parsedUnit); } @@ -2191,47 +2191,47 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() var prevCulture = Thread.CurrentThread.CurrentCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); try { - Assert.Equal("1 cg/dL", new MassConcentration(1, MassConcentrationUnit.CentigramPerDeciliter).ToString()); - Assert.Equal("1 cg/L", new MassConcentration(1, MassConcentrationUnit.CentigramPerLiter).ToString()); - Assert.Equal("1 cg/μL", new MassConcentration(1, MassConcentrationUnit.CentigramPerMicroliter).ToString()); - Assert.Equal("1 cg/mL", new MassConcentration(1, MassConcentrationUnit.CentigramPerMilliliter).ToString()); - Assert.Equal("1 dg/dL", new MassConcentration(1, MassConcentrationUnit.DecigramPerDeciliter).ToString()); - Assert.Equal("1 dg/L", new MassConcentration(1, MassConcentrationUnit.DecigramPerLiter).ToString()); - Assert.Equal("1 dg/μL", new MassConcentration(1, MassConcentrationUnit.DecigramPerMicroliter).ToString()); - Assert.Equal("1 dg/mL", new MassConcentration(1, MassConcentrationUnit.DecigramPerMilliliter).ToString()); + Assert.Equal("1 cg/dl", new MassConcentration(1, MassConcentrationUnit.CentigramPerDeciliter).ToString()); + Assert.Equal("1 cg/l", new MassConcentration(1, MassConcentrationUnit.CentigramPerLiter).ToString()); + Assert.Equal("1 cg/μl", new MassConcentration(1, MassConcentrationUnit.CentigramPerMicroliter).ToString()); + Assert.Equal("1 cg/ml", new MassConcentration(1, MassConcentrationUnit.CentigramPerMilliliter).ToString()); + Assert.Equal("1 dg/dl", new MassConcentration(1, MassConcentrationUnit.DecigramPerDeciliter).ToString()); + Assert.Equal("1 dg/l", new MassConcentration(1, MassConcentrationUnit.DecigramPerLiter).ToString()); + Assert.Equal("1 dg/μl", new MassConcentration(1, MassConcentrationUnit.DecigramPerMicroliter).ToString()); + Assert.Equal("1 dg/ml", new MassConcentration(1, MassConcentrationUnit.DecigramPerMilliliter).ToString()); Assert.Equal("1 g/cm³", new MassConcentration(1, MassConcentrationUnit.GramPerCubicCentimeter).ToString()); Assert.Equal("1 g/m³", new MassConcentration(1, MassConcentrationUnit.GramPerCubicMeter).ToString()); Assert.Equal("1 g/mm³", new MassConcentration(1, MassConcentrationUnit.GramPerCubicMillimeter).ToString()); - Assert.Equal("1 g/dL", new MassConcentration(1, MassConcentrationUnit.GramPerDeciliter).ToString()); - Assert.Equal("1 g/L", new MassConcentration(1, MassConcentrationUnit.GramPerLiter).ToString()); - Assert.Equal("1 g/μL", new MassConcentration(1, MassConcentrationUnit.GramPerMicroliter).ToString()); - Assert.Equal("1 g/mL", new MassConcentration(1, MassConcentrationUnit.GramPerMilliliter).ToString()); + Assert.Equal("1 g/dl", new MassConcentration(1, MassConcentrationUnit.GramPerDeciliter).ToString()); + Assert.Equal("1 g/l", new MassConcentration(1, MassConcentrationUnit.GramPerLiter).ToString()); + Assert.Equal("1 g/μl", new MassConcentration(1, MassConcentrationUnit.GramPerMicroliter).ToString()); + Assert.Equal("1 g/ml", new MassConcentration(1, MassConcentrationUnit.GramPerMilliliter).ToString()); Assert.Equal("1 kg/cm³", new MassConcentration(1, MassConcentrationUnit.KilogramPerCubicCentimeter).ToString()); Assert.Equal("1 kg/m³", new MassConcentration(1, MassConcentrationUnit.KilogramPerCubicMeter).ToString()); Assert.Equal("1 kg/mm³", new MassConcentration(1, MassConcentrationUnit.KilogramPerCubicMillimeter).ToString()); - Assert.Equal("1 kg/L", new MassConcentration(1, MassConcentrationUnit.KilogramPerLiter).ToString()); + Assert.Equal("1 kg/l", new MassConcentration(1, MassConcentrationUnit.KilogramPerLiter).ToString()); Assert.Equal("1 kip/ft³", new MassConcentration(1, MassConcentrationUnit.KilopoundPerCubicFoot).ToString()); Assert.Equal("1 kip/in³", new MassConcentration(1, MassConcentrationUnit.KilopoundPerCubicInch).ToString()); Assert.Equal("1 µg/m³", new MassConcentration(1, MassConcentrationUnit.MicrogramPerCubicMeter).ToString()); - Assert.Equal("1 µg/dL", new MassConcentration(1, MassConcentrationUnit.MicrogramPerDeciliter).ToString()); - Assert.Equal("1 µg/L", new MassConcentration(1, MassConcentrationUnit.MicrogramPerLiter).ToString()); - Assert.Equal("1 µg/μL", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMicroliter).ToString()); - Assert.Equal("1 µg/mL", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMilliliter).ToString()); + Assert.Equal("1 µg/dl", new MassConcentration(1, MassConcentrationUnit.MicrogramPerDeciliter).ToString()); + Assert.Equal("1 µg/l", new MassConcentration(1, MassConcentrationUnit.MicrogramPerLiter).ToString()); + Assert.Equal("1 µg/μl", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMicroliter).ToString()); + Assert.Equal("1 µg/ml", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMilliliter).ToString()); Assert.Equal("1 mg/m³", new MassConcentration(1, MassConcentrationUnit.MilligramPerCubicMeter).ToString()); - Assert.Equal("1 mg/dL", new MassConcentration(1, MassConcentrationUnit.MilligramPerDeciliter).ToString()); - Assert.Equal("1 mg/L", new MassConcentration(1, MassConcentrationUnit.MilligramPerLiter).ToString()); - Assert.Equal("1 mg/μL", new MassConcentration(1, MassConcentrationUnit.MilligramPerMicroliter).ToString()); - Assert.Equal("1 mg/mL", new MassConcentration(1, MassConcentrationUnit.MilligramPerMilliliter).ToString()); - Assert.Equal("1 ng/dL", new MassConcentration(1, MassConcentrationUnit.NanogramPerDeciliter).ToString()); - Assert.Equal("1 ng/L", new MassConcentration(1, MassConcentrationUnit.NanogramPerLiter).ToString()); - Assert.Equal("1 ng/μL", new MassConcentration(1, MassConcentrationUnit.NanogramPerMicroliter).ToString()); - Assert.Equal("1 ng/mL", new MassConcentration(1, MassConcentrationUnit.NanogramPerMilliliter).ToString()); + Assert.Equal("1 mg/dl", new MassConcentration(1, MassConcentrationUnit.MilligramPerDeciliter).ToString()); + Assert.Equal("1 mg/l", new MassConcentration(1, MassConcentrationUnit.MilligramPerLiter).ToString()); + Assert.Equal("1 mg/μl", new MassConcentration(1, MassConcentrationUnit.MilligramPerMicroliter).ToString()); + Assert.Equal("1 mg/ml", new MassConcentration(1, MassConcentrationUnit.MilligramPerMilliliter).ToString()); + Assert.Equal("1 ng/dl", new MassConcentration(1, MassConcentrationUnit.NanogramPerDeciliter).ToString()); + Assert.Equal("1 ng/l", new MassConcentration(1, MassConcentrationUnit.NanogramPerLiter).ToString()); + Assert.Equal("1 ng/μl", new MassConcentration(1, MassConcentrationUnit.NanogramPerMicroliter).ToString()); + Assert.Equal("1 ng/ml", new MassConcentration(1, MassConcentrationUnit.NanogramPerMilliliter).ToString()); Assert.Equal("1 oz/gal (imp.)", new MassConcentration(1, MassConcentrationUnit.OuncePerImperialGallon).ToString()); Assert.Equal("1 oz/gal (U.S.)", new MassConcentration(1, MassConcentrationUnit.OuncePerUSGallon).ToString()); - Assert.Equal("1 pg/dL", new MassConcentration(1, MassConcentrationUnit.PicogramPerDeciliter).ToString()); - Assert.Equal("1 pg/L", new MassConcentration(1, MassConcentrationUnit.PicogramPerLiter).ToString()); - Assert.Equal("1 pg/μL", new MassConcentration(1, MassConcentrationUnit.PicogramPerMicroliter).ToString()); - Assert.Equal("1 pg/mL", new MassConcentration(1, MassConcentrationUnit.PicogramPerMilliliter).ToString()); + Assert.Equal("1 pg/dl", new MassConcentration(1, MassConcentrationUnit.PicogramPerDeciliter).ToString()); + Assert.Equal("1 pg/l", new MassConcentration(1, MassConcentrationUnit.PicogramPerLiter).ToString()); + Assert.Equal("1 pg/μl", new MassConcentration(1, MassConcentrationUnit.PicogramPerMicroliter).ToString()); + Assert.Equal("1 pg/ml", new MassConcentration(1, MassConcentrationUnit.PicogramPerMilliliter).ToString()); Assert.Equal("1 lb/ft³", new MassConcentration(1, MassConcentrationUnit.PoundPerCubicFoot).ToString()); Assert.Equal("1 lb/in³", new MassConcentration(1, MassConcentrationUnit.PoundPerCubicInch).ToString()); Assert.Equal("1 ppg (imp.)", new MassConcentration(1, MassConcentrationUnit.PoundPerImperialGallon).ToString()); @@ -2253,47 +2253,47 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture // Chose this culture, because we don't currently have any abbreviations mapped for that culture and we expect the en-US to be used as fallback. var swedishCulture = CultureInfo.GetCultureInfo("sv-SE"); - Assert.Equal("1 cg/dL", new MassConcentration(1, MassConcentrationUnit.CentigramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 cg/L", new MassConcentration(1, MassConcentrationUnit.CentigramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 cg/μL", new MassConcentration(1, MassConcentrationUnit.CentigramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 cg/mL", new MassConcentration(1, MassConcentrationUnit.CentigramPerMilliliter).ToString(swedishCulture)); - Assert.Equal("1 dg/dL", new MassConcentration(1, MassConcentrationUnit.DecigramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 dg/L", new MassConcentration(1, MassConcentrationUnit.DecigramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 dg/μL", new MassConcentration(1, MassConcentrationUnit.DecigramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 dg/mL", new MassConcentration(1, MassConcentrationUnit.DecigramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 cg/dl", new MassConcentration(1, MassConcentrationUnit.CentigramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 cg/l", new MassConcentration(1, MassConcentrationUnit.CentigramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 cg/μl", new MassConcentration(1, MassConcentrationUnit.CentigramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 cg/ml", new MassConcentration(1, MassConcentrationUnit.CentigramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 dg/dl", new MassConcentration(1, MassConcentrationUnit.DecigramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 dg/l", new MassConcentration(1, MassConcentrationUnit.DecigramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 dg/μl", new MassConcentration(1, MassConcentrationUnit.DecigramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 dg/ml", new MassConcentration(1, MassConcentrationUnit.DecigramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 g/cm³", new MassConcentration(1, MassConcentrationUnit.GramPerCubicCentimeter).ToString(swedishCulture)); Assert.Equal("1 g/m³", new MassConcentration(1, MassConcentrationUnit.GramPerCubicMeter).ToString(swedishCulture)); Assert.Equal("1 g/mm³", new MassConcentration(1, MassConcentrationUnit.GramPerCubicMillimeter).ToString(swedishCulture)); - Assert.Equal("1 g/dL", new MassConcentration(1, MassConcentrationUnit.GramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 g/L", new MassConcentration(1, MassConcentrationUnit.GramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 g/μL", new MassConcentration(1, MassConcentrationUnit.GramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 g/mL", new MassConcentration(1, MassConcentrationUnit.GramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 g/dl", new MassConcentration(1, MassConcentrationUnit.GramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 g/l", new MassConcentration(1, MassConcentrationUnit.GramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 g/μl", new MassConcentration(1, MassConcentrationUnit.GramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 g/ml", new MassConcentration(1, MassConcentrationUnit.GramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 kg/cm³", new MassConcentration(1, MassConcentrationUnit.KilogramPerCubicCentimeter).ToString(swedishCulture)); Assert.Equal("1 kg/m³", new MassConcentration(1, MassConcentrationUnit.KilogramPerCubicMeter).ToString(swedishCulture)); Assert.Equal("1 kg/mm³", new MassConcentration(1, MassConcentrationUnit.KilogramPerCubicMillimeter).ToString(swedishCulture)); - Assert.Equal("1 kg/L", new MassConcentration(1, MassConcentrationUnit.KilogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 kg/l", new MassConcentration(1, MassConcentrationUnit.KilogramPerLiter).ToString(swedishCulture)); Assert.Equal("1 kip/ft³", new MassConcentration(1, MassConcentrationUnit.KilopoundPerCubicFoot).ToString(swedishCulture)); Assert.Equal("1 kip/in³", new MassConcentration(1, MassConcentrationUnit.KilopoundPerCubicInch).ToString(swedishCulture)); Assert.Equal("1 µg/m³", new MassConcentration(1, MassConcentrationUnit.MicrogramPerCubicMeter).ToString(swedishCulture)); - Assert.Equal("1 µg/dL", new MassConcentration(1, MassConcentrationUnit.MicrogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 µg/L", new MassConcentration(1, MassConcentrationUnit.MicrogramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 µg/μL", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 µg/mL", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 µg/dl", new MassConcentration(1, MassConcentrationUnit.MicrogramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 µg/l", new MassConcentration(1, MassConcentrationUnit.MicrogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 µg/μl", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 µg/ml", new MassConcentration(1, MassConcentrationUnit.MicrogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 mg/m³", new MassConcentration(1, MassConcentrationUnit.MilligramPerCubicMeter).ToString(swedishCulture)); - Assert.Equal("1 mg/dL", new MassConcentration(1, MassConcentrationUnit.MilligramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 mg/L", new MassConcentration(1, MassConcentrationUnit.MilligramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 mg/μL", new MassConcentration(1, MassConcentrationUnit.MilligramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 mg/mL", new MassConcentration(1, MassConcentrationUnit.MilligramPerMilliliter).ToString(swedishCulture)); - Assert.Equal("1 ng/dL", new MassConcentration(1, MassConcentrationUnit.NanogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 ng/L", new MassConcentration(1, MassConcentrationUnit.NanogramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 ng/μL", new MassConcentration(1, MassConcentrationUnit.NanogramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 ng/mL", new MassConcentration(1, MassConcentrationUnit.NanogramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 mg/dl", new MassConcentration(1, MassConcentrationUnit.MilligramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 mg/l", new MassConcentration(1, MassConcentrationUnit.MilligramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 mg/μl", new MassConcentration(1, MassConcentrationUnit.MilligramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 mg/ml", new MassConcentration(1, MassConcentrationUnit.MilligramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 ng/dl", new MassConcentration(1, MassConcentrationUnit.NanogramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 ng/l", new MassConcentration(1, MassConcentrationUnit.NanogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 ng/μl", new MassConcentration(1, MassConcentrationUnit.NanogramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 ng/ml", new MassConcentration(1, MassConcentrationUnit.NanogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 oz/gal (imp.)", new MassConcentration(1, MassConcentrationUnit.OuncePerImperialGallon).ToString(swedishCulture)); Assert.Equal("1 oz/gal (U.S.)", new MassConcentration(1, MassConcentrationUnit.OuncePerUSGallon).ToString(swedishCulture)); - Assert.Equal("1 pg/dL", new MassConcentration(1, MassConcentrationUnit.PicogramPerDeciliter).ToString(swedishCulture)); - Assert.Equal("1 pg/L", new MassConcentration(1, MassConcentrationUnit.PicogramPerLiter).ToString(swedishCulture)); - Assert.Equal("1 pg/μL", new MassConcentration(1, MassConcentrationUnit.PicogramPerMicroliter).ToString(swedishCulture)); - Assert.Equal("1 pg/mL", new MassConcentration(1, MassConcentrationUnit.PicogramPerMilliliter).ToString(swedishCulture)); + Assert.Equal("1 pg/dl", new MassConcentration(1, MassConcentrationUnit.PicogramPerDeciliter).ToString(swedishCulture)); + Assert.Equal("1 pg/l", new MassConcentration(1, MassConcentrationUnit.PicogramPerLiter).ToString(swedishCulture)); + Assert.Equal("1 pg/μl", new MassConcentration(1, MassConcentrationUnit.PicogramPerMicroliter).ToString(swedishCulture)); + Assert.Equal("1 pg/ml", new MassConcentration(1, MassConcentrationUnit.PicogramPerMilliliter).ToString(swedishCulture)); Assert.Equal("1 lb/ft³", new MassConcentration(1, MassConcentrationUnit.PoundPerCubicFoot).ToString(swedishCulture)); Assert.Equal("1 lb/in³", new MassConcentration(1, MassConcentrationUnit.PoundPerCubicInch).ToString(swedishCulture)); Assert.Equal("1 ppg (imp.)", new MassConcentration(1, MassConcentrationUnit.PoundPerImperialGallon).ToString(swedishCulture)); diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs index c87aacc006..2b7397b973 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/MolarityTestsBase.g.cs @@ -282,7 +282,7 @@ public void Parse() { try { - var parsed = Molarity.Parse("1 cmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 cmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentimolesPerLiter, CentimolesPerLiterTolerance); Assert.Equal(MolarityUnit.CentimolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -296,7 +296,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 dmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 dmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecimolesPerLiter, DecimolesPerLiterTolerance); Assert.Equal(MolarityUnit.DecimolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -310,7 +310,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 fmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 fmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.FemtomolesPerLiter, FemtomolesPerLiterTolerance); Assert.Equal(MolarityUnit.FemtomolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -331,7 +331,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 µmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 µmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicromolesPerLiter, MicromolesPerLiterTolerance); Assert.Equal(MolarityUnit.MicromolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -345,7 +345,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 mmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 mmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillimolesPerLiter, MillimolesPerLiterTolerance); Assert.Equal(MolarityUnit.MillimolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -366,7 +366,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 mol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 mol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MolesPerLiter, MolesPerLiterTolerance); Assert.Equal(MolarityUnit.MolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -380,7 +380,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 nmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 nmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanomolesPerLiter, NanomolesPerLiterTolerance); Assert.Equal(MolarityUnit.NanomolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -394,7 +394,7 @@ public void Parse() try { - var parsed = Molarity.Parse("1 pmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = Molarity.Parse("1 pmol/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicomolesPerLiter, PicomolesPerLiterTolerance); Assert.Equal(MolarityUnit.PicomolePerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -419,7 +419,7 @@ public void Parse() public void TryParse() { { - Assert.True(Molarity.TryParse("1 cmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 cmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentimolesPerLiter, CentimolesPerLiterTolerance); Assert.Equal(MolarityUnit.CentimolePerLiter, parsed.Unit); } @@ -431,7 +431,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 dmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 dmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecimolesPerLiter, DecimolesPerLiterTolerance); Assert.Equal(MolarityUnit.DecimolePerLiter, parsed.Unit); } @@ -443,7 +443,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 fmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 fmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.FemtomolesPerLiter, FemtomolesPerLiterTolerance); Assert.Equal(MolarityUnit.FemtomolePerLiter, parsed.Unit); } @@ -461,7 +461,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 µmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 µmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicromolesPerLiter, MicromolesPerLiterTolerance); Assert.Equal(MolarityUnit.MicromolePerLiter, parsed.Unit); } @@ -473,7 +473,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 mmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 mmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MillimolesPerLiter, MillimolesPerLiterTolerance); Assert.Equal(MolarityUnit.MillimolePerLiter, parsed.Unit); } @@ -491,7 +491,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 mol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 mol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MolesPerLiter, MolesPerLiterTolerance); Assert.Equal(MolarityUnit.MolePerLiter, parsed.Unit); } @@ -503,7 +503,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 nmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 nmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanomolesPerLiter, NanomolesPerLiterTolerance); Assert.Equal(MolarityUnit.NanomolePerLiter, parsed.Unit); } @@ -515,7 +515,7 @@ public void TryParse() } { - Assert.True(Molarity.TryParse("1 pmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(Molarity.TryParse("1 pmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicomolesPerLiter, PicomolesPerLiterTolerance); Assert.Equal(MolarityUnit.PicomolePerLiter, parsed.Unit); } @@ -539,7 +539,7 @@ public void ParseUnit() { try { - var parsedUnit = Molarity.ParseUnit("cmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("cmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.CentimolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -551,7 +551,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("dmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("dmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.DecimolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -563,7 +563,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("fmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("fmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.FemtomolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -581,7 +581,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("µmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("µmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.MicromolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -593,7 +593,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("mmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("mmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.MillimolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -611,7 +611,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("mol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("mol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.MolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -623,7 +623,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("nmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("nmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.NanomolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -635,7 +635,7 @@ public void ParseUnit() try { - var parsedUnit = Molarity.ParseUnit("pmol/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = Molarity.ParseUnit("pmol/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(MolarityUnit.PicomolePerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -657,7 +657,7 @@ public void ParseUnit() public void TryParseUnit() { { - Assert.True(Molarity.TryParseUnit("cmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("cmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.CentimolePerLiter, parsedUnit); } @@ -667,7 +667,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("dmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("dmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.DecimolePerLiter, parsedUnit); } @@ -677,7 +677,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("fmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("fmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.FemtomolePerLiter, parsedUnit); } @@ -692,7 +692,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("µmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("µmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.MicromolePerLiter, parsedUnit); } @@ -702,7 +702,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("mmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("mmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.MillimolePerLiter, parsedUnit); } @@ -717,7 +717,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("mol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("mol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.MolePerLiter, parsedUnit); } @@ -727,7 +727,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("nmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("nmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.NanomolePerLiter, parsedUnit); } @@ -737,7 +737,7 @@ public void TryParseUnit() } { - Assert.True(Molarity.TryParseUnit("pmol/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(Molarity.TryParseUnit("pmol/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(MolarityUnit.PicomolePerLiter, parsedUnit); } @@ -957,16 +957,16 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() var prevCulture = Thread.CurrentThread.CurrentCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); try { - Assert.Equal("1 cmol/L", new Molarity(1, MolarityUnit.CentimolePerLiter).ToString()); - Assert.Equal("1 dmol/L", new Molarity(1, MolarityUnit.DecimolePerLiter).ToString()); - Assert.Equal("1 fmol/L", new Molarity(1, MolarityUnit.FemtomolePerLiter).ToString()); + Assert.Equal("1 cmol/l", new Molarity(1, MolarityUnit.CentimolePerLiter).ToString()); + Assert.Equal("1 dmol/l", new Molarity(1, MolarityUnit.DecimolePerLiter).ToString()); + Assert.Equal("1 fmol/l", new Molarity(1, MolarityUnit.FemtomolePerLiter).ToString()); Assert.Equal("1 kmol/m³", new Molarity(1, MolarityUnit.KilomolePerCubicMeter).ToString()); - Assert.Equal("1 µmol/L", new Molarity(1, MolarityUnit.MicromolePerLiter).ToString()); - Assert.Equal("1 mmol/L", new Molarity(1, MolarityUnit.MillimolePerLiter).ToString()); + Assert.Equal("1 µmol/l", new Molarity(1, MolarityUnit.MicromolePerLiter).ToString()); + Assert.Equal("1 mmol/l", new Molarity(1, MolarityUnit.MillimolePerLiter).ToString()); Assert.Equal("1 mol/m³", new Molarity(1, MolarityUnit.MolePerCubicMeter).ToString()); - Assert.Equal("1 mol/L", new Molarity(1, MolarityUnit.MolePerLiter).ToString()); - Assert.Equal("1 nmol/L", new Molarity(1, MolarityUnit.NanomolePerLiter).ToString()); - Assert.Equal("1 pmol/L", new Molarity(1, MolarityUnit.PicomolePerLiter).ToString()); + Assert.Equal("1 mol/l", new Molarity(1, MolarityUnit.MolePerLiter).ToString()); + Assert.Equal("1 nmol/l", new Molarity(1, MolarityUnit.NanomolePerLiter).ToString()); + Assert.Equal("1 pmol/l", new Molarity(1, MolarityUnit.PicomolePerLiter).ToString()); Assert.Equal("1 lbmol/ft³", new Molarity(1, MolarityUnit.PoundMolePerCubicFoot).ToString()); } finally @@ -981,16 +981,16 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture // Chose this culture, because we don't currently have any abbreviations mapped for that culture and we expect the en-US to be used as fallback. var swedishCulture = CultureInfo.GetCultureInfo("sv-SE"); - Assert.Equal("1 cmol/L", new Molarity(1, MolarityUnit.CentimolePerLiter).ToString(swedishCulture)); - Assert.Equal("1 dmol/L", new Molarity(1, MolarityUnit.DecimolePerLiter).ToString(swedishCulture)); - Assert.Equal("1 fmol/L", new Molarity(1, MolarityUnit.FemtomolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 cmol/l", new Molarity(1, MolarityUnit.CentimolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 dmol/l", new Molarity(1, MolarityUnit.DecimolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 fmol/l", new Molarity(1, MolarityUnit.FemtomolePerLiter).ToString(swedishCulture)); Assert.Equal("1 kmol/m³", new Molarity(1, MolarityUnit.KilomolePerCubicMeter).ToString(swedishCulture)); - Assert.Equal("1 µmol/L", new Molarity(1, MolarityUnit.MicromolePerLiter).ToString(swedishCulture)); - Assert.Equal("1 mmol/L", new Molarity(1, MolarityUnit.MillimolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 µmol/l", new Molarity(1, MolarityUnit.MicromolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 mmol/l", new Molarity(1, MolarityUnit.MillimolePerLiter).ToString(swedishCulture)); Assert.Equal("1 mol/m³", new Molarity(1, MolarityUnit.MolePerCubicMeter).ToString(swedishCulture)); - Assert.Equal("1 mol/L", new Molarity(1, MolarityUnit.MolePerLiter).ToString(swedishCulture)); - Assert.Equal("1 nmol/L", new Molarity(1, MolarityUnit.NanomolePerLiter).ToString(swedishCulture)); - Assert.Equal("1 pmol/L", new Molarity(1, MolarityUnit.PicomolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 mol/l", new Molarity(1, MolarityUnit.MolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 nmol/l", new Molarity(1, MolarityUnit.NanomolePerLiter).ToString(swedishCulture)); + Assert.Equal("1 pmol/l", new Molarity(1, MolarityUnit.PicomolePerLiter).ToString(swedishCulture)); Assert.Equal("1 lbmol/ft³", new Molarity(1, MolarityUnit.PoundMolePerCubicFoot).ToString(swedishCulture)); } diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs index 887809dba8..a792a6fa20 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeConcentrationTestsBase.g.cs @@ -372,28 +372,28 @@ public void Parse() { try { - var parsed = VolumeConcentration.Parse("1 cL/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 cl/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentilitersPerLiter, CentilitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.CentilitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 cL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 cl/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentilitersPerMililiter, CentilitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.CentilitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 dL/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 dl/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecilitersPerLiter, DecilitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.DecilitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 dL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 dl/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecilitersPerMililiter, DecilitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.DecilitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -407,56 +407,56 @@ public void Parse() try { - var parsed = VolumeConcentration.Parse("1 L/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 l/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPerLiter, LitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.LitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 L/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 l/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPerMililiter, LitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.LitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 µL/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 µl/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrolitersPerLiter, MicrolitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 µL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 µl/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrolitersPerMililiter, MicrolitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 mL/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 ml/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillilitersPerLiter, MillilitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.MillilitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 mL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 ml/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillilitersPerMililiter, MillilitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.MillilitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 nL/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 nl/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanolitersPerLiter, NanolitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.NanolitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 nL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 nl/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanolitersPerMililiter, NanolitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.NanolitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -505,14 +505,14 @@ public void Parse() try { - var parsed = VolumeConcentration.Parse("1 pL/L", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 pl/l", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicolitersPerLiter, PicolitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.PicolitersPerLiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsed = VolumeConcentration.Parse("1 pL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeConcentration.Parse("1 pl/ml", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.PicolitersPerMililiter, PicolitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.PicolitersPerMililiter, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -523,25 +523,25 @@ public void Parse() public void TryParse() { { - Assert.True(VolumeConcentration.TryParse("1 cL/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 cl/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentilitersPerLiter, CentilitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.CentilitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 cL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 cl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentilitersPerMililiter, CentilitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.CentilitersPerMililiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 dL/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 dl/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecilitersPerLiter, DecilitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.DecilitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 dL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 dl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecilitersPerMililiter, DecilitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.DecilitersPerMililiter, parsed.Unit); } @@ -553,49 +553,49 @@ public void TryParse() } { - Assert.True(VolumeConcentration.TryParse("1 L/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 l/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPerLiter, LitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.LitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 L/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 l/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPerMililiter, LitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.LitersPerMililiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 µL/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 µl/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrolitersPerLiter, MicrolitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 µL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 µl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrolitersPerMililiter, MicrolitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerMililiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 mL/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 ml/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MillilitersPerLiter, MillilitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.MillilitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 mL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 ml/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MillilitersPerMililiter, MillilitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.MillilitersPerMililiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 nL/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 nl/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanolitersPerLiter, NanolitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.NanolitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 nL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 nl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanolitersPerMililiter, NanolitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.NanolitersPerMililiter, parsed.Unit); } @@ -637,13 +637,13 @@ public void TryParse() } { - Assert.True(VolumeConcentration.TryParse("1 pL/L", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 pl/l", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicolitersPerLiter, PicolitersPerLiterTolerance); Assert.Equal(VolumeConcentrationUnit.PicolitersPerLiter, parsed.Unit); } { - Assert.True(VolumeConcentration.TryParse("1 pL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeConcentration.TryParse("1 pl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.PicolitersPerMililiter, PicolitersPerMililiterTolerance); Assert.Equal(VolumeConcentrationUnit.PicolitersPerMililiter, parsed.Unit); } @@ -655,25 +655,25 @@ public void ParseUnit() { try { - var parsedUnit = VolumeConcentration.ParseUnit("cL/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("cl/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.CentilitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("cL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("cl/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.CentilitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("dL/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("dl/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.DecilitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("dL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("dl/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.DecilitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -685,49 +685,49 @@ public void ParseUnit() try { - var parsedUnit = VolumeConcentration.ParseUnit("L/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("l/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.LitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("L/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("l/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.LitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("µL/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("µl/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("µL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("µl/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("mL/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("ml/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.MillilitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("mL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("ml/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.MillilitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("nL/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("nl/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.NanolitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("nL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("nl/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.NanolitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -769,13 +769,13 @@ public void ParseUnit() try { - var parsedUnit = VolumeConcentration.ParseUnit("pL/L", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("pl/l", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.PicolitersPerLiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } try { - var parsedUnit = VolumeConcentration.ParseUnit("pL/mL", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeConcentration.ParseUnit("pl/ml", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeConcentrationUnit.PicolitersPerMililiter, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -785,22 +785,22 @@ public void ParseUnit() public void TryParseUnit() { { - Assert.True(VolumeConcentration.TryParseUnit("cL/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("cl/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.CentilitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("cL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("cl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.CentilitersPerMililiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("dL/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("dl/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.DecilitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("dL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("dl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.DecilitersPerMililiter, parsedUnit); } @@ -810,42 +810,42 @@ public void TryParseUnit() } { - Assert.True(VolumeConcentration.TryParseUnit("L/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("l/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.LitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("L/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("l/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.LitersPerMililiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("µL/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("µl/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("µL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("µl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.MicrolitersPerMililiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("mL/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("ml/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.MillilitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("mL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("ml/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.MillilitersPerMililiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("nL/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("nl/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.NanolitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("nL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("nl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.NanolitersPerMililiter, parsedUnit); } @@ -880,12 +880,12 @@ public void TryParseUnit() } { - Assert.True(VolumeConcentration.TryParseUnit("pL/L", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("pl/l", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.PicolitersPerLiter, parsedUnit); } { - Assert.True(VolumeConcentration.TryParseUnit("pL/mL", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeConcentration.TryParseUnit("pl/ml", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeConcentrationUnit.PicolitersPerMililiter, parsedUnit); } @@ -1104,26 +1104,26 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() var prevCulture = Thread.CurrentThread.CurrentCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); try { - Assert.Equal("1 cL/L", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerLiter).ToString()); - Assert.Equal("1 cL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerMililiter).ToString()); - Assert.Equal("1 dL/L", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerLiter).ToString()); - Assert.Equal("1 dL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerMililiter).ToString()); + Assert.Equal("1 cl/l", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerLiter).ToString()); + Assert.Equal("1 cl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerMililiter).ToString()); + Assert.Equal("1 dl/l", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerLiter).ToString()); + Assert.Equal("1 dl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerMililiter).ToString()); Assert.Equal("1", new VolumeConcentration(1, VolumeConcentrationUnit.DecimalFraction).ToString()); - Assert.Equal("1 L/L", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerLiter).ToString()); - Assert.Equal("1 L/mL", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerMililiter).ToString()); - Assert.Equal("1 µL/L", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerLiter).ToString()); - Assert.Equal("1 µL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerMililiter).ToString()); - Assert.Equal("1 mL/L", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerLiter).ToString()); - Assert.Equal("1 mL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerMililiter).ToString()); - Assert.Equal("1 nL/L", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerLiter).ToString()); - Assert.Equal("1 nL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerMililiter).ToString()); + Assert.Equal("1 l/l", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerLiter).ToString()); + Assert.Equal("1 l/ml", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerMililiter).ToString()); + Assert.Equal("1 µl/l", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerLiter).ToString()); + Assert.Equal("1 µl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerMililiter).ToString()); + Assert.Equal("1 ml/l", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerLiter).ToString()); + Assert.Equal("1 ml/ml", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerMililiter).ToString()); + Assert.Equal("1 nl/l", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerLiter).ToString()); + Assert.Equal("1 nl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerMililiter).ToString()); Assert.Equal("1 ppb", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerBillion).ToString()); Assert.Equal("1 ppm", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerMillion).ToString()); Assert.Equal("1 ‰", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerThousand).ToString()); Assert.Equal("1 ppt", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerTrillion).ToString()); Assert.Equal("1 %", new VolumeConcentration(1, VolumeConcentrationUnit.Percent).ToString()); - Assert.Equal("1 pL/L", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerLiter).ToString()); - Assert.Equal("1 pL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerMililiter).ToString()); + Assert.Equal("1 pl/l", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerLiter).ToString()); + Assert.Equal("1 pl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerMililiter).ToString()); } finally { @@ -1137,26 +1137,26 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture // Chose this culture, because we don't currently have any abbreviations mapped for that culture and we expect the en-US to be used as fallback. var swedishCulture = CultureInfo.GetCultureInfo("sv-SE"); - Assert.Equal("1 cL/L", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 cL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerMililiter).ToString(swedishCulture)); - Assert.Equal("1 dL/L", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 dL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 cl/l", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 cl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.CentilitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 dl/l", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 dl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.DecilitersPerMililiter).ToString(swedishCulture)); Assert.Equal("1", new VolumeConcentration(1, VolumeConcentrationUnit.DecimalFraction).ToString(swedishCulture)); - Assert.Equal("1 L/L", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 L/mL", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerMililiter).ToString(swedishCulture)); - Assert.Equal("1 µL/L", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 µL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerMililiter).ToString(swedishCulture)); - Assert.Equal("1 mL/L", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 mL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerMililiter).ToString(swedishCulture)); - Assert.Equal("1 nL/L", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 nL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 l/l", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 l/ml", new VolumeConcentration(1, VolumeConcentrationUnit.LitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 µl/l", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 µl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.MicrolitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 ml/l", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 ml/ml", new VolumeConcentration(1, VolumeConcentrationUnit.MillilitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 nl/l", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 nl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.NanolitersPerMililiter).ToString(swedishCulture)); Assert.Equal("1 ppb", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerBillion).ToString(swedishCulture)); Assert.Equal("1 ppm", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerMillion).ToString(swedishCulture)); Assert.Equal("1 ‰", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerThousand).ToString(swedishCulture)); Assert.Equal("1 ppt", new VolumeConcentration(1, VolumeConcentrationUnit.PartPerTrillion).ToString(swedishCulture)); Assert.Equal("1 %", new VolumeConcentration(1, VolumeConcentrationUnit.Percent).ToString(swedishCulture)); - Assert.Equal("1 pL/L", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerLiter).ToString(swedishCulture)); - Assert.Equal("1 pL/mL", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerMililiter).ToString(swedishCulture)); + Assert.Equal("1 pl/l", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerLiter).ToString(swedishCulture)); + Assert.Equal("1 pl/ml", new VolumeConcentration(1, VolumeConcentrationUnit.PicolitersPerMililiter).ToString(swedishCulture)); } [Fact] diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs index d94058d953..4c6819d2cc 100644 --- a/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs +++ b/UnitsNet.Tests/GeneratedCode/TestsBase/VolumeFlowTestsBase.g.cs @@ -957,7 +957,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 cL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 cl/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentilitersPerDay, CentilitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -971,7 +971,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 cL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 cl/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentilitersPerHour, CentilitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -992,7 +992,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 cL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 cl/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentilitersPerMinute, CentilitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1013,7 +1013,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 cL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 cl/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.CentilitersPerSecond, CentilitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1195,7 +1195,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 daL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dal/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecalitersPerDay, DecalitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1209,7 +1209,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 daL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dal/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecalitersPerHour, DecalitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1230,7 +1230,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 daL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dal/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecalitersPerMinute, DecalitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1251,7 +1251,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 daL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dal/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecalitersPerSecond, DecalitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1279,7 +1279,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 dL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dl/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecilitersPerDay, DecilitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1293,7 +1293,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 dL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dl/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecilitersPerHour, DecilitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1314,7 +1314,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 dL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dl/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecilitersPerMinute, DecilitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1335,7 +1335,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 dL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 dl/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.DecilitersPerSecond, DecilitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1363,7 +1363,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 hL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 hl/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.HectolitersPerDay, HectolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1377,7 +1377,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 hL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 hl/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.HectolitersPerHour, HectolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1398,7 +1398,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 hL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 hl/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.HectolitersPerMinute, HectolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1419,7 +1419,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 hL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 hl/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.HectolitersPerSecond, HectolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1447,7 +1447,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 kL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 kl/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.KilolitersPerDay, KilolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1461,7 +1461,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 kL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 kl/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.KilolitersPerHour, KilolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1482,7 +1482,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 kL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 kl/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.KilolitersPerMinute, KilolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1503,7 +1503,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 kL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 kl/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.KilolitersPerSecond, KilolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1545,7 +1545,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 L/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 l/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPerDay, LitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.LiterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1559,7 +1559,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 L/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 l/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPerHour, LitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.LiterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1580,7 +1580,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 L/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 l/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPerMinute, LitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.LiterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1601,7 +1601,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 L/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 l/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.LitersPerSecond, LitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.LiterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1629,7 +1629,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 ML/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 Ml/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MegalitersPerDay, MegalitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.MegaliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1643,7 +1643,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 ML/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 Ml/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MegalitersPerHour, MegalitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.MegaliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1664,7 +1664,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 ML/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 Ml/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MegalitersPerMinute, MegalitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.MegaliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1685,7 +1685,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 ML/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 Ml/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MegalitersPerSecond, MegalitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.MegaliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1741,7 +1741,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 µL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 µl/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrolitersPerDay, MicrolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1755,7 +1755,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 µL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 µl/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrolitersPerHour, MicrolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1776,7 +1776,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 µL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 µl/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrolitersPerMinute, MicrolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1797,7 +1797,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 µL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 µl/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MicrolitersPerSecond, MicrolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1825,7 +1825,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 mL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 ml/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillilitersPerDay, MillilitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.MilliliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1839,7 +1839,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 mL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 ml/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillilitersPerHour, MillilitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.MilliliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1860,7 +1860,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 mL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 ml/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillilitersPerMinute, MillilitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.MilliliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1881,7 +1881,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 mL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 ml/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.MillilitersPerSecond, MillilitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.MilliliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1916,7 +1916,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 nL/d", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 nl/d", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanolitersPerDay, NanolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerDay, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1930,7 +1930,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 nL/h", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 nl/h", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanolitersPerHour, NanolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerHour, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1951,7 +1951,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 nL/min", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 nl/min", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanolitersPerMinute, NanolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerMinute, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -1972,7 +1972,7 @@ public void Parse() try { - var parsed = VolumeFlow.Parse("1 nL/s", CultureInfo.GetCultureInfo("en-US")); + var parsed = VolumeFlow.Parse("1 nl/s", CultureInfo.GetCultureInfo("en-US")); AssertEx.EqualTolerance(1, parsed.NanolitersPerSecond, NanolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerSecond, parsed.Unit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -2146,7 +2146,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 cL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 cl/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentilitersPerDay, CentilitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerDay, parsed.Unit); } @@ -2158,7 +2158,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 cL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 cl/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentilitersPerHour, CentilitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerHour, parsed.Unit); } @@ -2176,7 +2176,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 cL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 cl/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentilitersPerMinute, CentilitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerMinute, parsed.Unit); } @@ -2194,7 +2194,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 cL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 cl/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.CentilitersPerSecond, CentilitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.CentiliterPerSecond, parsed.Unit); } @@ -2350,7 +2350,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 daL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dal/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecalitersPerDay, DecalitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerDay, parsed.Unit); } @@ -2362,7 +2362,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 daL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dal/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecalitersPerHour, DecalitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerHour, parsed.Unit); } @@ -2380,7 +2380,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 daL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dal/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecalitersPerMinute, DecalitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerMinute, parsed.Unit); } @@ -2398,7 +2398,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 daL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dal/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecalitersPerSecond, DecalitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.DecaliterPerSecond, parsed.Unit); } @@ -2422,7 +2422,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 dL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dl/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecilitersPerDay, DecilitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerDay, parsed.Unit); } @@ -2434,7 +2434,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 dL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dl/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecilitersPerHour, DecilitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerHour, parsed.Unit); } @@ -2452,7 +2452,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 dL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dl/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecilitersPerMinute, DecilitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerMinute, parsed.Unit); } @@ -2470,7 +2470,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 dL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 dl/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.DecilitersPerSecond, DecilitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.DeciliterPerSecond, parsed.Unit); } @@ -2494,7 +2494,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 hL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 hl/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.HectolitersPerDay, HectolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerDay, parsed.Unit); } @@ -2506,7 +2506,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 hL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 hl/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.HectolitersPerHour, HectolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerHour, parsed.Unit); } @@ -2524,7 +2524,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 hL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 hl/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.HectolitersPerMinute, HectolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerMinute, parsed.Unit); } @@ -2542,7 +2542,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 hL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 hl/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.HectolitersPerSecond, HectolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.HectoliterPerSecond, parsed.Unit); } @@ -2566,7 +2566,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 kL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 kl/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.KilolitersPerDay, KilolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerDay, parsed.Unit); } @@ -2578,7 +2578,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 kL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 kl/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.KilolitersPerHour, KilolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerHour, parsed.Unit); } @@ -2596,7 +2596,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 kL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 kl/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.KilolitersPerMinute, KilolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerMinute, parsed.Unit); } @@ -2614,7 +2614,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 kL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 kl/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.KilolitersPerSecond, KilolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.KiloliterPerSecond, parsed.Unit); } @@ -2650,7 +2650,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 L/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 l/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPerDay, LitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.LiterPerDay, parsed.Unit); } @@ -2662,7 +2662,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 L/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 l/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPerHour, LitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.LiterPerHour, parsed.Unit); } @@ -2680,7 +2680,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 L/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 l/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPerMinute, LitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.LiterPerMinute, parsed.Unit); } @@ -2698,7 +2698,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 L/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 l/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.LitersPerSecond, LitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.LiterPerSecond, parsed.Unit); } @@ -2746,7 +2746,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 µL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 µl/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrolitersPerDay, MicrolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerDay, parsed.Unit); } @@ -2758,7 +2758,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 µL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 µl/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrolitersPerHour, MicrolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerHour, parsed.Unit); } @@ -2776,7 +2776,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 µL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 µl/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrolitersPerMinute, MicrolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerMinute, parsed.Unit); } @@ -2794,7 +2794,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 µL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 µl/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.MicrolitersPerSecond, MicrolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.MicroliterPerSecond, parsed.Unit); } @@ -2824,7 +2824,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 nL/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 nl/d", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanolitersPerDay, NanolitersPerDayTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerDay, parsed.Unit); } @@ -2836,7 +2836,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 nL/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 nl/h", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanolitersPerHour, NanolitersPerHourTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerHour, parsed.Unit); } @@ -2854,7 +2854,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 nL/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 nl/min", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanolitersPerMinute, NanolitersPerMinuteTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerMinute, parsed.Unit); } @@ -2872,7 +2872,7 @@ public void TryParse() } { - Assert.True(VolumeFlow.TryParse("1 nL/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); + Assert.True(VolumeFlow.TryParse("1 nl/s", CultureInfo.GetCultureInfo("en-US"), out var parsed)); AssertEx.EqualTolerance(1, parsed.NanolitersPerSecond, NanolitersPerSecondTolerance); Assert.Equal(VolumeFlowUnit.NanoliterPerSecond, parsed.Unit); } @@ -3028,7 +3028,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("cL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("cl/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.CentiliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3040,7 +3040,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("cL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("cl/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.CentiliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3058,7 +3058,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("cL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("cl/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.CentiliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3076,7 +3076,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("cL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("cl/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.CentiliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3232,7 +3232,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("daL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dal/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DecaliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3244,7 +3244,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("daL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dal/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DecaliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3262,7 +3262,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("daL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dal/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DecaliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3280,7 +3280,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("daL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dal/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DecaliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3304,7 +3304,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("dL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dl/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DeciliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3316,7 +3316,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("dL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dl/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DeciliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3334,7 +3334,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("dL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dl/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DeciliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3352,7 +3352,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("dL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("dl/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.DeciliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3376,7 +3376,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("hL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("hl/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.HectoliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3388,7 +3388,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("hL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("hl/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.HectoliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3406,7 +3406,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("hL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("hl/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.HectoliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3424,7 +3424,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("hL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("hl/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.HectoliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3448,7 +3448,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("kL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("kl/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.KiloliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3460,7 +3460,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("kL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("kl/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.KiloliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3478,7 +3478,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("kL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("kl/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.KiloliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3496,7 +3496,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("kL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("kl/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.KiloliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3532,7 +3532,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("L/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("l/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.LiterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3544,7 +3544,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("L/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("l/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.LiterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3562,7 +3562,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("L/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("l/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.LiterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3580,7 +3580,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("L/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("l/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.LiterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3604,7 +3604,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("ML/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("Ml/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MegaliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3616,7 +3616,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("ML/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("Ml/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MegaliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3634,7 +3634,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("ML/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("Ml/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MegaliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3652,7 +3652,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("ML/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("Ml/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MegaliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3700,7 +3700,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("µL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("µl/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MicroliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3712,7 +3712,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("µL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("µl/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MicroliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3730,7 +3730,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("µL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("µl/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MicroliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3748,7 +3748,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("µL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("µl/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MicroliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3772,7 +3772,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("mL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("ml/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MilliliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3784,7 +3784,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("mL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("ml/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MilliliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3802,7 +3802,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("mL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("ml/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MilliliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3820,7 +3820,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("mL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("ml/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.MilliliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3850,7 +3850,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("nL/d", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("nl/d", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.NanoliterPerDay, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3862,7 +3862,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("nL/h", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("nl/h", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.NanoliterPerHour, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3880,7 +3880,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("nL/min", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("nl/min", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.NanoliterPerMinute, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -3898,7 +3898,7 @@ public void ParseUnit() try { - var parsedUnit = VolumeFlow.ParseUnit("nL/s", CultureInfo.GetCultureInfo("en-US")); + var parsedUnit = VolumeFlow.ParseUnit("nl/s", CultureInfo.GetCultureInfo("en-US")); Assert.Equal(VolumeFlowUnit.NanoliterPerSecond, parsedUnit); } catch (AmbiguousUnitParseException) { /* Some units have the same abbreviations */ } @@ -4047,7 +4047,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("cL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("cl/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.CentiliterPerDay, parsedUnit); } @@ -4057,7 +4057,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("cL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("cl/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.CentiliterPerHour, parsedUnit); } @@ -4072,7 +4072,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("cL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("cl/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.CentiliterPerMinute, parsedUnit); } @@ -4087,7 +4087,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("cL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("cl/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.CentiliterPerSecond, parsedUnit); } @@ -4217,7 +4217,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("daL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dal/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DecaliterPerDay, parsedUnit); } @@ -4227,7 +4227,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("daL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dal/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DecaliterPerHour, parsedUnit); } @@ -4242,7 +4242,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("daL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dal/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DecaliterPerMinute, parsedUnit); } @@ -4257,7 +4257,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("daL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dal/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DecaliterPerSecond, parsedUnit); } @@ -4277,7 +4277,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("dL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dl/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DeciliterPerDay, parsedUnit); } @@ -4287,7 +4287,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("dL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dl/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DeciliterPerHour, parsedUnit); } @@ -4302,7 +4302,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("dL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dl/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DeciliterPerMinute, parsedUnit); } @@ -4317,7 +4317,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("dL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("dl/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.DeciliterPerSecond, parsedUnit); } @@ -4337,7 +4337,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("hL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("hl/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.HectoliterPerDay, parsedUnit); } @@ -4347,7 +4347,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("hL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("hl/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.HectoliterPerHour, parsedUnit); } @@ -4362,7 +4362,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("hL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("hl/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.HectoliterPerMinute, parsedUnit); } @@ -4377,7 +4377,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("hL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("hl/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.HectoliterPerSecond, parsedUnit); } @@ -4397,7 +4397,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("kL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("kl/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.KiloliterPerDay, parsedUnit); } @@ -4407,7 +4407,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("kL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("kl/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.KiloliterPerHour, parsedUnit); } @@ -4422,7 +4422,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("kL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("kl/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.KiloliterPerMinute, parsedUnit); } @@ -4437,7 +4437,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("kL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("kl/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.KiloliterPerSecond, parsedUnit); } @@ -4467,7 +4467,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("L/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("l/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.LiterPerDay, parsedUnit); } @@ -4477,7 +4477,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("L/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("l/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.LiterPerHour, parsedUnit); } @@ -4492,7 +4492,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("L/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("l/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.LiterPerMinute, parsedUnit); } @@ -4507,7 +4507,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("L/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("l/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.LiterPerSecond, parsedUnit); } @@ -4547,7 +4547,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("µL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("µl/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.MicroliterPerDay, parsedUnit); } @@ -4557,7 +4557,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("µL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("µl/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.MicroliterPerHour, parsedUnit); } @@ -4572,7 +4572,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("µL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("µl/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.MicroliterPerMinute, parsedUnit); } @@ -4587,7 +4587,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("µL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("µl/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.MicroliterPerSecond, parsedUnit); } @@ -4612,7 +4612,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("nL/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("nl/d", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.NanoliterPerDay, parsedUnit); } @@ -4622,7 +4622,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("nL/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("nl/h", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.NanoliterPerHour, parsedUnit); } @@ -4637,7 +4637,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("nL/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("nl/min", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.NanoliterPerMinute, parsedUnit); } @@ -4652,7 +4652,7 @@ public void TryParseUnit() } { - Assert.True(VolumeFlow.TryParseUnit("nL/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); + Assert.True(VolumeFlow.TryParseUnit("nl/s", CultureInfo.GetCultureInfo("en-US"), out var parsedUnit)); Assert.Equal(VolumeFlowUnit.NanoliterPerSecond, parsedUnit); } @@ -5026,9 +5026,9 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Assert.Equal("1 af/m", new VolumeFlow(1, VolumeFlowUnit.AcreFootPerMinute).ToString()); Assert.Equal("1 af/s", new VolumeFlow(1, VolumeFlowUnit.AcreFootPerSecond).ToString()); Assert.Equal("1 cl/day", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerDay).ToString()); - Assert.Equal("1 cL/h", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerHour).ToString()); - Assert.Equal("1 cL/min", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerMinute).ToString()); - Assert.Equal("1 cL/s", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerSecond).ToString()); + Assert.Equal("1 cl/h", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerHour).ToString()); + Assert.Equal("1 cl/min", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerMinute).ToString()); + Assert.Equal("1 cl/s", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerSecond).ToString()); Assert.Equal("1 cm³/min", new VolumeFlow(1, VolumeFlowUnit.CubicCentimeterPerMinute).ToString()); Assert.Equal("1 dm³/min", new VolumeFlow(1, VolumeFlowUnit.CubicDecimeterPerMinute).ToString()); Assert.Equal("1 ft³/h", new VolumeFlow(1, VolumeFlowUnit.CubicFootPerHour).ToString()); @@ -5044,46 +5044,46 @@ public void ToString_ReturnsValueAndUnitAbbreviationInCurrentCulture() Assert.Equal("1 yd³/min", new VolumeFlow(1, VolumeFlowUnit.CubicYardPerMinute).ToString()); Assert.Equal("1 yd³/s", new VolumeFlow(1, VolumeFlowUnit.CubicYardPerSecond).ToString()); Assert.Equal("1 dal/day", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerDay).ToString()); - Assert.Equal("1 daL/h", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerHour).ToString()); - Assert.Equal("1 daL/min", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerMinute).ToString()); - Assert.Equal("1 daL/s", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerSecond).ToString()); + Assert.Equal("1 dal/h", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerHour).ToString()); + Assert.Equal("1 dal/min", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerMinute).ToString()); + Assert.Equal("1 dal/s", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerSecond).ToString()); Assert.Equal("1 dl/day", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerDay).ToString()); - Assert.Equal("1 dL/h", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerHour).ToString()); - Assert.Equal("1 dL/min", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerMinute).ToString()); - Assert.Equal("1 dL/s", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerSecond).ToString()); + Assert.Equal("1 dl/h", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerHour).ToString()); + Assert.Equal("1 dl/min", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerMinute).ToString()); + Assert.Equal("1 dl/s", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerSecond).ToString()); Assert.Equal("1 hl/day", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerDay).ToString()); - Assert.Equal("1 hL/h", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerHour).ToString()); - Assert.Equal("1 hL/min", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerMinute).ToString()); - Assert.Equal("1 hL/s", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerSecond).ToString()); + Assert.Equal("1 hl/h", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerHour).ToString()); + Assert.Equal("1 hl/min", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerMinute).ToString()); + Assert.Equal("1 hl/s", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerSecond).ToString()); Assert.Equal("1 kl/day", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerDay).ToString()); - Assert.Equal("1 kL/h", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerHour).ToString()); - Assert.Equal("1 kL/min", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerMinute).ToString()); - Assert.Equal("1 kL/s", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerSecond).ToString()); + Assert.Equal("1 kl/h", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerHour).ToString()); + Assert.Equal("1 kl/min", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerMinute).ToString()); + Assert.Equal("1 kl/s", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerSecond).ToString()); Assert.Equal("1 kgal (U.S.)/min", new VolumeFlow(1, VolumeFlowUnit.KilousGallonPerMinute).ToString()); Assert.Equal("1 l/day", new VolumeFlow(1, VolumeFlowUnit.LiterPerDay).ToString()); - Assert.Equal("1 L/h", new VolumeFlow(1, VolumeFlowUnit.LiterPerHour).ToString()); - Assert.Equal("1 L/min", new VolumeFlow(1, VolumeFlowUnit.LiterPerMinute).ToString()); - Assert.Equal("1 L/s", new VolumeFlow(1, VolumeFlowUnit.LiterPerSecond).ToString()); + Assert.Equal("1 l/h", new VolumeFlow(1, VolumeFlowUnit.LiterPerHour).ToString()); + Assert.Equal("1 l/min", new VolumeFlow(1, VolumeFlowUnit.LiterPerMinute).ToString()); + Assert.Equal("1 l/s", new VolumeFlow(1, VolumeFlowUnit.LiterPerSecond).ToString()); Assert.Equal("1 Ml/day", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerDay).ToString()); - Assert.Equal("1 ML/h", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerHour).ToString()); - Assert.Equal("1 ML/min", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerMinute).ToString()); - Assert.Equal("1 ML/s", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerSecond).ToString()); + Assert.Equal("1 Ml/h", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerHour).ToString()); + Assert.Equal("1 Ml/min", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerMinute).ToString()); + Assert.Equal("1 Ml/s", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerSecond).ToString()); Assert.Equal("1 Mgal (U. K.)/d", new VolumeFlow(1, VolumeFlowUnit.MegaukGallonPerDay).ToString()); Assert.Equal("1 Mgal (imp.)/s", new VolumeFlow(1, VolumeFlowUnit.MegaukGallonPerSecond).ToString()); Assert.Equal("1 Mgpd", new VolumeFlow(1, VolumeFlowUnit.MegausGallonPerDay).ToString()); Assert.Equal("1 µl/day", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerDay).ToString()); - Assert.Equal("1 µL/h", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerHour).ToString()); - Assert.Equal("1 µL/min", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerMinute).ToString()); - Assert.Equal("1 µL/s", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerSecond).ToString()); + Assert.Equal("1 µl/h", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerHour).ToString()); + Assert.Equal("1 µl/min", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerMinute).ToString()); + Assert.Equal("1 µl/s", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerSecond).ToString()); Assert.Equal("1 ml/day", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerDay).ToString()); - Assert.Equal("1 mL/h", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerHour).ToString()); - Assert.Equal("1 mL/min", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerMinute).ToString()); - Assert.Equal("1 mL/s", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerSecond).ToString()); + Assert.Equal("1 ml/h", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerHour).ToString()); + Assert.Equal("1 ml/min", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerMinute).ToString()); + Assert.Equal("1 ml/s", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerSecond).ToString()); Assert.Equal("1 MGD", new VolumeFlow(1, VolumeFlowUnit.MillionUsGallonPerDay).ToString()); Assert.Equal("1 nl/day", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerDay).ToString()); - Assert.Equal("1 nL/h", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerHour).ToString()); - Assert.Equal("1 nL/min", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerMinute).ToString()); - Assert.Equal("1 nL/s", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerSecond).ToString()); + Assert.Equal("1 nl/h", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerHour).ToString()); + Assert.Equal("1 nl/min", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerMinute).ToString()); + Assert.Equal("1 nl/s", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerSecond).ToString()); Assert.Equal("1 bbl/d", new VolumeFlow(1, VolumeFlowUnit.OilBarrelPerDay).ToString()); Assert.Equal("1 bbl/hr", new VolumeFlow(1, VolumeFlowUnit.OilBarrelPerHour).ToString()); Assert.Equal("1 bbl/min", new VolumeFlow(1, VolumeFlowUnit.OilBarrelPerMinute).ToString()); @@ -5114,9 +5114,9 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture Assert.Equal("1 af/m", new VolumeFlow(1, VolumeFlowUnit.AcreFootPerMinute).ToString(swedishCulture)); Assert.Equal("1 af/s", new VolumeFlow(1, VolumeFlowUnit.AcreFootPerSecond).ToString(swedishCulture)); Assert.Equal("1 cl/day", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 cL/h", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 cL/min", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 cL/s", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 cl/h", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 cl/min", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 cl/s", new VolumeFlow(1, VolumeFlowUnit.CentiliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 cm³/min", new VolumeFlow(1, VolumeFlowUnit.CubicCentimeterPerMinute).ToString(swedishCulture)); Assert.Equal("1 dm³/min", new VolumeFlow(1, VolumeFlowUnit.CubicDecimeterPerMinute).ToString(swedishCulture)); Assert.Equal("1 ft³/h", new VolumeFlow(1, VolumeFlowUnit.CubicFootPerHour).ToString(swedishCulture)); @@ -5132,46 +5132,46 @@ public void ToString_WithSwedishCulture_ReturnsUnitAbbreviationForEnglishCulture Assert.Equal("1 yd³/min", new VolumeFlow(1, VolumeFlowUnit.CubicYardPerMinute).ToString(swedishCulture)); Assert.Equal("1 yd³/s", new VolumeFlow(1, VolumeFlowUnit.CubicYardPerSecond).ToString(swedishCulture)); Assert.Equal("1 dal/day", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 daL/h", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 daL/min", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 daL/s", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 dal/h", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 dal/min", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 dal/s", new VolumeFlow(1, VolumeFlowUnit.DecaliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 dl/day", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 dL/h", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 dL/min", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 dL/s", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 dl/h", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 dl/min", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 dl/s", new VolumeFlow(1, VolumeFlowUnit.DeciliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 hl/day", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 hL/h", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 hL/min", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 hL/s", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 hl/h", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 hl/min", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 hl/s", new VolumeFlow(1, VolumeFlowUnit.HectoliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 kl/day", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 kL/h", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 kL/min", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 kL/s", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 kl/h", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 kl/min", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 kl/s", new VolumeFlow(1, VolumeFlowUnit.KiloliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 kgal (U.S.)/min", new VolumeFlow(1, VolumeFlowUnit.KilousGallonPerMinute).ToString(swedishCulture)); Assert.Equal("1 l/day", new VolumeFlow(1, VolumeFlowUnit.LiterPerDay).ToString(swedishCulture)); - Assert.Equal("1 L/h", new VolumeFlow(1, VolumeFlowUnit.LiterPerHour).ToString(swedishCulture)); - Assert.Equal("1 L/min", new VolumeFlow(1, VolumeFlowUnit.LiterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 L/s", new VolumeFlow(1, VolumeFlowUnit.LiterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 l/h", new VolumeFlow(1, VolumeFlowUnit.LiterPerHour).ToString(swedishCulture)); + Assert.Equal("1 l/min", new VolumeFlow(1, VolumeFlowUnit.LiterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 l/s", new VolumeFlow(1, VolumeFlowUnit.LiterPerSecond).ToString(swedishCulture)); Assert.Equal("1 Ml/day", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 ML/h", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 ML/min", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 ML/s", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 Ml/h", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 Ml/min", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 Ml/s", new VolumeFlow(1, VolumeFlowUnit.MegaliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 Mgal (U. K.)/d", new VolumeFlow(1, VolumeFlowUnit.MegaukGallonPerDay).ToString(swedishCulture)); Assert.Equal("1 Mgal (imp.)/s", new VolumeFlow(1, VolumeFlowUnit.MegaukGallonPerSecond).ToString(swedishCulture)); Assert.Equal("1 Mgpd", new VolumeFlow(1, VolumeFlowUnit.MegausGallonPerDay).ToString(swedishCulture)); Assert.Equal("1 µl/day", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 µL/h", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 µL/min", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 µL/s", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 µl/h", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 µl/min", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 µl/s", new VolumeFlow(1, VolumeFlowUnit.MicroliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 ml/day", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 mL/h", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 mL/min", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 mL/s", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 ml/h", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 ml/min", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 ml/s", new VolumeFlow(1, VolumeFlowUnit.MilliliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 MGD", new VolumeFlow(1, VolumeFlowUnit.MillionUsGallonPerDay).ToString(swedishCulture)); Assert.Equal("1 nl/day", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerDay).ToString(swedishCulture)); - Assert.Equal("1 nL/h", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerHour).ToString(swedishCulture)); - Assert.Equal("1 nL/min", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerMinute).ToString(swedishCulture)); - Assert.Equal("1 nL/s", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerSecond).ToString(swedishCulture)); + Assert.Equal("1 nl/h", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerHour).ToString(swedishCulture)); + Assert.Equal("1 nl/min", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerMinute).ToString(swedishCulture)); + Assert.Equal("1 nl/s", new VolumeFlow(1, VolumeFlowUnit.NanoliterPerSecond).ToString(swedishCulture)); Assert.Equal("1 bbl/d", new VolumeFlow(1, VolumeFlowUnit.OilBarrelPerDay).ToString(swedishCulture)); Assert.Equal("1 bbl/hr", new VolumeFlow(1, VolumeFlowUnit.OilBarrelPerHour).ToString(swedishCulture)); Assert.Equal("1 bbl/min", new VolumeFlow(1, VolumeFlowUnit.OilBarrelPerMinute).ToString(swedishCulture)); diff --git a/UnitsNet/GeneratedCode/Resources/Density.restext b/UnitsNet/GeneratedCode/Resources/Density.restext index 7e09c13c23..094d79780b 100644 --- a/UnitsNet/GeneratedCode/Resources/Density.restext +++ b/UnitsNet/GeneratedCode/Resources/Density.restext @@ -1,11 +1,11 @@ CentigramsPerDeciliter=cg/dl -CentigramsPerLiter=cg/L +CentigramsPerLiter=cg/l CentigramsPerMilliliter=cg/ml DecigramsPerDeciliter=dg/dl -DecigramsPerLiter=dg/L +DecigramsPerLiter=dg/l DecigramsPerMilliliter=dg/ml FemtogramsPerDeciliter=fg/dl -FemtogramsPerLiter=fg/L +FemtogramsPerLiter=fg/l FemtogramsPerMilliliter=fg/ml GramsPerCubicCentimeter=g/cm³ GramsPerCubicFoot=g/ft³ @@ -13,7 +13,7 @@ GramsPerCubicInch=g/in³ GramsPerCubicMeter=g/m³ GramsPerCubicMillimeter=g/mm³ GramsPerDeciliter=g/dl -GramsPerLiter=g/L +GramsPerLiter=g/l GramsPerMilliliter=g/ml KilogramsPerCubicCentimeter=kg/cm³ KilogramsPerCubicMeter=kg/m³ @@ -24,17 +24,17 @@ KilopoundsPerCubicInch=kip/in³ KilopoundsPerCubicYard=kip/yd³ MicrogramsPerCubicMeter=µg/m³ MicrogramsPerDeciliter=µg/dl -MicrogramsPerLiter=µg/L +MicrogramsPerLiter=µg/l MicrogramsPerMilliliter=µg/ml MilligramsPerCubicMeter=mg/m³ MilligramsPerDeciliter=mg/dl -MilligramsPerLiter=mg/L +MilligramsPerLiter=mg/l MilligramsPerMilliliter=mg/ml NanogramsPerDeciliter=ng/dl -NanogramsPerLiter=ng/L +NanogramsPerLiter=ng/l NanogramsPerMilliliter=ng/ml PicogramsPerDeciliter=pg/dl -PicogramsPerLiter=pg/L +PicogramsPerLiter=pg/l PicogramsPerMilliliter=pg/ml PoundsPerCubicCentimeter=lb/cm³ PoundsPerCubicFoot=lb/ft³ diff --git a/UnitsNet/GeneratedCode/Resources/FuelEfficiency.restext b/UnitsNet/GeneratedCode/Resources/FuelEfficiency.restext index 3440466d12..af9fb4fe9d 100644 --- a/UnitsNet/GeneratedCode/Resources/FuelEfficiency.restext +++ b/UnitsNet/GeneratedCode/Resources/FuelEfficiency.restext @@ -1,4 +1,4 @@ -KilometersPerLiter=km/L -LitersPer100Kilometers=L/100km +KilometersPerLiter=km/l +LitersPer100Kilometers=l/100km MilesPerUkGallon=mpg (imp.) MilesPerUsGallon=mpg (U.S.) diff --git a/UnitsNet/GeneratedCode/Resources/MassConcentration.restext b/UnitsNet/GeneratedCode/Resources/MassConcentration.restext index bad8eb5e1d..69e7d21861 100644 --- a/UnitsNet/GeneratedCode/Resources/MassConcentration.restext +++ b/UnitsNet/GeneratedCode/Resources/MassConcentration.restext @@ -1,44 +1,44 @@ -CentigramsPerDeciliter=cg/dL -CentigramsPerLiter=cg/L -CentigramsPerMicroliter=cg/μL -CentigramsPerMilliliter=cg/mL -DecigramsPerDeciliter=dg/dL -DecigramsPerLiter=dg/L -DecigramsPerMicroliter=dg/μL -DecigramsPerMilliliter=dg/mL +CentigramsPerDeciliter=cg/dl +CentigramsPerLiter=cg/l +CentigramsPerMicroliter=cg/μl +CentigramsPerMilliliter=cg/ml +DecigramsPerDeciliter=dg/dl +DecigramsPerLiter=dg/l +DecigramsPerMicroliter=dg/μl +DecigramsPerMilliliter=dg/ml GramsPerCubicCentimeter=g/cm³ GramsPerCubicMeter=g/m³ GramsPerCubicMillimeter=g/mm³ -GramsPerDeciliter=g/dL -GramsPerLiter=g/L -GramsPerMicroliter=g/μL -GramsPerMilliliter=g/mL +GramsPerDeciliter=g/dl +GramsPerLiter=g/l +GramsPerMicroliter=g/μl +GramsPerMilliliter=g/ml KilogramsPerCubicCentimeter=kg/cm³ KilogramsPerCubicMeter=kg/m³ KilogramsPerCubicMillimeter=kg/mm³ -KilogramsPerLiter=kg/L +KilogramsPerLiter=kg/l KilopoundsPerCubicFoot=kip/ft³ KilopoundsPerCubicInch=kip/in³ MicrogramsPerCubicMeter=µg/m³ -MicrogramsPerDeciliter=µg/dL -MicrogramsPerLiter=µg/L -MicrogramsPerMicroliter=µg/μL -MicrogramsPerMilliliter=µg/mL +MicrogramsPerDeciliter=µg/dl +MicrogramsPerLiter=µg/l +MicrogramsPerMicroliter=µg/μl +MicrogramsPerMilliliter=µg/ml MilligramsPerCubicMeter=mg/m³ -MilligramsPerDeciliter=mg/dL -MilligramsPerLiter=mg/L -MilligramsPerMicroliter=mg/μL -MilligramsPerMilliliter=mg/mL -NanogramsPerDeciliter=ng/dL -NanogramsPerLiter=ng/L -NanogramsPerMicroliter=ng/μL -NanogramsPerMilliliter=ng/mL +MilligramsPerDeciliter=mg/dl +MilligramsPerLiter=mg/l +MilligramsPerMicroliter=mg/μl +MilligramsPerMilliliter=mg/ml +NanogramsPerDeciliter=ng/dl +NanogramsPerLiter=ng/l +NanogramsPerMicroliter=ng/μl +NanogramsPerMilliliter=ng/ml OuncesPerImperialGallon=oz/gal (imp.) OuncesPerUSGallon=oz/gal (U.S.) -PicogramsPerDeciliter=pg/dL -PicogramsPerLiter=pg/L -PicogramsPerMicroliter=pg/μL -PicogramsPerMilliliter=pg/mL +PicogramsPerDeciliter=pg/dl +PicogramsPerLiter=pg/l +PicogramsPerMicroliter=pg/μl +PicogramsPerMilliliter=pg/ml PoundsPerCubicFoot=lb/ft³ PoundsPerCubicInch=lb/in³ PoundsPerImperialGallon=ppg (imp.) diff --git a/UnitsNet/GeneratedCode/Resources/Molarity.restext b/UnitsNet/GeneratedCode/Resources/Molarity.restext index 5778892f07..17468a227a 100644 --- a/UnitsNet/GeneratedCode/Resources/Molarity.restext +++ b/UnitsNet/GeneratedCode/Resources/Molarity.restext @@ -1,11 +1,11 @@ -CentimolesPerLiter=cmol/L,cM -DecimolesPerLiter=dmol/L,dM -FemtomolesPerLiter=fmol/L,fM +CentimolesPerLiter=cmol/l,cM +DecimolesPerLiter=dmol/l,dM +FemtomolesPerLiter=fmol/l,fM KilomolesPerCubicMeter=kmol/m³ -MicromolesPerLiter=µmol/L,µM -MillimolesPerLiter=mmol/L,mM +MicromolesPerLiter=µmol/l,µM +MillimolesPerLiter=mmol/l,mM MolesPerCubicMeter=mol/m³ -MolesPerLiter=mol/L,M -NanomolesPerLiter=nmol/L,nM -PicomolesPerLiter=pmol/L,pM +MolesPerLiter=mol/l,M +NanomolesPerLiter=nmol/l,nM +PicomolesPerLiter=pmol/l,pM PoundMolesPerCubicFoot=lbmol/ft³ diff --git a/UnitsNet/GeneratedCode/Resources/VolumeConcentration.restext b/UnitsNet/GeneratedCode/Resources/VolumeConcentration.restext index 98a5569828..fe80fbd983 100644 --- a/UnitsNet/GeneratedCode/Resources/VolumeConcentration.restext +++ b/UnitsNet/GeneratedCode/Resources/VolumeConcentration.restext @@ -1,20 +1,20 @@ -CentilitersPerLiter=cL/L -CentilitersPerMililiter=cL/mL -DecilitersPerLiter=dL/L -DecilitersPerMililiter=dL/mL +CentilitersPerLiter=cl/l +CentilitersPerMililiter=cl/ml +DecilitersPerLiter=dl/l +DecilitersPerMililiter=dl/ml DecimalFractions= -LitersPerLiter=L/L -LitersPerMililiter=L/mL -MicrolitersPerLiter=µL/L -MicrolitersPerMililiter=µL/mL -MillilitersPerLiter=mL/L -MillilitersPerMililiter=mL/mL -NanolitersPerLiter=nL/L -NanolitersPerMililiter=nL/mL +LitersPerLiter=l/l +LitersPerMililiter=l/ml +MicrolitersPerLiter=µl/l +MicrolitersPerMililiter=µl/ml +MillilitersPerLiter=ml/l +MillilitersPerMililiter=ml/ml +NanolitersPerLiter=nl/l +NanolitersPerMililiter=nl/ml PartsPerBillion=ppb PartsPerMillion=ppm PartsPerThousand=‰ PartsPerTrillion=ppt Percent=%,% (v/v) -PicolitersPerLiter=pL/L -PicolitersPerMililiter=pL/mL +PicolitersPerLiter=pl/l +PicolitersPerMililiter=pl/ml diff --git a/UnitsNet/GeneratedCode/Resources/VolumeFlow.restext b/UnitsNet/GeneratedCode/Resources/VolumeFlow.restext index b071b56273..4ee14b6aea 100644 --- a/UnitsNet/GeneratedCode/Resources/VolumeFlow.restext +++ b/UnitsNet/GeneratedCode/Resources/VolumeFlow.restext @@ -2,10 +2,10 @@ AcreFeetPerDay=af/d AcreFeetPerHour=af/h AcreFeetPerMinute=af/m AcreFeetPerSecond=af/s -CentilitersPerDay=cl/day,cL/d,cLPD -CentilitersPerHour=cL/h,cLPH -CentilitersPerMinute=cL/min,cLPM -CentilitersPerSecond=cL/s,cLPS +CentilitersPerDay=cl/day,cl/d,cLPD +CentilitersPerHour=cl/h,cLPH +CentilitersPerMinute=cl/min,cLPM +CentilitersPerSecond=cl/s,cLPS CubicCentimetersPerMinute=cm³/min CubicDecimetersPerMinute=dm³/min CubicFeetPerHour=ft³/h,cf/hr @@ -20,47 +20,47 @@ CubicYardsPerDay=cy/day CubicYardsPerHour=yd³/h CubicYardsPerMinute=yd³/min CubicYardsPerSecond=yd³/s -DecalitersPerDay=dal/day,daL/d,daLPD -DecalitersPerHour=daL/h,daLPH -DecalitersPerMinute=daL/min,daLPM -DecalitersPerSecond=daL/s,daLPS -DecilitersPerDay=dl/day,dL/d,dLPD -DecilitersPerHour=dL/h,dLPH -DecilitersPerMinute=dL/min,dLPM -DecilitersPerSecond=dL/s,dLPS -HectolitersPerDay=hl/day,hL/d,hLPD -HectolitersPerHour=hL/h,hLPH -HectolitersPerMinute=hL/min,hLPM -HectolitersPerSecond=hL/s,hLPS -KilolitersPerDay=kl/day,kL/d,kLPD -KilolitersPerHour=kL/h,kLPH -KilolitersPerMinute=kL/min,kLPM -KilolitersPerSecond=kL/s,kLPS +DecalitersPerDay=dal/day,dal/d,daLPD +DecalitersPerHour=dal/h,daLPH +DecalitersPerMinute=dal/min,daLPM +DecalitersPerSecond=dal/s,daLPS +DecilitersPerDay=dl/day,dl/d,dLPD +DecilitersPerHour=dl/h,dLPH +DecilitersPerMinute=dl/min,dLPM +DecilitersPerSecond=dl/s,dLPS +HectolitersPerDay=hl/day,hl/d,hLPD +HectolitersPerHour=hl/h,hLPH +HectolitersPerMinute=hl/min,hLPM +HectolitersPerSecond=hl/s,hLPS +KilolitersPerDay=kl/day,kl/d,kLPD +KilolitersPerHour=kl/h,kLPH +KilolitersPerMinute=kl/min,kLPM +KilolitersPerSecond=kl/s,kLPS KilousGallonsPerMinute=kgal (U.S.)/min,KGPM -LitersPerDay=l/day,L/d,LPD -LitersPerHour=L/h,LPH -LitersPerMinute=L/min,LPM -LitersPerSecond=L/s,LPS -MegalitersPerDay=Ml/day,ML/d,MLPD -MegalitersPerHour=ML/h,MLPH -MegalitersPerMinute=ML/min,MLPM -MegalitersPerSecond=ML/s,MLPS +LitersPerDay=l/day,l/d,LPD +LitersPerHour=l/h,LPH +LitersPerMinute=l/min,LPM +LitersPerSecond=l/s,LPS +MegalitersPerDay=Ml/day,Ml/d,MLPD +MegalitersPerHour=Ml/h,MLPH +MegalitersPerMinute=Ml/min,MLPM +MegalitersPerSecond=Ml/s,MLPS MegaukGallonsPerDay=Mgal (U. K.)/d MegaukGallonsPerSecond=Mgal (imp.)/s MegausGallonsPerDay=Mgpd,Mgal/d -MicrolitersPerDay=µl/day,µL/d,µLPD -MicrolitersPerHour=µL/h,µLPH -MicrolitersPerMinute=µL/min,µLPM -MicrolitersPerSecond=µL/s,µLPS -MillilitersPerDay=ml/day,mL/d,mLPD -MillilitersPerHour=mL/h,mLPH -MillilitersPerMinute=mL/min,mLPM -MillilitersPerSecond=mL/s,mLPS +MicrolitersPerDay=µl/day,µl/d,µLPD +MicrolitersPerHour=µl/h,µLPH +MicrolitersPerMinute=µl/min,µLPM +MicrolitersPerSecond=µl/s,µLPS +MillilitersPerDay=ml/day,ml/d,mLPD +MillilitersPerHour=ml/h,mLPH +MillilitersPerMinute=ml/min,mLPM +MillilitersPerSecond=ml/s,mLPS MillionUsGallonsPerDay=MGD -NanolitersPerDay=nl/day,nL/d,nLPD -NanolitersPerHour=nL/h,nLPH -NanolitersPerMinute=nL/min,nLPM -NanolitersPerSecond=nL/s,nLPS +NanolitersPerDay=nl/day,nl/d,nLPD +NanolitersPerHour=nl/h,nLPH +NanolitersPerMinute=nl/min,nLPM +NanolitersPerSecond=nl/s,nLPS OilBarrelsPerDay=bbl/d,BOPD OilBarrelsPerHour=bbl/hr,bph OilBarrelsPerMinute=bbl/min,bpm