Skip to content

Commit 5136761

Browse files
committed
tests: Fix test case not matching its title
1 parent 7a80b83 commit 5136761

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitsNet.Tests/QuantityTests.ToString.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ public void CreatedByCtorWithValueAndUnit_ReturnsValueAndUnit()
6868
{
6969
#pragma warning disable 618
7070
// double types
71-
Assert.Equal("50 hg", new Mass(5).ToString(MassUnit.Hectogram));
71+
Assert.Equal("50 hg", new Mass(5, MassUnit.Hectogram).ToString());
7272

7373
// decimal types
74-
Assert.Equal("1 B", new Information(8).ToString(InformationUnit.Byte));
74+
Assert.Equal("1 B", new Information(8, InformationUnit.Byte).ToString());
7575

7676
// logarithmic types
77-
Assert.Equal("0.58 Np", new Level(5).ToString(LevelUnit.Neper));
77+
Assert.Equal("0.58 Np", new Level(5, LevelUnit.Neper).ToString());
7878
#pragma warning restore 618
7979
}
8080

0 commit comments

Comments
 (0)