Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions Common/UnitDefinitions/ElectricPotentialChangeRate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"Name": "ElectricPotentialChangeRate",
"BaseUnit": "VoltPerSecond",
"XmlDoc": "ElectricPotential change rate is the ratio of the electric potential change to the time during which the change occurred (value of electric potential changes per unit time).",
"BaseDimensions": {
"L": 2,
"M": 1,
"T": -4,
"I": -1
},
"Units": [
{
"SingularName": "VoltPerSecond",
"PluralName": "VoltsPerSeconds",
"BaseUnits": {
"L": "Meter",
"M": "Kilogram",
"T": "Second",
"I": "Ampere"
},
"FromUnitToBaseFunc": "x",
"FromBaseToUnitFunc": "x",
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "V/s" ]
}
]
},
{
"SingularName": "VoltPerMicrosecond",
"PluralName": "VoltsPerMicroseconds",
"BaseUnits": {
"L": "Meter",
"M": "Kilogram",
"T": "Microsecond",
"I": "Ampere"
},
"FromUnitToBaseFunc": "x*1E6",
"FromBaseToUnitFunc": "x/1E6",
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "V/μs" ]
}
]
},
{
"SingularName": "VoltPerMinute",
"PluralName": "VoltsPerMinutes",
"BaseUnits": {
"L": "Meter",
"M": "Kilogram",
"T": "Minute",
"I": "Ampere"
},
"FromUnitToBaseFunc": "x/60",
"FromBaseToUnitFunc": "x*60",
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "V/min" ]
}
]
},
{
"SingularName": "VoltPerHour",
"PluralName": "VoltsPerHours",
"BaseUnits": {
"L": "Meter",
"M": "Kilogram",
"T": "Hour",
"I": "Ampere"
},
"FromUnitToBaseFunc": "x/3600",
"FromBaseToUnitFunc": "x*3600",
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "V/h" ]
}
]
}
]
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions UnitsNet.Tests/CustomCode/ElectricPotentialChangeRateTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \generate-code.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step will regenerate the code on each local build.
//
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
//
// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
//
// </auto-generated>
//------------------------------------------------------------------------------

// Licensed under MIT No Attribution, see LICENSE file at the root.
// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.

using System;

namespace UnitsNet.Tests.CustomCode
{
public class ElectricPotentialChangeRateTests : ElectricPotentialChangeRateTestsBase
{
protected override double KilovoltsPerHoursInOneVoltPerSecond => 3.6;
protected override double KilovoltsPerMicrosecondsInOneVoltPerSecond => 1e-09;
protected override double KilovoltsPerMinutesInOneVoltPerSecond => 6e-2;
protected override double KilovoltsPerSecondsInOneVoltPerSecond => 0.001;
protected override double MegavoltsPerHoursInOneVoltPerSecond => 3.6e-3;
protected override double MegavoltsPerMicrosecondsInOneVoltPerSecond => 1e-12;
protected override double MegavoltsPerMinutesInOneVoltPerSecond => 6e-05;
protected override double MegavoltsPerSecondsInOneVoltPerSecond => 1e-06;
protected override double MicrovoltsPerHoursInOneVoltPerSecond => 3.6e9;
protected override double MicrovoltsPerMicrosecondsInOneVoltPerSecond => 1;
protected override double MicrovoltsPerMinutesInOneVoltPerSecond => 6e7;
protected override double MicrovoltsPerSecondsInOneVoltPerSecond => 1e6;
protected override double MillivoltsPerHoursInOneVoltPerSecond => 3.6e6;
protected override double MillivoltsPerMicrosecondsInOneVoltPerSecond => 0.001;
protected override double MillivoltsPerMinutesInOneVoltPerSecond => 6e4;
protected override double MillivoltsPerSecondsInOneVoltPerSecond => 1000;
protected override double VoltsPerHoursInOneVoltPerSecond => 3600;
protected override double VoltsPerMicrosecondsInOneVoltPerSecond => 1e-06;
protected override double VoltsPerMinutesInOneVoltPerSecond => 60;
protected override double VoltsPerSecondsInOneVoltPerSecond => 1;
}
}
4 changes: 4 additions & 0 deletions UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading