Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30913/src/NHibernate.Test/NHSpecificTest
Modified Files:
GetTest.cs
Log Message:
- Doc Fixture Test now clean up properly.
- GetTest no longer has test case order dependency problems with id values.
Index: GetTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/GetTest.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** GetTest.cs 6 May 2005 23:41:17 -0000 1.5
--- GetTest.cs 7 May 2005 14:18:35 -0000 1.6
***************
*** 13,16 ****
--- 13,18 ----
get
{
+ // have to use classes with proxies to test difference
+ // between Get() and Load()
return new string[] { "ABCProxy.hbm.xml" };
}
***************
*** 42,46 ****
"Load should not initialize the object" );
! Assert.IsNotNull( s.Load( typeof( A ), 2 ),
"Loading non-existent object should not return null" );
}
--- 44,48 ----
"Load should not initialize the object" );
! Assert.IsNotNull( s.Load( typeof( A ), ( a.Id + 1 ) ),
"Loading non-existent object should not return null" );
}
***************
*** 52,56 ****
"Get should initialize the object" );
! Assert.IsNull( s.Get( typeof( A ), 2 ),
"Getting non-existent object should return null" );
}
--- 54,58 ----
"Get should initialize the object" );
! Assert.IsNull( s.Get( typeof( A ), ( a.Id + 1 ) ),
"Getting non-existent object should return null" );
}
|