Skip to content

Commit

Permalink
Replace TimeSpan with Duration as return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Muximize committed Feb 4, 2024
1 parent 16c63f4 commit 79a11c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions UnitsNet.Tests/CustomCode/VolumeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
16 changes: 0 additions & 16 deletions UnitsNet/CustomCode/Quantities/Volume.extra.cs

This file was deleted.

0 comments on commit 79a11c3

Please sign in to comment.