Skip to content

Commit 83e6bf1

Browse files
committed
Adding Mpa/min and Kpa/min
1 parent 864e0bb commit 83e6bf1

File tree

8 files changed

+136
-2
lines changed

8 files changed

+136
-2
lines changed

Common/UnitDefinitions/PressureChangeRate.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@
2626
}
2727
]
2828
},
29+
{
30+
"SingularName": "PascalPerMinute",
31+
"PluralName": "PascalsPerMinute",
32+
"FromUnitToBaseFunc": "x/60",
33+
"FromBaseToUnitFunc": "x*60",
34+
"Prefixes": [ "Kilo", "Mega" ],
35+
"Localization": [
36+
{
37+
"Culture": "en-US",
38+
"Abbreviations": [ "Pa/min" ]
39+
},
40+
{
41+
"Culture": "ru-RU",
42+
"Abbreviations": [ "Па/с" ],
43+
"AbbreviationsWithPrefixes": [ "кПа/мин", "МПа/мин" ]
44+
}
45+
]
46+
},
2947
{
3048
"SingularName": "AtmospherePerSecond",
3149
"PluralName": "AtmospheresPerSecond",

UnitsNet.Tests/CustomCode/PressureChangeRateTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@ namespace UnitsNet.Tests.CustomCode
2424
public class PressureChangeRateTests : PressureChangeRateTestsBase
2525
{
2626
protected override double AtmospheresPerSecondInOnePascalPerSecond => 9.8692*1E-6;
27-
27+
2828
protected override double KilopascalsPerSecondInOnePascalPerSecond => 1e-3;
2929

3030
protected override double MegapascalsPerSecondInOnePascalPerSecond => 1E-6;
3131

3232
protected override double PascalsPerSecondInOnePascalPerSecond => 1;
33+
34+
protected override double MegapascalsPerMinuteInOnePascalPerSecond => 6e-5;
35+
36+
protected override double KilopascalsPerMinuteInOnePascalPerSecond => 6e-2;
37+
38+
protected override double PascalsPerMinuteInOnePascalPerSecond => 60;
3339
}
34-
}
40+
}

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

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

UnitsNet.sln.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ THE SOFTWARE.</s:String>
3232
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean>
3333
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
3434
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpRenamePlacementToArrangementMigration/@EntryIndexedValue">True</s:Boolean>
35+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
3536
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAddAccessorOwnerDeclarationBracesMigration/@EntryIndexedValue">True</s:Boolean>
3637
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002ECSharpPlaceAttributeOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
3738
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>

UnitsNet/GeneratedCode/Quantities/PressureChangeRate.NetFramework.g.cs

Lines changed: 48 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: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/Units/PressureChangeRateUnit.g.cs

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

build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@echo off
22
powershell -ExecutionPolicy Bypass -NoProfile -File %~dp0\Build\build.ps1
3+
pause

0 commit comments

Comments
 (0)