Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 53b55a1

Browse files
committedFeb 26, 2024
Fix assertions
1 parent 5594016 commit 53b55a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,9 +843,9 @@ public void AutoDetectAliasing()
843843
// s.Flush();
844844
object[] result = (object[]) s.GetNamedQuery("spaceship").UniqueResult();
845845
enterprise = (SpaceShip) result[0];
846-
Assert.IsTrue(50d == enterprise.Speed);
847-
Assert.IsTrue(450d == ExtractDoubleValue(result[1]));
848-
Assert.IsTrue(4500d == ExtractDoubleValue(result[2]));
846+
Assert.That(enterprise.Speed, Is.EqualTo(50d));
847+
Assert.That(ExtractDoubleValue(result[1]), Is.EqualTo(450d));
848+
Assert.That(ExtractDoubleValue(result[2]), Is.EqualTo(4500d));
849849
s.Delete(enterprise);
850850
t.Commit();
851851
s.Close();

0 commit comments

Comments
 (0)
Please sign in to comment.