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 7a80b83 commit 5136761Copy full SHA for 5136761
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).ToString(MassUnit.Hectogram));
+ Assert.Equal("50 hg", new Mass(5, MassUnit.Hectogram).ToString());
72
73
// decimal types
74
- Assert.Equal("1 B", new Information(8).ToString(InformationUnit.Byte));
+ Assert.Equal("1 B", new Information(8, InformationUnit.Byte).ToString());
75
76
// logarithmic types
77
- Assert.Equal("0.58 Np", new Level(5).ToString(LevelUnit.Neper));
+ Assert.Equal("0.58 Np", new Level(5, LevelUnit.Neper).ToString());
78
#pragma warning restore 618
79
}
80
0 commit comments