Skip to content

Commit ca47797

Browse files
danypellerinDany Pellerin
andauthored
Add board foot (#802)
Co-authored-by: Dany Pellerin <[email protected]>
1 parent c2ebeb9 commit ca47797

File tree

12 files changed

+228
-145
lines changed

12 files changed

+228
-145
lines changed

Common/UnitDefinitions/Volume.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,22 @@
492492
"Abbreviations": [ "pt (imp.)", "UK pt", "pt", "p" ]
493493
}
494494
]
495+
},
496+
{
497+
"SingularName": "BoardFoot",
498+
"PluralName": "BoardFeet",
499+
"FromUnitToBaseFunc": "x*2.3597372158e-3",
500+
"FromBaseToUnitFunc": "x/2.3597372158e-3",
501+
"Localization": [
502+
{
503+
"Culture": "en-US",
504+
"Abbreviations": [ "bf", "board foot", "board feet" ]
505+
},
506+
{
507+
"Culture": "fr-CA",
508+
"Abbreviations": [ "pmp", "pied-planche", "pied de planche" ]
509+
}
510+
]
495511
}
496512
]
497513
}

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToVolumeExtensionsTest.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/NumberToVolumeExtensions.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/VolumeTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ public class VolumeTests : VolumeTestsBase
9999

100100
protected override double ImperialPintsInOneCubicMeter => 1.7597539863927023e3;
101101

102-
[ Fact]
102+
protected override double BoardFeetInOneCubicMeter => 423.7760007;
103+
104+
[Fact]
103105
public void VolumeDividedByAreaEqualsLength()
104106
{
105107
Length length = Volume.FromCubicMeters(15)/Area.FromSquareMeters(5);

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

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Volume.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: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Units/VolumeUnit.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/Volume.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: 2 additions & 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)