Skip to content

Commit

Permalink
Add tests for NH-2897
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Jun 8, 2012
1 parent 6c8846d commit 5c12e9c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/NHibernate.Test/NHSpecificTest/Futures/LinqFutureFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public void CoalesceShouldWorkForFutures()
}

[Test]
[Ignore("Currently broken, see NH-2897")]
public void CanUseToFutureWithContains()
{
using (var s = sessions.OpenSession())
Expand All @@ -54,7 +53,21 @@ public void CanUseToFutureWithContains()
.ToFuture().ToList();

Assert.IsNotNull(persons10);
Assert.Pass();
}
}

[Test]
public void CanUseToFutureWithContains2()
{
using (var s = sessions.OpenSession())
{
var ids = new[] { 1, 2, 3 };
var persons10 = s.Query<Person>()
.Where(p => ids.Contains(p.Id))
.ToFuture()
.ToList();

Assert.IsNotNull(persons10);
}
}

Expand Down

0 comments on commit 5c12e9c

Please sign in to comment.