Skip to content

Commit c4d22e8

Browse files
committed
Fix ProjectionsTests on Oracle and PostgreSQL
1 parent ed07ed4 commit c4d22e8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/NHibernate.Test/Linq/ProjectionsTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public void ProjectAnonymousTypeWithCollection2()
268268
select new { o.OrderLines, A = 1, B = 2 };
269269

270270
var result = query.ToList();
271-
Assert.That(result.Count, Is.Not.EqualTo(0));
271+
Assert.That(result.Count, Is.EqualTo(830));
272272
}
273273

274274
[Test]
@@ -280,7 +280,7 @@ public void ProjectAnonymousTypeWithCollection3()
280280
select new { OrderLines = o.OrderLines.ToList() };
281281

282282
var result = query.ToList();
283-
Assert.That(result.Count, Is.Not.EqualTo(0));
283+
Assert.That(result.Count, Is.EqualTo(830));
284284
}
285285

286286
[Test]
@@ -296,10 +296,10 @@ public void ProjectKnownTypeWithCollection()
296296
};
297297

298298
var result = query.ToList();
299-
Assert.That(result.Count, Is.Not.EqualTo(0));
300-
Assert.That(result[0].ExpandedElement.OrderLines, Is.EqualTo(result[0].ProjectedProperty0));
299+
Assert.That(result.Count, Is.EqualTo(830));
300+
Assert.That(result[0].ExpandedElement.OrderLines, Is.EquivalentTo(result[0].ProjectedProperty0));
301301
}
302-
302+
303303
[Test]
304304
public void ProjectKnownTypeWithCollection2()
305305
{
@@ -313,8 +313,8 @@ public void ProjectKnownTypeWithCollection2()
313313
};
314314

315315
var result = query.ToList();
316-
Assert.That(result.Count, Is.Not.EqualTo(0));
317-
Assert.That(result[0].ExpandedElement.OrderLines, Is.EqualTo(result[0].ProjectedProperty0));
316+
Assert.That(result.Count, Is.EqualTo(830));
317+
Assert.That(result[0].ExpandedElement.OrderLines, Is.EquivalentTo(result[0].ProjectedProperty0));
318318
}
319319

320320
[Test]

0 commit comments

Comments
 (0)