We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5136761 commit d08d0d6Copy full SHA for d08d0d6
UnitsNet.Tests/QuantityTests.ToString.cs
@@ -68,13 +68,13 @@ public void CreatedByCtorWithValueAndUnit_ReturnsValueAndUnit()
68
{
69
#pragma warning disable 618
70
// double types
71
- Assert.Equal("50 hg", new Mass(5, MassUnit.Hectogram).ToString());
+ Assert.Equal("5 hg", new Mass(5, MassUnit.Hectogram).ToString());
72
73
// decimal types
74
- Assert.Equal("1 B", new Information(8, InformationUnit.Byte).ToString());
+ Assert.Equal("8 B", new Information(8, InformationUnit.Byte).ToString());
75
76
// logarithmic types
77
- Assert.Equal("0.58 Np", new Level(5, LevelUnit.Neper).ToString());
+ Assert.Equal("5 Np", new Level(5, LevelUnit.Neper).ToString());
78
#pragma warning restore 618
79
}
80
0 commit comments