Skip to content

Commit

Permalink
named paramters
Browse files Browse the repository at this point in the history
  • Loading branch information
neilboyd committed Mar 29, 2022
1 parent 9ca582e commit fdd3eb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public void DaysWithPrecision(int days, int precision, string expected)
[InlineData(52)]
public void TimeSpanWithMinAndMaxUnits_DoesNotReportExcessiveTime(int minutes)
{
var actual = TimeSpan.FromMinutes(minutes).Humanize(2, null, TimeUnit.Hour, TimeUnit.Minute);
var actual = TimeSpan.FromMinutes(minutes).Humanize(2, maxUnit: TimeUnit.Hour, minUnit: TimeUnit.Minute);
var expected = TimeSpan.FromMinutes(minutes).Humanize(2);
Assert.Equal(expected, actual);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Humanizer.Tests.Shared/TimeSpanHumanizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void DaysWithPrecision(int days, int precision, string expected)
[InlineData(52)]
public void TimeSpanWithMinAndMaxUnits_DoesNotReportExcessiveTime(int minutes)
{
var actual = TimeSpan.FromMinutes(minutes).Humanize(2, null, TimeUnit.Hour, TimeUnit.Minute);
var actual = TimeSpan.FromMinutes(minutes).Humanize(2, maxUnit: TimeUnit.Hour, minUnit: TimeUnit.Minute);
var expected = TimeSpan.FromMinutes(minutes).Humanize(2);
Assert.Equal(expected, actual);
}
Expand Down

0 comments on commit fdd3eb6

Please sign in to comment.