Skip to content

Commit d08d0d6

Browse files
committed
Fix test case values
Fixes broken test due to previous change
1 parent 5136761 commit d08d0d6

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, MassUnit.Hectogram).ToString());
71+
Assert.Equal("5 hg", new Mass(5, MassUnit.Hectogram).ToString());
7272

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

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

0 commit comments

Comments
 (0)