From: Michael D. <mik...@us...> - 2004-08-31 20:37:39
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9207/src/NHibernate.Test Modified Files: FumTest.cs NHibernate.Test-1.1.csproj ParentChildTest.cs Log Message: Beginning to isolate the Types so I can figure out what is ADO.NET driver problems and which are NHibernate problems. NH works great with Ms Sql 2000, but not so great with MySql & Oracle. Index: ParentChildTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ParentChildTest.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ParentChildTest.cs 13 Aug 2004 13:26:35 -0000 1.7 --- ParentChildTest.cs 31 Aug 2004 20:37:28 -0000 1.8 *************** *** 653,677 **** } ! [Test] ! public void ObjectType() ! { ! ISession s = sessions.OpenSession(); ! Parent g = new Parent(); ! Foo foo = new Foo(); ! g.Any = foo; ! s.Save(g); ! s.Save(foo); ! s.Flush(); ! s.Close(); ! ! s = sessions.OpenSession(); ! g = (Parent)s.Load( typeof(Parent), g.Id ); ! Assert.IsNotNull( g.Any ); ! Assert.IsTrue( g.Any is FooProxy ); ! s.Delete( g.Any ); ! s.Delete(g); ! s.Flush(); ! s.Close(); ! } --- 653,677 ---- } ! // [Test] ! // public void ObjectType() ! // { ! // ISession s = sessions.OpenSession(); ! // Parent g = new Parent(); ! // Foo foo = new Foo(); ! // g.Any = foo; ! // s.Save(g); ! // s.Save(foo); ! // s.Flush(); ! // s.Close(); ! // ! // s = sessions.OpenSession(); ! // g = (Parent)s.Load( typeof(Parent), g.Id ); ! // Assert.IsNotNull( g.Any ); ! // Assert.IsTrue( g.Any is FooProxy ); ! // s.Delete( g.Any ); ! // s.Delete(g); ! // s.Flush(); ! // s.Close(); ! // } Index: FumTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FumTest.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** FumTest.cs 20 Aug 2004 15:34:05 -0000 1.13 --- FumTest.cs 31 Aug 2004 20:37:28 -0000 1.14 *************** *** 368,388 **** ISession s = sessions.OpenSession(); Fo fo = Fo.NewFo(); - IDictionary props = new Hashtable(); - props["foo"] = "bar"; - props["bar"] = "foo"; - fo.Serial = props; fo.Buf = System.Text.Encoding.ASCII.GetBytes("abcdefghij1`23%$*^*$*\n\t"); s.Save( fo, FumTest.FumKey("an instance of fo") ); s.Flush(); - props["x"] = "y"; - s.Flush(); s.Close(); s = sessions.OpenSession(); fo = (Fo)s.Load( typeof(Fo), FumTest.FumKey("an instance of fo") ); - props = (IDictionary)fo.Serial; - Assert.AreEqual( "bar", props["foo"] ); - Assert.AreEqual( "y", props["x"] ); - Assert.AreEqual( 'a', fo.Buf[0] ); fo.Buf[1] = (byte)126; s.Flush(); --- 368,378 ---- Index: NHibernate.Test-1.1.csproj =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHibernate.Test-1.1.csproj,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** NHibernate.Test-1.1.csproj 26 Aug 2004 14:28:43 -0000 1.38 --- NHibernate.Test-1.1.csproj 31 Aug 2004 20:37:28 -0000 1.39 *************** *** 317,320 **** --- 317,330 ---- /> <File + RelPath = "NHSpecificTest\BasicObjectFixture.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "NHSpecificTest\BasicSerializableFixture.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "NHSpecificTest\BlobberInMemoryFixture.cs" SubType = "Code" |