Skip to content

Commit 644975b

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
nhibernateGH-3530: Add a meaningful message when TestDouble fails.
1 parent 91a415f commit 644975b

File tree

1 file changed

+1
-1
lines changed
  • src/NHibernate.Test/NHSpecificTest/GH3530

1 file changed

+1
-1
lines changed

src/NHibernate.Test/NHSpecificTest/GH3530/Fixture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void TestDouble(CultureInfo from, CultureInfo to)
189189
{
190190
var entity = session.Get<LocaleEntity>(id);
191191

192-
Assert.True(Math.Abs(doubleValue - entity.DoubleValue) < double.Epsilon);
192+
Assert.True(Math.Abs(doubleValue - entity.DoubleValue) < double.Epsilon, $"Expected: {doubleValue}\nBut was: {entity.DoubleValue}\n");
193193
}
194194
}
195195

0 commit comments

Comments
 (0)