Skip to content

Commit 19065a6

Browse files
committed
Adding GetDefaultAbbreviation(UnitInfo unitInfo) test
1 parent 295e10c commit 19065a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

UnitsNet.Tests/UnitAbbreviationsCacheTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public void GetDefaultAbbreviationReturnsTheExpectedAbbreviationWhenConstructedW
8787
Assert.Multiple(checks:
8888
[
8989
() => { Assert.Equal("g", new UnitAbbreviationsCache([Mass.Info]).GetDefaultAbbreviation(MassUnit.Gram, AmericanCulture)); },
90-
() => { Assert.Equal("g", new UnitAbbreviationsCache([Mass.Info]).GetDefaultAbbreviation(typeof(MassUnit), (int)MassUnit.Gram, AmericanCulture)); }
90+
() => { Assert.Equal("g", new UnitAbbreviationsCache([Mass.Info]).GetDefaultAbbreviation(typeof(MassUnit), (int)MassUnit.Gram, AmericanCulture)); },
91+
() => { Assert.Equal("g", new UnitAbbreviationsCache([Mass.Info]).GetDefaultAbbreviation(Mass.Info[MassUnit.Gram])); }
9192
]);
9293
}
9394

0 commit comments

Comments
 (0)