That's right... The first test I've shown is Ayende's and it does pass
although I think it's also faulty. The second one is my own, another
method in the same test class.

Cool, I'll make a JIRA ticket then.

Thanks!


On 10 јан, 18:23, José F. Romaniello <[email protected]> wrote:
> 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