Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19224/src/NHibernate.Test
Modified Files:
FooBarTest.cs FumTest.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: FooBarTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** FooBarTest.cs 19 Aug 2004 18:38:00 -0000 1.59
--- FooBarTest.cs 31 Aug 2004 21:24:37 -0000 1.60
***************
*** 3012,3039 ****
[Test]
- public void ObjectType()
- {
- ISession s = sessions.OpenSession();
- GlarchProxy g = new Glarch();
- Foo foo = new Foo();
- g.Any = foo;
- object gid = s.Save(g);
- object fid = s.Save(foo);
- s.Flush();
- s.Close();
-
- s = sessions.OpenSession();
- g = (GlarchProxy)s.Load( typeof(Glarch), gid );
- Assert.IsNotNull( g.Any );
- Assert.IsTrue( g.Any is FooProxy );
- Assert.AreEqual( fid, ((FooProxy)g.Any).Key );
- s.Delete(g.Any);
- s.Delete(g);
- s.Flush();
- s.Close();
-
- }
-
- [Test]
public void Any()
{
--- 3012,3015 ----
Index: FumTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FumTest.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** FumTest.cs 31 Aug 2004 20:37:28 -0000 1.14
--- FumTest.cs 31 Aug 2004 21:24:37 -0000 1.15
***************
*** 368,372 ****
ISession s = sessions.OpenSession();
Fo fo = Fo.NewFo();
- fo.Buf = System.Text.Encoding.ASCII.GetBytes("abcdefghij1`23%$*^*$*\n\t");
s.Save( fo, FumTest.FumKey("an instance of fo") );
s.Flush();
--- 368,371 ----
***************
*** 375,379 ****
s = sessions.OpenSession();
fo = (Fo)s.Load( typeof(Fo), FumTest.FumKey("an instance of fo") );
! fo.Buf[1] = (byte)126;
s.Flush();
s.Close();
--- 374,378 ----
s = sessions.OpenSession();
fo = (Fo)s.Load( typeof(Fo), FumTest.FumKey("an instance of fo") );
! fo.X = 5;
s.Flush();
s.Close();
***************
*** 381,385 ****
s = sessions.OpenSession();
fo = (Fo)s.Load( typeof(Fo), FumTest.FumKey("an instance of fo") );
! Assert.AreEqual( 126, fo.Buf[1] );
IEnumerator enumer = s.Enumerable("from fo in class NHibernate.DomainModel.Fo where fo.id.String like 'an instance of fo'").GetEnumerator();
Assert.IsTrue( enumer.MoveNext() );
--- 380,384 ----
s = sessions.OpenSession();
fo = (Fo)s.Load( typeof(Fo), FumTest.FumKey("an instance of fo") );
! Assert.AreEqual( 5, fo.X );
IEnumerator enumer = s.Enumerable("from fo in class NHibernate.DomainModel.Fo where fo.id.String like 'an instance of fo'").GetEnumerator();
Assert.IsTrue( enumer.MoveNext() );
|