diff --git a/UnitsNet.Tests/CustomCode/VolumeTests.cs b/UnitsNet.Tests/CustomCode/VolumeTests.cs index 17cb52f922..44d7e4e3e4 100644 --- a/UnitsNet.Tests/CustomCode/VolumeTests.cs +++ b/UnitsNet.Tests/CustomCode/VolumeTests.cs @@ -151,8 +151,8 @@ public void VolumeDividedByDurationEqualsVolumeFlow() [Fact] public void VolumeDividedByVolumeFlowEqualsTimeSpan() { - TimeSpan timeSpan = Volume.FromCubicMeters(20) / VolumeFlow.FromCubicMetersPerSecond(2); - Assert.Equal(TimeSpan.FromSeconds(10), timeSpan); + Duration duration = Volume.FromCubicMeters(20) / VolumeFlow.FromCubicMetersPerSecond(2); + Assert.Equal(Duration.FromSeconds(10), duration); } } } diff --git a/UnitsNet/CustomCode/Quantities/Volume.extra.cs b/UnitsNet/CustomCode/Quantities/Volume.extra.cs deleted file mode 100644 index 88d6bf2a51..0000000000 --- a/UnitsNet/CustomCode/Quantities/Volume.extra.cs +++ /dev/null @@ -1,16 +0,0 @@ -// 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 -{ - public partial struct Volume - { - /// Get from divided by . - public static TimeSpan operator /(Volume volume, VolumeFlow volumeFlow) - { - return TimeSpan.FromSeconds(volume.CubicMeters / volumeFlow.CubicMetersPerSecond); - } - } -}