From: Michael D. <mik...@us...> - 2004-07-28 03:55:18
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26108/NHibernate.Test Modified Files: MasterDetailTest.cs Log Message: Test fixture for dynamic-insert/dynamic-update problem. Not a complete test suite yet, but I believe I found the code problems. Index: MasterDetailTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/MasterDetailTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MasterDetailTest.cs 9 Jun 2004 01:05:46 -0000 1.1 --- MasterDetailTest.cs 28 Jul 2004 03:55:08 -0000 1.2 *************** *** 1,3 **** --- 1,6 ---- using System; + using System.Collections; + + using NHibernate.DomainModel; using NUnit.Framework; *************** *** 17,21 **** ExportSchema(new string[] { "MasterDetail.hbm.xml", ! "Custom.hbm.xml", "Category.hbm.xml", "INameable.hbm.xml", --- 20,24 ---- ExportSchema(new string[] { "MasterDetail.hbm.xml", ! //"Custom.hbm.xml", "Category.hbm.xml", "INameable.hbm.xml", *************** *** 86,92 **** [Test] - [Ignore("Test not yet written")] public void MixNativeAssigned() { } --- 89,112 ---- [Test] public void MixNativeAssigned() { + // if HSQLDialect then skip test + ISession s = sessions.OpenSession(); + Category c = new Category(); + c.Name = "NAME"; + Assignable assn = new Assignable(); + assn.Id = "i.d."; + IList l = new ArrayList(); + l.Add(c); + assn.Categories = l; + c.Assignable = assn; + s.Save(assn); + s.Flush(); + s.Close(); + + s = sessions.OpenSession(); + s.Delete(assn); + s.Flush(); + s.Close(); } |