From: Sergey K. <jus...@us...> - 2005-05-05 19:28:49
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyInterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/ProxyInterface Modified Files: CastleProxyFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: CastleProxyFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyInterface/CastleProxyFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CastleProxyFixture.cs 17 Jan 2005 03:40:52 -0000 1.2 --- CastleProxyFixture.cs 5 May 2005 19:28:03 -0000 1.3 *************** *** 21,25 **** public void Proxy() { ! ISession s = sessions.OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; --- 21,25 ---- public void Proxy() { ! ISession s = OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; *************** *** 29,33 **** s.Close(); ! s = sessions.OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.IsFalse( NHibernateUtil.IsInitialized( ap ) ); --- 29,33 ---- s.Close(); ! s = OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.IsFalse( NHibernateUtil.IsInitialized( ap ) ); *************** *** 44,48 **** public void ProxySerialize() { ! ISession s = sessions.OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; --- 44,48 ---- public void ProxySerialize() { ! ISession s = OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; *************** *** 52,56 **** s.Close(); ! s = sessions.OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.AreEqual( 1, ap.Id ); --- 52,56 ---- s.Close(); ! s = OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.AreEqual( 1, ap.Id ); *************** *** 83,87 **** public void SerializeNotFoundProxy() { ! ISession s = sessions.OpenSession(); // this does not actually exists in db CastleProxy notThere = (CastleProxy)s.Load( typeof(CastleProxyImpl), 5 ); --- 83,87 ---- public void SerializeNotFoundProxy() { ! ISession s = OpenSession(); // this does not actually exists in db CastleProxy notThere = (CastleProxy)s.Load( typeof(CastleProxyImpl), 5 ); |