Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16616/NHibernate.Test/NHSpecificTest
Modified Files:
LazyLoadBugTest.cs
Log Message:
added comments about why an exception should be thrown.
Index: LazyLoadBugTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/LazyLoadBugTest.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LazyLoadBugTest.cs 10 Feb 2005 17:48:00 -0000 1.1
--- LazyLoadBugTest.cs 11 Feb 2005 05:15:35 -0000 1.2
***************
*** 1,9 ****
using System;
- using System.Collections;
using NHibernate.DomainModel.NHSpecific;
using NUnit.Framework;
! namespace NHibernate.Test
{
[TestFixture]
--- 1,8 ----
using System;
using NHibernate.DomainModel.NHSpecific;
using NUnit.Framework;
! namespace NHibernate.Test.NHSpecificTest
{
[TestFixture]
***************
*** 42,46 ****
LLParent parent2 = (LLParent)s2.Load( typeof(LLParent), parentId );
! // this should throw an exception
int count = parent2.Children.Count;
}
--- 41,48 ----
LLParent parent2 = (LLParent)s2.Load( typeof(LLParent), parentId );
! // this should throw the exception - the property setter access is not mapped correctly.
! // Because it maintains logic to maintain the collection during the property set it should
! // tell NHibernate to skip the setter and access the field. If it doesn't, then throw
! // a LazyInitializationException.
int count = parent2.Children.Count;
}
|