Skip to content

Commit 9e6f89f

Browse files
AnthonywolfeAnthonywolfe
andauthored
Added "Micro" prefix to the ElectricResitstance unit type (#816)
Co-authored-by: Anthonywolfe <[email protected]>
1 parent 28de3b5 commit 9e6f89f

File tree

12 files changed

+73
-7
lines changed

12 files changed

+73
-7
lines changed

Common/UnitDefinitions/ElectricResistance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"PluralName": "Ohms",
1515
"FromUnitToBaseFunc": "x",
1616
"FromBaseToUnitFunc": "x",
17-
"Prefixes": [ "Milli", "Kilo", "Mega", "Giga"],
17+
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega", "Giga"],
1818
"Localization": [
1919
{
2020
"Culture": "en-US",

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToElectricResistanceExtensionsTest.g.cs

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricResistanceExtensions.g.cs

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/CustomCode/ElectricResistanceTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class ElectricResistanceTests : ElectricResistanceTestsBase
99
{
10+
protected override double MicroohmsInOneOhm => 1e6;
11+
1012
protected override double MilliohmsInOneOhm => 1000;
1113

1214
protected override double OhmsInOneOhm => 1;
@@ -17,6 +19,7 @@ public class ElectricResistanceTests : ElectricResistanceTestsBase
1719

1820
protected override double GigaohmsInOneOhm => 1e-9;
1921

22+
2023
[Theory]
2124
[InlineData(1, 1, 1)]
2225
[InlineData(0, int.MaxValue, 0)]

UnitsNet.Tests/GeneratedCode/TestsBase/ElectricResistanceTestsBase.g.cs

Lines changed: 21 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/ElectricResistance.g.cs

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Units/ElectricResistanceUnit.g.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)