Skip to content

Commit e45efe8

Browse files
committed
removed SupportsSIUnitSystem in favor of the As_UnitSystem_ThrowsArgumentExceptionIfNotSupported tests
1 parent 9d5c86f commit e45efe8

File tree

120 files changed

+217
-260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+217
-260
lines changed

CodeGen/Generators/UnitsNetGen/UnitTestBaseClassGenerator.cs

-15
Original file line numberDiff line numberDiff line change
@@ -154,21 +154,6 @@ public void Ctor_NullAsUnitSystem_ThrowsArgumentNullException()
154154
Assert.Throws<ArgumentNullException>(() => new {_quantity.Name}(value: 1, unitSystem: null));
155155
}}
156156
157-
[Fact]
158-
public void Ctor_SIUnitSystem_ThrowsArgumentExceptionIfNotSupported()
159-
{{
160-
Func<object> TestCode = () => new {_quantity.Name}(value: 1, unitSystem: UnitSystem.SI);
161-
if (SupportsSIUnitSystem)
162-
{{
163-
var quantity = ({_quantity.Name}) TestCode();
164-
Assert.Equal(1, quantity.Value);
165-
}}
166-
else
167-
{{
168-
Assert.Throws<ArgumentException>(TestCode);
169-
}}
170-
}}
171-
172157
[Fact]
173158
public void Ctor_UnitSystem_ThrowsArgumentExceptionIfNotSupported()
174159
{{");

UnitsNet.Tests/CustomCode/AccelerationTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class AccelerationTests : AccelerationTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => true;
11-
1210
protected override double KilometersPerSecondSquaredInOneMeterPerSecondSquared => 1E-3;
1311

1412
protected override double MetersPerSecondSquaredInOneMeterPerSecondSquared => 1;

UnitsNet.Tests/CustomCode/AmountOfSubstanceTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ namespace UnitsNet.Tests.CustomCode
2828
{
2929
public class AmountOfSubstanceTests : AmountOfSubstanceTestsBase
3030
{
31-
protected override bool SupportsSIUnitSystem => true;
32-
3331
protected override double CentimolesInOneMole => 1e2;
3432
protected override double CentipoundMolesInOneMole => 0.002204622621848776 * 1e2;
3533
protected override double DecimolesInOneMole => 1e1;

UnitsNet.Tests/CustomCode/AmplitudeRatioTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class AmplitudeRatioTests : AmplitudeRatioTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => false;
1211
protected override double DecibelMicrovoltsInOneDecibelVolt => 121;
1312

1413
protected override double DecibelMillivoltsInOneDecibelVolt => 61;

UnitsNet.Tests/CustomCode/AngleTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class AngleTests : AngleTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => false;
12-
1311
protected override double DegreesInOneDegree => 1;
1412

1513
protected override double GradiansInOneDegree => 400 / 360.0;

UnitsNet.Tests/CustomCode/ApparentEnergyTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ApparentEnergyTests : ApparentEnergyTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
31-
3230
protected override double VoltampereHoursInOneVoltampereHour => 1;
3331

3432
protected override double KilovoltampereHoursInOneVoltampereHour => 1E-3;

UnitsNet.Tests/CustomCode/ApparentPowerTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ApparentPowerTests : ApparentPowerTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
31-
3230
protected override double VoltamperesInOneVoltampere => 1;
3331

3432
protected override double KilovoltamperesInOneVoltampere => 1E-3;

UnitsNet.Tests/CustomCode/AreaDensityTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class AreaDensityTests : AreaDensityTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => true;
31-
3230
protected override double KilogramsPerSquareMeterInOneKilogramPerSquareMeter => 1;
3331
}
3432
}

UnitsNet.Tests/CustomCode/AreaMomentOfInertiaTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ namespace UnitsNet.Tests.CustomCode
2828
{
2929
public class AreaMomentOfInertiaTests : AreaMomentOfInertiaTestsBase
3030
{
31-
protected override bool SupportsSIUnitSystem => true;
32-
3331
protected override double CentimetersToTheFourthInOneMeterToTheFourth => 1e8;
3432

3533
protected override double DecimetersToTheFourthInOneMeterToTheFourth => 1e4;

UnitsNet.Tests/CustomCode/AreaTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class AreaTests : AreaTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => true;
12-
1311
protected override double SquareKilometersInOneSquareMeter => 1E-6;
1412

1513
protected override double SquareMetersInOneSquareMeter => 1;

UnitsNet.Tests/CustomCode/BitRateTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class BitRateTests : BitRateTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
31-
3230
protected override double BitsPerSecondInOneBitPerSecond => 1d;
3331
protected override double BytesPerSecondInOneBitPerSecond => 1.25E-1d;
3432

UnitsNet.Tests/CustomCode/BrakeSpecificFuelConsumptionTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class BrakeSpecificFuelConsumptionTests : BrakeSpecificFuelConsumptionTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => false;
12-
1311
protected override double GramsPerKiloWattHourInOneKilogramPerJoule => 3600000000;
1412

1513
protected override double KilogramsPerJouleInOneKilogramPerJoule => 1.0;

UnitsNet.Tests/CustomCode/CapacitanceTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class CapacitanceTests : CapacitanceTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => true;
31-
3230
protected override double FaradsInOneFarad => 1;
3331

3432
protected override double MillifaradsInOneFarad => 1e3;

UnitsNet.Tests/CustomCode/CoefficientOfThermalExpansionTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ namespace UnitsNet.Tests.CustomCode
2828
{
2929
public class CoefficientOfThermalExpansionTests : CoefficientOfThermalExpansionTestsBase
3030
{
31-
protected override bool SupportsSIUnitSystem => true;
32-
3331
protected override double InverseDegreeCelsiusInOneInverseKelvin => 1.0;
3432

3533
protected override double InverseDegreeFahrenheitInOneInverseKelvin => 0.5555555555555556;

UnitsNet.Tests/CustomCode/DensityTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class DensityTests : DensityTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => false;
11-
1210
protected override double MilligramsPerCubicMeterInOneKilogramPerCubicMeter => 1e6;
1311

1412
protected override double GramsPerCubicCentimeterInOneKilogramPerCubicMeter => 1e-3;

UnitsNet.Tests/CustomCode/DurationTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ namespace UnitsNet.Tests.CustomCode
99
{
1010
public class DurationTests : DurationTestsBase
1111
{
12-
protected override bool SupportsSIUnitSystem => true;
13-
1412
protected override double DaysInOneSecond => 1.15741e-5;
1513

1614
protected override double HoursInOneSecond => 0.0002777784;

UnitsNet.Tests/CustomCode/DynamicViscosityTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class DynamicViscosityTests : DynamicViscosityTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => false;
12-
1311
protected override double CentipoiseInOneNewtonSecondPerMeterSquared => 1e3;
1412
protected override double MicropascalSecondsInOneNewtonSecondPerMeterSquared => 1e6;
1513
protected override double MillipascalSecondsInOneNewtonSecondPerMeterSquared => 1e3;

UnitsNet.Tests/CustomCode/ElectricAdmittanceTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricAdmittanceTests : ElectricAdmittanceTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
31-
3230
protected override double MicrosiemensInOneSiemens => 1e+6;
3331

3432
protected override double MillisiemensInOneSiemens => 1000;

UnitsNet.Tests/CustomCode/ElectricChargeDensityTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricChargeDensityTests : ElectricChargeDensityTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => true;
3130
protected override double CoulombsPerCubicMeterInOneCoulombPerCubicMeter => 1;
3231
}
3332
}

UnitsNet.Tests/CustomCode/ElectricChargeTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class ElectricChargeTests : ElectricChargeTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => false;
1110
protected override double CoulombsInOneCoulomb => 1;
1211
protected override double MilliampereHoursInOneCoulomb => 2.77777777777e-1;
1312
protected override double AmpereHoursInOneCoulomb => 2.77777777777e-4;

UnitsNet.Tests/CustomCode/ElectricConductanceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricConductanceTests : ElectricConductanceTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double SiemensInOneSiemens => 1;
3231

3332
protected override double MillisiemensInOneSiemens => 1E3;

UnitsNet.Tests/CustomCode/ElectricConductivityTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricConductivityTests : ElectricConductivityTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => true;
3130
protected override double SiemensPerMeterInOneSiemensPerMeter => 1;
3231
protected override double SiemensPerInchInOneSiemensPerMeter => 2.54e-2;
3332
protected override double SiemensPerFootInOneSiemensPerMeter => 3.048e-1;

UnitsNet.Tests/CustomCode/ElectricCurrentDensityTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricCurrentDensityTests : ElectricCurrentDensityTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => true;
3130
protected override double AmperesPerSquareMeterInOneAmperePerSquareMeter => 1;
3231
protected override double AmperesPerSquareInchInOneAmperePerSquareMeter => 6.4516e-4;
3332
protected override double AmperesPerSquareFootInOneAmperePerSquareMeter => 9.290304e-2;

UnitsNet.Tests/CustomCode/ElectricCurrentGradientTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricCurrentGradientTests : ElectricCurrentGradientTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double AmperesPerSecondInOneAmperePerSecond => 1;
3231
protected override double AmperesPerMillisecondInOneAmperePerSecond => 1e-03;
3332
protected override double AmperesPerMicrosecondInOneAmperePerSecond => 1e-06;

UnitsNet.Tests/CustomCode/ElectricCurrentTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class ElectricCurrentTests : ElectricCurrentTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => true;
1110
protected override double PicoamperesInOneAmpere => 1e12;
1211

1312
protected override double NanoamperesInOneAmpere => 1e9;

UnitsNet.Tests/CustomCode/ElectricFieldTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricFieldTests : ElectricFieldTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => true;
3130
protected override double VoltsPerMeterInOneVoltPerMeter => 1;
3231
}
3332
}

UnitsNet.Tests/CustomCode/ElectricInductanceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricInductanceTests : ElectricInductanceTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double HenriesInOneHenry => 1;
3231
protected override double NanohenriesInOneHenry => 1e9;
3332
protected override double MicrohenriesInOneHenry => 1e6;

UnitsNet.Tests/CustomCode/ElectricPotentialAcTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricPotentialAcTests : ElectricPotentialAcTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double KilovoltsAcInOneVoltAc => 1e-3;
3231

3332
protected override double MegavoltsAcInOneVoltAc => 1e-6;

UnitsNet.Tests/CustomCode/ElectricPotentialChangeRateTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ namespace UnitsNet.Tests.CustomCode
2323
{
2424
public class ElectricPotentialChangeRateTests : ElectricPotentialChangeRateTestsBase
2525
{
26-
protected override bool SupportsSIUnitSystem => true;
2726
protected override double KilovoltsPerHoursInOneVoltPerSecond => 3.6;
2827
protected override double KilovoltsPerMicrosecondsInOneVoltPerSecond => 1e-09;
2928
protected override double KilovoltsPerMinutesInOneVoltPerSecond => 6e-2;

UnitsNet.Tests/CustomCode/ElectricPotentialDcTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class ElectricPotentialDcTests : ElectricPotentialDcTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double KilovoltsDcInOneVoltDc => 1e-3;
3231

3332
protected override double MegavoltsDcInOneVoltDc => 1e-6;

UnitsNet.Tests/CustomCode/ElectricPotentialTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class ElectricPotentialTests : ElectricPotentialTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => true;
1110
protected override double MicrovoltsInOneVolt => 1e6;
1211

1312
protected override double MillivoltsInOneVolt => 1e3;

UnitsNet.Tests/CustomCode/ElectricResistanceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class ElectricResistanceTests : ElectricResistanceTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => false;
1110
protected override double MicroohmsInOneOhm => 1e6;
1211

1312
protected override double MilliohmsInOneOhm => 1000;

UnitsNet.Tests/CustomCode/ElectricSurfaceChargeDensityTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace UnitsNet.Tests.CustomCode
2626
{
2727
public class ElectricSurfaceChargeDensityTests : ElectricSurfaceChargeDensityTestsBase
2828
{
29-
protected override bool SupportsSIUnitSystem => true;
3029
protected override double CoulombsPerSquareMeterInOneCoulombPerSquareMeter => 1.0;
3130

3231
protected override double CoulombsPerSquareCentimeterInOneCoulombPerSquareMeter => 1.0e-4;

UnitsNet.Tests/CustomCode/EnergyTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class EnergyTests : EnergyTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => true;
1211
protected override double ThermsImperialInOneJoule => 9.478171203551087813109937767482e-9;
1312

1413
protected override double JoulesInOneJoule => 1;

UnitsNet.Tests/CustomCode/EntropyTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class EntropyTests : EntropyTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double CaloriesPerKelvinInOneJoulePerKelvin => 0.239006;
3231
protected override double JoulesPerDegreeCelsiusInOneJoulePerKelvin => 1e0;
3332
protected override double JoulesPerKelvinInOneJoulePerKelvin => 1e0;

UnitsNet.Tests/CustomCode/ForceChangeRateTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace UnitsNet.Tests.CustomCode
55
{
66
public class ForceChangeRateTests : ForceChangeRateTestsBase
77
{
8-
protected override bool SupportsSIUnitSystem => false;
98
protected override double NewtonsPerMinuteInOneNewtonPerSecond => 60;
109
protected override double DecanewtonsPerMinuteInOneNewtonPerSecond => 6;
1110
protected override double KilonewtonsPerMinuteInOneNewtonPerSecond => 0.06;

UnitsNet.Tests/CustomCode/ForcePerLengthTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ namespace UnitsNet.Tests.CustomCode
2323
{
2424
public class ForcePerLengthTests : ForcePerLengthTestsBase
2525
{
26-
protected override bool SupportsSIUnitSystem => false;
2726
protected override double KilopoundsForcePerInchInOneNewtonPerMeter => 5.710147162769201E-6;
2827
protected override double KilogramsForcePerMillimeterInOneNewtonPerMeter => 1.019716212977928e-4;
2928
protected override double KilogramsForcePerCentimeterInOneNewtonPerMeter => 1.019716212977928e-3;

UnitsNet.Tests/CustomCode/ForceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class ForceTests : ForceTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => true;
1110
protected override double DecanewtonsInOneNewton => 1E-1;
1211
protected override double DyneInOneNewton => 1E5;
1312

UnitsNet.Tests/CustomCode/FrequencyTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnitsNet.Tests.CustomCode
77
{
88
public class FrequencyTests : FrequencyTestsBase
99
{
10-
protected override bool SupportsSIUnitSystem => false;
1110
protected override double HertzInOneHertz => 1;
1211

1312
protected override double KilohertzInOneHertz => 1e-3;

UnitsNet.Tests/CustomCode/FuelEfficiencyTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ namespace UnitsNet.Tests.CustomCode
2323
{
2424
public class FuelEfficiencyTests : FuelEfficiencyTestsBase
2525
{
26-
protected override bool SupportsSIUnitSystem => false;
2726
protected override double KilometersPerLitersInOneLiterPer100Kilometers => 100;
2827
protected override double LitersPer100KilometersInOneLiterPer100Kilometers => 1;
2928
protected override double MilesPerUkGallonInOneLiterPer100Kilometers => 282.4809363;

UnitsNet.Tests/CustomCode/HeatFluxTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ namespace UnitsNet.Tests.CustomCode
2828
{
2929
public class HeatFluxTests : HeatFluxTestsBase
3030
{
31-
protected override bool SupportsSIUnitSystem => true;
3231
protected override double BtusPerHourSquareFootInOneWattPerSquareMeter => 3.16998331e-1;
3332
protected override double BtusPerMinuteSquareFootInOneWattPerSquareMeter => 5.28330551e-3;
3433
protected override double BtusPerSecondSquareFootInOneWattPerSquareMeter => 8.80550918e-5;

UnitsNet.Tests/CustomCode/HeatTransferCoefficientTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class HeatTransferCoefficientTests : HeatTransferCoefficientTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double WattsPerSquareMeterCelsiusInOneWattPerSquareMeterKelvin => 1;
3231
protected override double WattsPerSquareMeterKelvinInOneWattPerSquareMeterKelvin => 1;
3332
protected override double BtusPerSquareFootDegreeFahrenheitInOneWattPerSquareMeterKelvin => 1.7611018368230584e-1;

UnitsNet.Tests/CustomCode/IlluminanceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class IlluminanceTests : IlluminanceTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double MilliluxInOneLux => 1E3;
3231

3332
protected override double LuxInOneLux => 1;

UnitsNet.Tests/CustomCode/InformationTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace UnitsNet.Tests.CustomCode
88
{
99
public class InformationTests : InformationTestsBase
1010
{
11-
protected override bool SupportsSIUnitSystem => false;
1211
protected override double BitsInOneBit => 1d;
1312

1413
protected override double BytesInOneBit => 0.125d;

UnitsNet.Tests/CustomCode/IrradianceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class IrradianceTests : IrradianceTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double KilowattsPerSquareCentimeterInOneWattPerSquareMeter => 1e-7;
3231

3332
protected override double KilowattsPerSquareMeterInOneWattPerSquareMeter => 1e-3;

UnitsNet.Tests/CustomCode/IrradiationTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace UnitsNet.Tests.CustomCode
2727
{
2828
public class IrradiationTests : IrradiationTestsBase
2929
{
30-
protected override bool SupportsSIUnitSystem => false;
3130
protected override double JoulesPerSquareMeterInOneJoulePerSquareMeter => 1;
3231

3332
protected override double KilojoulesPerSquareMeterInOneJoulePerSquareMeter => 1E-3;

0 commit comments

Comments
 (0)