diff --git a/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs b/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs index 2de40b218..0bdd2a592 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs @@ -357,6 +357,13 @@ public void HumanizesBytes(double input, string format, string expectedValue) { Assert.Equal(expectedValue, input.Bytes().Humanize(format)); } + + [Fact] + public void HumanizesBytesInterpolatedShorthand() + { + Assert.Equal("2.07 KB", $"{2123.Bytes():#.##}"); // fails + //Assert.Equal("2.07 KB", size.Bytes().Humanize("#.##")); // ok + } [Fact] public void ByteBits()