Skip to content

Commit 0a358cd

Browse files
committed
[GH Usage] Added testcases for ToKiloFormat method
1 parent 43456c4 commit 0a358cd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/NuGetGallery.Facts/Extensions/NumberExtensionsFacts.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ public class TheToKiloFormatMethod
4949
[InlineData(999_000, "999K")]
5050
[InlineData(999_999, "999K")]
5151
[InlineData(1_000_000, "1.00M")]
52-
52+
[InlineData(1_999_000, "1.99M")]
53+
[InlineData(99_990_000, "99.9M")]
54+
[InlineData(100_990_000, "100M")]
55+
[InlineData(999_990_000, "999M")]
56+
[InlineData(1_000_000_000, "1.00G")]
57+
[InlineData(1_999_000_000, "1.99G")]
5358
public void FormatsUsingExpectedUnit(int number, string expected)
5459
{
5560
var actual = NumberExtensions.ToKiloFormat(number);

0 commit comments

Comments
 (0)