From: Michael D. <mik...@us...> - 2004-04-28 14:18:04
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20703/NHibernate.Test Modified Files: FooBarTest.cs Log Message: Fixed part of the Sortables test dealing with the Sets and the use of [index] Index: FooBarTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** FooBarTest.cs 26 Apr 2004 03:49:08 -0000 1.14 --- FooBarTest.cs 28 Apr 2004 14:17:54 -0000 1.15 *************** *** 67,71 **** [Test] ! [Ignore("unknown problem")] public void Sortables() { --- 67,71 ---- [Test] ! [Ignore("HQL is broke")] public void Sortables() { *************** *** 90,94 **** b = (Baz) result[0]; Assert.IsTrue( b.sortablez.Count==3 ); ! Assert.AreEqual( ( (Sortable) b.sortablez[0] ).name, "bar" ); s.Flush(); t.Commit(); --- 90,103 ---- b = (Baz) result[0]; Assert.IsTrue( b.sortablez.Count==3 ); ! ! // compare the first item in the "Set" sortablez - can't reference ! // the first item using b.sortablez[0] because it thinks 0 is the ! // DictionaryEntry key - not the index. ! foreach(DictionaryEntry de in b.sortablez) ! { ! Assert.AreEqual( ((Sortable)de.Key).name, "bar"); ! break; ! } ! s.Flush(); t.Commit(); |