Skip to content

Commit

Permalink
Diff order for statistics as string (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko authored Mar 16, 2023
1 parent 7e037e3 commit 26b3c41
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 @@ -69,7 +69,7 @@ public void Measure(TimeSpan duration)
/// <returns>A string that represents the statistics counter.</returns>
public override string ToString()
{
return $"{Count} cnt min/max/avg {Min.TotalMilliseconds:F0}/{Max.TotalMilliseconds:F0}/{Avg.TotalMilliseconds:F0} ms";
return $"{Count} cnt min/avg/max {Min.TotalMilliseconds:F0}/{Avg.TotalMilliseconds:F0}/{Max.TotalMilliseconds:F0} ms";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void ShouldHaveStringRepresentation()
counter.Measure(2.222.Seconds());
counter.Measure(3.333.Seconds());

counter.ToString().Should().Be("3 cnt min/max/avg 1111/3333/2222 ms");
counter.ToString().Should().Be("3 cnt min/avg/max 1111/2222/3333 ms");
}

[Fact]
Expand Down

0 comments on commit 26b3c41

Please sign in to comment.