Skip to content

Commit 46848ce

Browse files
committed
♻️Use named arguments for significantDigits
1 parent 0623de4 commit 46848ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

UnitsNet.Tests/CustomCode/AmplitudeRatioTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void ExpectAmplitudeRatioConvertedToVoltageCorrectly(double amplitudeRati
6464
{
6565
// Voltage increases by powers of 10 for every 20 dBV increase in amplitude ratio.
6666
AmplitudeRatio ar = AmplitudeRatio.FromDecibelVolts(amplitudeRatio);
67-
67+
6868
var actual = ar.ToElectricPotential().Volts;
6969
Assert.Equal(expected, actual);
7070
}

UnitsNet.Tests/CustomCode/PressureTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,14 @@ public void PressureDividedByTimeSpanEqualsPressureChangeRate()
286286
[Fact]
287287
public void PressureFromElevation_ConvertsWithRounding()
288288
{
289-
var pressureFromElevation = Pressure.FromElevation(new Length(129149.9769457631m, LengthUnit.Foot), 13);
289+
var pressureFromElevation = Pressure.FromElevation(new Length(129149.9769457631m, LengthUnit.Foot), significantDigits: 13);
290290
Assert.Equal(1, pressureFromElevation.Pascals);
291291
}
292292

293293
[Fact]
294294
public void ElevationFromPressure_ConvertsWithRounding()
295295
{
296-
Length elevationFromPressure = Pressure.FromPascals(1).ToElevation(15);
296+
Length elevationFromPressure = Pressure.FromPascals(1).ToElevation(significantDigits: 15);
297297
Assert.Equal(LengthUnit.Foot, elevationFromPressure.Unit);
298298
Assert.Equal(129149.976945763m, elevationFromPressure.Value);
299299
}

0 commit comments

Comments
 (0)