This test fail with the same context (mapping, class) of Ayende?

Create a ticket in jira please, it is a bug

2011/1/10 Boris Drajer <[email protected]>

> [Test]
> public void WillLoadGhostPropertyOnAccess()
> {
>        using (ISession s = OpenSession())
>        {
>                Order order = s.Get<Order>(1);
>                Assert.IsFalse(NHibernateUtil.IsPropertyInitialized(order,
> "Payment"));
>
>                // trigger on-access lazy load
>                var x = order.Payment;
>                Assert.IsTrue(NHibernateUtil.IsPropertyInitialized(order,
> "Payment"));
>        }
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to