From: Kevin W. <kev...@us...> - 2005-01-06 14:32:21
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15632 Modified Files: FooBarTest.cs Log Message: fix compiler warning Index: FooBarTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** FooBarTest.cs 5 Jan 2005 03:26:36 -0000 1.78 --- FooBarTest.cs 6 Jan 2005 14:32:10 -0000 1.79 *************** *** 488,493 **** int count = 0; ! foreach(object obj in enumerable) { count++; } --- 488,495 ---- int count = 0; ! IEnumerator e = enumerable.GetEnumerator(); ! while( e.MoveNext() ) { + e.Current; count++; } *************** *** 1542,1548 **** string tempKey = b.Key; Assert.IsFalse( NHibernate.IsInitialized(b), "b should have been an unitialized Proxy" ); ! string tempBarString = b.BarString; Assert.IsTrue( NHibernate.IsInitialized(b), "b should have been an initialized Proxy" ); ! BarProxy b2 = (BarProxy)s.Load( typeof(Bar), b.Key ); Qux q2 = (Qux)s.Load( typeof(Qux), q.Key ); Assert.AreSame( q, q2, "loaded same Qux" ); --- 1544,1550 ---- string tempKey = b.Key; Assert.IsFalse( NHibernate.IsInitialized(b), "b should have been an unitialized Proxy" ); ! b.BarString; Assert.IsTrue( NHibernate.IsInitialized(b), "b should have been an initialized Proxy" ); ! BarProxy b2 = (BarProxy)s.Load( typeof(Bar), tempKey ); Qux q2 = (Qux)s.Load( typeof(Qux), q.Key ); Assert.AreSame( q, q2, "loaded same Qux" ); *************** *** 2246,2250 **** while( enumer.MoveNext() ) { ! object obj = enumer.Current; } --- 2248,2252 ---- while( enumer.MoveNext() ) { ! enumer.Current; } *************** *** 2292,2296 **** while( enumer.MoveNext() ) { ! object obj = enumer.Current; } --- 2294,2298 ---- while( enumer.MoveNext() ) { ! enumer.Current; } *************** *** 2675,2679 **** try { ! int i = q.MoreFums.Count; } catch (LazyInitializationException lie) --- 2677,2681 ---- try { ! q.MoreFums.Count; } catch (LazyInitializationException lie) *************** *** 2687,2691 **** try { ! int j = q.Fums.Count; } catch (LazyInitializationException lie) --- 2689,2693 ---- try { ! q.Fums.Count; } catch (LazyInitializationException lie) *************** *** 2905,2909 **** s = sessions.OpenSession(); one = (One)s.Load( typeof(One), one.Key ); ! int count = one.Manies.Count; s.Close(); --- 2907,2911 ---- s = sessions.OpenSession(); one = (One)s.Load( typeof(One), one.Key ); ! one.Manies.Count; s.Close(); *************** *** 3290,3294 **** try { ! bool somevalue = ( (FooProxy)s.Load( typeof(Foo), id )).Boolean; } // this won't work until Proxies are implemented because now it throws an --- 3292,3296 ---- try { ! ( (FooProxy)s.Load( typeof(Foo), id )).Boolean; } // this won't work until Proxies are implemented because now it throws an *************** *** 3412,3416 **** Baz baz = new Baz(); Iesi.Collections.ISet bars = new Iesi.Collections.HashedSet(); - object emptyObject = new object(); baz.CascadingBars = bars; s.Save(baz); --- 3414,3417 ---- |