Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2876/src/NHibernate.Test
Modified Files:
Tag: alpha_avalon-proxy
FooBarTest.cs
Log Message:
updated to latest version of DynamicProxy
Index: FooBarTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v
retrieving revision 1.67.2.2
retrieving revision 1.67.2.3
diff -C2 -d -r1.67.2.2 -r1.67.2.3
*** FooBarTest.cs 4 Oct 2004 01:42:46 -0000 1.67.2.2
--- FooBarTest.cs 11 Nov 2004 22:37:21 -0000 1.67.2.3
***************
*** 681,686 ****
Assert.IsTrue(NHibernate.IsInitialized(f.TheFoo));
! //TODO: this is initialized because Proxies are not implemented yet.
! //Assert.IsFalse( NHibernate.IsInitialized(f.component.Glarch) );
s.Delete(f.TheFoo);
--- 681,685 ----
Assert.IsTrue(NHibernate.IsInitialized(f.TheFoo));
! Assert.IsFalse( NHibernate.IsInitialized(f.Component.Glarch) );
s.Delete(f.TheFoo);
***************
*** 1339,1358 ****
}
! //TODO: once proxies is implemented get rid of the try-catch and notFound
! bool notFound = false;
! try
! {
! s.Load( typeof(Qux), (long)666 ); //nonexistent
! }
! catch(ObjectNotFoundException onfe)
! {
! notFound = true;
! Assert.IsNotNull(onfe, "should not find a Qux with id of 666 when Proxies are not implemented.");
! }
! Assert.IsTrue(
! notFound,
! "without proxies working - an ObjectNotFoundException should have been thrown. " +
! "If Proxies are implemented then you need to change this code"
! );
Assert.AreEqual( 1, s.Delete("from g in class Glarch") );
--- 1338,1343 ----
}
! s.Load( typeof(Qux), (long)666 ); //nonexistent
!
Assert.AreEqual( 1, s.Delete("from g in class Glarch") );
***************
*** 1367,1388 ****
stream.Close();
! //TODO: once proxies is implemented get rid of the try-catch and notFound
! notFound = false;
! try
! {
! s.Load( typeof(Qux), (long)666 ) ; //nonexistent
! }
! catch(HibernateException he)
! {
! notFound = true;
! Assert.IsNotNull( he, "should have a session disconnected error when finding a Qux with id of 666 and Proxies are not implemented.");
! }
! Assert.IsTrue(
! notFound,
! "without proxies working - an ADOException/HibernateException should have been thrown. " +
! "If Proxies are implemented then you need to change this code because the ISession does " +
! "not need to be connected to the db when building a Proxy."
! );
!
s.Close();
}
--- 1352,1357 ----
stream.Close();
! s.Load( typeof(Qux), (long)666 ) ; //nonexistent
!
s.Close();
}
|