diff --git a/Common/UnitDefinitions/RadiationEquivalentDoseRate.json b/Common/UnitDefinitions/RadiationEquivalentDoseRate.json
index 70e4541e83..e33d3bae8e 100644
--- a/Common/UnitDefinitions/RadiationEquivalentDoseRate.json
+++ b/Common/UnitDefinitions/RadiationEquivalentDoseRate.json
@@ -1,6 +1,6 @@
{
"Name": "RadiationEquivalentDoseRate",
- "BaseUnit": "SievertPerHour",
+ "BaseUnit": "SievertPerSecond",
"XmlDocSummary": "A dose rate is quantity of radiation absorbed or delivered per unit time.",
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Dose_rate",
"BaseDimensions": {
@@ -11,8 +11,8 @@
{
"SingularName": "SievertPerHour",
"PluralName": "SievertsPerHour",
- "FromUnitToBaseFunc": "{x}",
- "FromBaseToUnitFunc": "{x}",
+ "FromUnitToBaseFunc": "{x}/3600",
+ "FromBaseToUnitFunc": "{x}*3600",
"Prefixes": [ "Nano", "Micro", "Milli" ],
"Localization": [
{
@@ -25,11 +25,28 @@
}
]
},
+ {
+ "SingularName": "SievertPerSecond",
+ "PluralName": "SievertsPerSecond",
+ "FromUnitToBaseFunc": "{x}",
+ "FromBaseToUnitFunc": "{x}",
+ "Prefixes": [ "Nano", "Micro", "Milli" ],
+ "Localization": [
+ {
+ "Culture": "en-US",
+ "Abbreviations": [ "Sv/s" ]
+ },
+ {
+ "Culture": "ru-RU",
+ "Abbreviations": [ "Зв/с" ]
+ }
+ ]
+ },
{
"SingularName": "RoentgenEquivalentManPerHour",
"PluralName": "RoentgensEquivalentManPerHour",
- "FromUnitToBaseFunc": "{x} / 100",
- "FromBaseToUnitFunc": "{x} * 100",
+ "FromUnitToBaseFunc": "{x} / 100 / 3600",
+ "FromBaseToUnitFunc": "{x} * 100 * 3600",
"Prefixes": [ "Milli" ],
"Localization": [
{
diff --git a/Common/UnitEnumValues.g.json b/Common/UnitEnumValues.g.json
index 4fb449ea12..b18b7d7bfa 100644
--- a/Common/UnitEnumValues.g.json
+++ b/Common/UnitEnumValues.g.json
@@ -1869,7 +1869,11 @@
"MillisievertPerHour": 3,
"NanosievertPerHour": 2,
"RoentgenEquivalentManPerHour": 5,
- "SievertPerHour": 6
+ "SievertPerHour": 6,
+ "SievertPerSecond": 16,
+ "MicrosievertPerSecond": 17,
+ "MillisievertPerSecond": 14,
+ "NanosievertPerSecond": 9
},
"ThermalInsulance": {
"HourSquareFeetDegreeFahrenheitPerBtu": 2,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs
index 9b77f37bd0..67fcc7c51b 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs
@@ -60,7 +60,7 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
/// The base unit of RadiationEquivalentDoseRate, which is Second. All conversions go via this value.
///
- public static RadiationEquivalentDoseRateUnit BaseUnit { get; } = RadiationEquivalentDoseRateUnit.SievertPerHour;
+ public static RadiationEquivalentDoseRateUnit BaseUnit { get; } = RadiationEquivalentDoseRateUnit.SievertPerSecond;
///
/// Represents the largest possible value of RadiationEquivalentDoseRate.
@@ -83,6 +83,11 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
public double MicrosievertsPerHour => As(RadiationEquivalentDoseRateUnit.MicrosievertPerHour);
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double MicrosievertsPerSecond => As(RadiationEquivalentDoseRateUnit.MicrosievertPerSecond);
+
///
/// Gets a value of this quantity converted into
///
@@ -93,11 +98,21 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
public double MillisievertsPerHour => As(RadiationEquivalentDoseRateUnit.MillisievertPerHour);
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double MillisievertsPerSecond => As(RadiationEquivalentDoseRateUnit.MillisievertPerSecond);
+
///
/// Gets a value of this quantity converted into
///
public double NanosievertsPerHour => As(RadiationEquivalentDoseRateUnit.NanosievertPerHour);
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double NanosievertsPerSecond => As(RadiationEquivalentDoseRateUnit.NanosievertPerSecond);
+
///
/// Gets a value of this quantity converted into
///
@@ -108,6 +123,11 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
public double SievertsPerHour => As(RadiationEquivalentDoseRateUnit.SievertPerHour);
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double SievertsPerSecond => As(RadiationEquivalentDoseRateUnit.SievertPerSecond);
+
#endregion
#region Static Factory Methods
@@ -117,6 +137,11 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
public static RadiationEquivalentDoseRate FromMicrosievertsPerHour(double microsievertsperhour) => new RadiationEquivalentDoseRate(microsievertsperhour, RadiationEquivalentDoseRateUnit.MicrosievertPerHour);
+ ///
+ /// Creates a from .
+ ///
+ public static RadiationEquivalentDoseRate FromMicrosievertsPerSecond(double microsievertspersecond) => new RadiationEquivalentDoseRate(microsievertspersecond, RadiationEquivalentDoseRateUnit.MicrosievertPerSecond);
+
///
/// Creates a from .
///
@@ -127,11 +152,21 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
public static RadiationEquivalentDoseRate FromMillisievertsPerHour(double millisievertsperhour) => new RadiationEquivalentDoseRate(millisievertsperhour, RadiationEquivalentDoseRateUnit.MillisievertPerHour);
+ ///
+ /// Creates a from .
+ ///
+ public static RadiationEquivalentDoseRate FromMillisievertsPerSecond(double millisievertspersecond) => new RadiationEquivalentDoseRate(millisievertspersecond, RadiationEquivalentDoseRateUnit.MillisievertPerSecond);
+
///
/// Creates a from .
///
public static RadiationEquivalentDoseRate FromNanosievertsPerHour(double nanosievertsperhour) => new RadiationEquivalentDoseRate(nanosievertsperhour, RadiationEquivalentDoseRateUnit.NanosievertPerHour);
+ ///
+ /// Creates a from .
+ ///
+ public static RadiationEquivalentDoseRate FromNanosievertsPerSecond(double nanosievertspersecond) => new RadiationEquivalentDoseRate(nanosievertspersecond, RadiationEquivalentDoseRateUnit.NanosievertPerSecond);
+
///
/// Creates a from .
///
@@ -142,6 +177,11 @@ public RadiationEquivalentDoseRate(double value, RadiationEquivalentDoseRateUnit
///
public static RadiationEquivalentDoseRate FromSievertsPerHour(double sievertsperhour) => new RadiationEquivalentDoseRate(sievertsperhour, RadiationEquivalentDoseRateUnit.SievertPerHour);
+ ///
+ /// Creates a from .
+ ///
+ public static RadiationEquivalentDoseRate FromSievertsPerSecond(double sievertspersecond) => new RadiationEquivalentDoseRate(sievertspersecond, RadiationEquivalentDoseRateUnit.SievertPerSecond);
+
///
/// Dynamically convert from value and unit enum to .
///
@@ -182,12 +222,16 @@ private double GetValueInBaseUnit()
{
return Unit switch
{
- RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (_value) * 1e-6d,
- RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (_value / 100) * 1e-3d,
- RadiationEquivalentDoseRateUnit.MillisievertPerHour => (_value) * 1e-3d,
- RadiationEquivalentDoseRateUnit.NanosievertPerHour => (_value) * 1e-9d,
- RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => _value / 100,
- RadiationEquivalentDoseRateUnit.SievertPerHour => _value,
+ RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (_value/3600) * 1e-6d,
+ RadiationEquivalentDoseRateUnit.MicrosievertPerSecond => (_value) * 1e-6d,
+ RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (_value / 100 / 3600) * 1e-3d,
+ RadiationEquivalentDoseRateUnit.MillisievertPerHour => (_value/3600) * 1e-3d,
+ RadiationEquivalentDoseRateUnit.MillisievertPerSecond => (_value) * 1e-3d,
+ RadiationEquivalentDoseRateUnit.NanosievertPerHour => (_value/3600) * 1e-9d,
+ RadiationEquivalentDoseRateUnit.NanosievertPerSecond => (_value) * 1e-9d,
+ RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => _value / 100 / 3600,
+ RadiationEquivalentDoseRateUnit.SievertPerHour => _value/3600,
+ RadiationEquivalentDoseRateUnit.SievertPerSecond => _value,
_ => throw new NotImplementedException($"Can not convert {Unit} to base units.")
};
}
@@ -201,12 +245,16 @@ private double GetValueAs(RadiationEquivalentDoseRateUnit unit)
return unit switch
{
- RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (baseUnitValue) / 1e-6d,
- RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (baseUnitValue * 100) / 1e-3d,
- RadiationEquivalentDoseRateUnit.MillisievertPerHour => (baseUnitValue) / 1e-3d,
- RadiationEquivalentDoseRateUnit.NanosievertPerHour => (baseUnitValue) / 1e-9d,
- RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => baseUnitValue * 100,
- RadiationEquivalentDoseRateUnit.SievertPerHour => baseUnitValue,
+ RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (baseUnitValue*3600) / 1e-6d,
+ RadiationEquivalentDoseRateUnit.MicrosievertPerSecond => (baseUnitValue) / 1e-6d,
+ RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (baseUnitValue * 100 * 3600) / 1e-3d,
+ RadiationEquivalentDoseRateUnit.MillisievertPerHour => (baseUnitValue*3600) / 1e-3d,
+ RadiationEquivalentDoseRateUnit.MillisievertPerSecond => (baseUnitValue) / 1e-3d,
+ RadiationEquivalentDoseRateUnit.NanosievertPerHour => (baseUnitValue*3600) / 1e-9d,
+ RadiationEquivalentDoseRateUnit.NanosievertPerSecond => (baseUnitValue) / 1e-9d,
+ RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => baseUnitValue * 100 * 3600,
+ RadiationEquivalentDoseRateUnit.SievertPerHour => baseUnitValue*3600,
+ RadiationEquivalentDoseRateUnit.SievertPerSecond => baseUnitValue,
_ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.")
};
}
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs
index 62efff1af1..df74f109e8 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs
@@ -26,11 +26,15 @@ namespace UnitsNet.Units
public enum RadiationEquivalentDoseRateUnit
{
MicrosievertPerHour = 1,
+ MicrosievertPerSecond = 17,
MilliroentgenEquivalentManPerHour = 4,
MillisievertPerHour = 3,
+ MillisievertPerSecond = 14,
NanosievertPerHour = 2,
+ NanosievertPerSecond = 9,
RoentgenEquivalentManPerHour = 5,
SievertPerHour = 6,
+ SievertPerSecond = 16,
}
#pragma warning restore 1591
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensionsTest.g.cs
index de765026cd..a66f17ded3 100644
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensionsTest.g.cs
@@ -28,6 +28,10 @@ public class NumberToRadiationEquivalentDoseRateExtensionsTests
public void NumberToMicrosievertsPerHourTest() =>
Assert.Equal(RadiationEquivalentDoseRate.FromMicrosievertsPerHour(2), 2.MicrosievertsPerHour());
+ [Fact]
+ public void NumberToMicrosievertsPerSecondTest() =>
+ Assert.Equal(RadiationEquivalentDoseRate.FromMicrosievertsPerSecond(2), 2.MicrosievertsPerSecond());
+
[Fact]
public void NumberToMilliroentgensEquivalentManPerHourTest() =>
Assert.Equal(RadiationEquivalentDoseRate.FromMilliroentgensEquivalentManPerHour(2), 2.MilliroentgensEquivalentManPerHour());
@@ -36,10 +40,18 @@ public void NumberToMilliroentgensEquivalentManPerHourTest() =>
public void NumberToMillisievertsPerHourTest() =>
Assert.Equal(RadiationEquivalentDoseRate.FromMillisievertsPerHour(2), 2.MillisievertsPerHour());
+ [Fact]
+ public void NumberToMillisievertsPerSecondTest() =>
+ Assert.Equal(RadiationEquivalentDoseRate.FromMillisievertsPerSecond(2), 2.MillisievertsPerSecond());
+
[Fact]
public void NumberToNanosievertsPerHourTest() =>
Assert.Equal(RadiationEquivalentDoseRate.FromNanosievertsPerHour(2), 2.NanosievertsPerHour());
+ [Fact]
+ public void NumberToNanosievertsPerSecondTest() =>
+ Assert.Equal(RadiationEquivalentDoseRate.FromNanosievertsPerSecond(2), 2.NanosievertsPerSecond());
+
[Fact]
public void NumberToRoentgensEquivalentManPerHourTest() =>
Assert.Equal(RadiationEquivalentDoseRate.FromRoentgensEquivalentManPerHour(2), 2.RoentgensEquivalentManPerHour());
@@ -48,5 +60,9 @@ public void NumberToRoentgensEquivalentManPerHourTest() =>
public void NumberToSievertsPerHourTest() =>
Assert.Equal(RadiationEquivalentDoseRate.FromSievertsPerHour(2), 2.SievertsPerHour());
+ [Fact]
+ public void NumberToSievertsPerSecondTest() =>
+ Assert.Equal(RadiationEquivalentDoseRate.FromSievertsPerSecond(2), 2.SievertsPerSecond());
+
}
}
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensions.g.cs
index b0121c6159..396cceb830 100644
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensions.g.cs
+++ b/UnitsNet.NumberExtensions/GeneratedCode/NumberToRadiationEquivalentDoseRateExtensions.g.cs
@@ -40,6 +40,14 @@ public static RadiationEquivalentDoseRate MicrosievertsPerHour(this T value)
#endif
=> RadiationEquivalentDoseRate.FromMicrosievertsPerHour(Convert.ToDouble(value));
+ ///
+ public static RadiationEquivalentDoseRate MicrosievertsPerSecond(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+#endif
+ => RadiationEquivalentDoseRate.FromMicrosievertsPerSecond(Convert.ToDouble(value));
+
///
public static RadiationEquivalentDoseRate MilliroentgensEquivalentManPerHour(this T value)
where T : notnull
@@ -56,6 +64,14 @@ public static RadiationEquivalentDoseRate MillisievertsPerHour(this T value)
#endif
=> RadiationEquivalentDoseRate.FromMillisievertsPerHour(Convert.ToDouble(value));
+ ///
+ public static RadiationEquivalentDoseRate MillisievertsPerSecond(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+#endif
+ => RadiationEquivalentDoseRate.FromMillisievertsPerSecond(Convert.ToDouble(value));
+
///
public static RadiationEquivalentDoseRate NanosievertsPerHour(this T value)
where T : notnull
@@ -64,6 +80,14 @@ public static RadiationEquivalentDoseRate NanosievertsPerHour(this T value)
#endif
=> RadiationEquivalentDoseRate.FromNanosievertsPerHour(Convert.ToDouble(value));
+ ///
+ public static RadiationEquivalentDoseRate NanosievertsPerSecond(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+#endif
+ => RadiationEquivalentDoseRate.FromNanosievertsPerSecond(Convert.ToDouble(value));
+
///
public static RadiationEquivalentDoseRate RoentgensEquivalentManPerHour(this T value)
where T : notnull
@@ -80,5 +104,13 @@ public static RadiationEquivalentDoseRate SievertsPerHour(this T value)
#endif
=> RadiationEquivalentDoseRate.FromSievertsPerHour(Convert.ToDouble(value));
+ ///
+ public static RadiationEquivalentDoseRate SievertsPerSecond(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+#endif
+ => RadiationEquivalentDoseRate.FromSievertsPerSecond(Convert.ToDouble(value));
+
}
}
diff --git a/UnitsNet.Tests/CustomCode/RadiationEquivalentDoseRateTests.cs b/UnitsNet.Tests/CustomCode/RadiationEquivalentDoseRateTests.cs
index adc34ae198..b66efb5427 100644
--- a/UnitsNet.Tests/CustomCode/RadiationEquivalentDoseRateTests.cs
+++ b/UnitsNet.Tests/CustomCode/RadiationEquivalentDoseRateTests.cs
@@ -10,12 +10,16 @@ public class RadiationEquivalentDoseRateTests : RadiationEquivalentDoseRateTests
{
// Override properties in base class here
protected override bool SupportsSIUnitSystem => false;
- protected override double SievertsPerHourInOneSievertPerHour => 1;
- protected override double MillisievertsPerHourInOneSievertPerHour => 1e+3;
- protected override double MicrosievertsPerHourInOneSievertPerHour => 1e+6;
- protected override double NanosievertsPerHourInOneSievertPerHour => 1e+9;
- protected override double RoentgensEquivalentManPerHourInOneSievertPerHour => 100;
- protected override double MilliroentgensEquivalentManPerHourInOneSievertPerHour => 1e+5;
+ protected override double SievertsPerSecondInOneSievertPerSecond => 1;
+ protected override double MillisievertsPerSecondInOneSievertPerSecond => 1e+3;
+ protected override double MicrosievertsPerSecondInOneSievertPerSecond => 1e+6;
+ protected override double NanosievertsPerSecondInOneSievertPerSecond => 1e+9;
+ protected override double SievertsPerHourInOneSievertPerSecond => 3600;
+ protected override double MillisievertsPerHourInOneSievertPerSecond => 3.6e+6;
+ protected override double MicrosievertsPerHourInOneSievertPerSecond => 3.6e+9;
+ protected override double NanosievertsPerHourInOneSievertPerSecond => 3.6e+12;
+ protected override double RoentgensEquivalentManPerHourInOneSievertPerSecond => 3.6e+5;
+ protected override double MilliroentgensEquivalentManPerHourInOneSievertPerSecond => 3.6e+8;
[Fact]
public void RadiationEquivalentDoseRateTimesTimeSpanEqualsRadiationEquivalentDose()
diff --git a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs
index 89b42b39b2..2da6d28c63 100644
--- a/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs
@@ -119,7 +119,7 @@ void Assertion(int expectedValue, Enum expectedUnit, IQuantity quantity)
Assertion(3, PressureUnit.Torr, Quantity.From(3, PressureUnit.Torr));
Assertion(3, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, Quantity.From(3, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond));
Assertion(3, RadiationEquivalentDoseUnit.Sievert, Quantity.From(3, RadiationEquivalentDoseUnit.Sievert));
- Assertion(3, RadiationEquivalentDoseRateUnit.SievertPerHour, Quantity.From(3, RadiationEquivalentDoseRateUnit.SievertPerHour));
+ Assertion(3, RadiationEquivalentDoseRateUnit.SievertPerSecond, Quantity.From(3, RadiationEquivalentDoseRateUnit.SievertPerSecond));
Assertion(3, RadiationExposureUnit.Roentgen, Quantity.From(3, RadiationExposureUnit.Roentgen));
Assertion(3, RadioactivityUnit.Terarutherford, Quantity.From(3, RadioactivityUnit.Terarutherford));
Assertion(3, RatioUnit.Percent, Quantity.From(3, RatioUnit.Percent));
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/RadiationEquivalentDoseRateTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/RadiationEquivalentDoseRateTestsBase.g.cs
index ada21f18c8..2f018fce6b 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/RadiationEquivalentDoseRateTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/RadiationEquivalentDoseRateTestsBase.g.cs
@@ -38,32 +38,44 @@ namespace UnitsNet.Tests
// ReSharper disable once PartialTypeWithSinglePart
public abstract partial class RadiationEquivalentDoseRateTestsBase : QuantityTestsBase
{
- protected abstract double MicrosievertsPerHourInOneSievertPerHour { get; }
- protected abstract double MilliroentgensEquivalentManPerHourInOneSievertPerHour { get; }
- protected abstract double MillisievertsPerHourInOneSievertPerHour { get; }
- protected abstract double NanosievertsPerHourInOneSievertPerHour { get; }
- protected abstract double RoentgensEquivalentManPerHourInOneSievertPerHour { get; }
- protected abstract double SievertsPerHourInOneSievertPerHour { get; }
+ protected abstract double MicrosievertsPerHourInOneSievertPerSecond { get; }
+ protected abstract double MicrosievertsPerSecondInOneSievertPerSecond { get; }
+ protected abstract double MilliroentgensEquivalentManPerHourInOneSievertPerSecond { get; }
+ protected abstract double MillisievertsPerHourInOneSievertPerSecond { get; }
+ protected abstract double MillisievertsPerSecondInOneSievertPerSecond { get; }
+ protected abstract double NanosievertsPerHourInOneSievertPerSecond { get; }
+ protected abstract double NanosievertsPerSecondInOneSievertPerSecond { get; }
+ protected abstract double RoentgensEquivalentManPerHourInOneSievertPerSecond { get; }
+ protected abstract double SievertsPerHourInOneSievertPerSecond { get; }
+ protected abstract double SievertsPerSecondInOneSievertPerSecond { get; }
// ReSharper disable VirtualMemberNeverOverriden.Global
protected virtual double MicrosievertsPerHourTolerance { get { return 1e-5; } }
+ protected virtual double MicrosievertsPerSecondTolerance { get { return 1e-5; } }
protected virtual double MilliroentgensEquivalentManPerHourTolerance { get { return 1e-5; } }
protected virtual double MillisievertsPerHourTolerance { get { return 1e-5; } }
+ protected virtual double MillisievertsPerSecondTolerance { get { return 1e-5; } }
protected virtual double NanosievertsPerHourTolerance { get { return 1e-5; } }
+ protected virtual double NanosievertsPerSecondTolerance { get { return 1e-5; } }
protected virtual double RoentgensEquivalentManPerHourTolerance { get { return 1e-5; } }
protected virtual double SievertsPerHourTolerance { get { return 1e-5; } }
+ protected virtual double SievertsPerSecondTolerance { get { return 1e-5; } }
// ReSharper restore VirtualMemberNeverOverriden.Global
protected (double UnitsInBaseUnit, double Tolerence) GetConversionFactor(RadiationEquivalentDoseRateUnit unit)
{
return unit switch
{
- RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (MicrosievertsPerHourInOneSievertPerHour, MicrosievertsPerHourTolerance),
- RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (MilliroentgensEquivalentManPerHourInOneSievertPerHour, MilliroentgensEquivalentManPerHourTolerance),
- RadiationEquivalentDoseRateUnit.MillisievertPerHour => (MillisievertsPerHourInOneSievertPerHour, MillisievertsPerHourTolerance),
- RadiationEquivalentDoseRateUnit.NanosievertPerHour => (NanosievertsPerHourInOneSievertPerHour, NanosievertsPerHourTolerance),
- RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => (RoentgensEquivalentManPerHourInOneSievertPerHour, RoentgensEquivalentManPerHourTolerance),
- RadiationEquivalentDoseRateUnit.SievertPerHour => (SievertsPerHourInOneSievertPerHour, SievertsPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.MicrosievertPerHour => (MicrosievertsPerHourInOneSievertPerSecond, MicrosievertsPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.MicrosievertPerSecond => (MicrosievertsPerSecondInOneSievertPerSecond, MicrosievertsPerSecondTolerance),
+ RadiationEquivalentDoseRateUnit.MilliroentgenEquivalentManPerHour => (MilliroentgensEquivalentManPerHourInOneSievertPerSecond, MilliroentgensEquivalentManPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.MillisievertPerHour => (MillisievertsPerHourInOneSievertPerSecond, MillisievertsPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.MillisievertPerSecond => (MillisievertsPerSecondInOneSievertPerSecond, MillisievertsPerSecondTolerance),
+ RadiationEquivalentDoseRateUnit.NanosievertPerHour => (NanosievertsPerHourInOneSievertPerSecond, NanosievertsPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.NanosievertPerSecond => (NanosievertsPerSecondInOneSievertPerSecond, NanosievertsPerSecondTolerance),
+ RadiationEquivalentDoseRateUnit.RoentgenEquivalentManPerHour => (RoentgensEquivalentManPerHourInOneSievertPerSecond, RoentgensEquivalentManPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.SievertPerHour => (SievertsPerHourInOneSievertPerSecond, SievertsPerHourTolerance),
+ RadiationEquivalentDoseRateUnit.SievertPerSecond => (SievertsPerSecondInOneSievertPerSecond, SievertsPerSecondTolerance),
_ => throw new NotSupportedException()
};
}
@@ -71,11 +83,15 @@ public abstract partial class RadiationEquivalentDoseRateTestsBase : QuantityTes
public static IEnumerable