Skip to content

Commit 0ba587f

Browse files
author
Dmitry Naumov
committed
Add test for NH-3320
1 parent 1948097 commit 0ba587f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NHibernate.Test/Linq/SelectionTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,14 @@ public void CanProjectWithCast()
320320
// ReSharper restore RedundantCast
321321
}
322322

323+
[Test]
324+
public void CanSelectAfterOrderByAndTake()
325+
{
326+
// NH-3320
327+
var names = db.Users.OrderBy(p => p.Name).Take(3).Select(p => p.Name).ToList();
328+
Assert.AreEqual(3, names.Count);
329+
}
330+
323331
[Test]
324332
public void CanSelectManyWithCast()
325333
{

0 commit comments

Comments
 (0)