Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16606/NHibernate.Test/NHSpecificTest
Modified Files:
SubclassFixture.cs
Log Message:
Added test for access="nosetter"
Index: SubclassFixture.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/SubclassFixture.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SubclassFixture.cs 9 Jun 2004 01:06:22 -0000 1.1
--- SubclassFixture.cs 23 Aug 2004 13:13:25 -0000 1.2
***************
*** 25,31 ****
ISession s1 = sessions.OpenSession();
ITransaction t1 = s1.BeginTransaction();
JoinedSubclassOne one1 = new JoinedSubclassOne();
! one1.Id = 2;
one1.TestDateTime = new System.DateTime(2003, 10, 17);
one1.TestString = "the test one string";
--- 25,33 ----
ISession s1 = sessions.OpenSession();
ITransaction t1 = s1.BeginTransaction();
+ int oneId;
+ int baseId;
JoinedSubclassOne one1 = new JoinedSubclassOne();
!
one1.TestDateTime = new System.DateTime(2003, 10, 17);
one1.TestString = "the test one string";
***************
*** 33,45 ****
one1.OneTestLong = 1;
! s1.Save(one1);
JoinedSubclassBase base1 = new JoinedSubclassBase();
- base1.Id = 1;
base1.TestDateTime = new System.DateTime(2003, 10, 17);
base1.TestString = "the test string";
base1.TestLong = 5;
! s1.Save(base1);
t1.Commit();
--- 35,46 ----
one1.OneTestLong = 1;
! oneId = (int)s1.Save(one1);
JoinedSubclassBase base1 = new JoinedSubclassBase();
base1.TestDateTime = new System.DateTime(2003, 10, 17);
base1.TestString = "the test string";
base1.TestLong = 5;
! baseId = (int)s1.Save(base1);
t1.Commit();
***************
*** 51,56 ****
// perform a load based on the base class
! JoinedSubclassBase base2 = (JoinedSubclassBase)s2.Load(typeof(JoinedSubclassBase), 1);
! JoinedSubclassBase oneBase2 = (JoinedSubclassBase)s2.Load(typeof(JoinedSubclassBase), 2);
// do some quick checks to make sure s2 loaded an object with the same data as s2 saved.
--- 52,57 ----
// perform a load based on the base class
! JoinedSubclassBase base2 = (JoinedSubclassBase)s2.Load(typeof(JoinedSubclassBase), baseId);
! JoinedSubclassBase oneBase2 = (JoinedSubclassBase)s2.Load(typeof(JoinedSubclassBase), oneId);
// do some quick checks to make sure s2 loaded an object with the same data as s2 saved.
|