Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29120/NHibernate.Test
Modified Files:
FooBarTest.cs
Log Message:
Fixed problems with Properties and compilation.
Index: FooBarTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** FooBarTest.cs 6 Jan 2005 14:32:10 -0000 1.79
--- FooBarTest.cs 13 Jan 2005 20:54:02 -0000 1.80
***************
*** 491,495 ****
while( e.MoveNext() )
{
! e.Current;
count++;
}
--- 491,495 ----
while( e.MoveNext() )
{
! object temp = e.Current;
count++;
}
***************
*** 1544,1548 ****
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 );
--- 1544,1548 ----
string tempKey = b.Key;
Assert.IsFalse( NHibernate.IsInitialized(b), "b should have been an unitialized Proxy" );
! string tempString = b.BarString;
Assert.IsTrue( NHibernate.IsInitialized(b), "b should have been an initialized Proxy" );
BarProxy b2 = (BarProxy)s.Load( typeof(Bar), tempKey );
***************
*** 2248,2252 ****
while( enumer.MoveNext() )
{
! enumer.Current;
}
--- 2248,2252 ----
while( enumer.MoveNext() )
{
! object objTemp = enumer.Current;
}
***************
*** 2294,2298 ****
while( enumer.MoveNext() )
{
! enumer.Current;
}
--- 2294,2298 ----
while( enumer.MoveNext() )
{
! object objTemp = enumer.Current;
}
***************
*** 2677,2681 ****
try
{
! q.MoreFums.Count;
}
catch (LazyInitializationException lie)
--- 2677,2681 ----
try
{
! int countMoreFums = q.MoreFums.Count;
}
catch (LazyInitializationException lie)
***************
*** 2689,2693 ****
try
{
! q.Fums.Count;
}
catch (LazyInitializationException lie)
--- 2689,2693 ----
try
{
! int countFums = q.Fums.Count;
}
catch (LazyInitializationException lie)
***************
*** 2907,2911 ****
s = sessions.OpenSession();
one = (One)s.Load( typeof(One), one.Key );
! one.Manies.Count;
s.Close();
--- 2907,2911 ----
s = sessions.OpenSession();
one = (One)s.Load( typeof(One), one.Key );
! int countManies = one.Manies.Count;
s.Close();
***************
*** 3292,3296 ****
try
{
! ( (FooProxy)s.Load( typeof(Foo), id )).Boolean;
}
// this won't work until Proxies are implemented because now it throws an
--- 3292,3296 ----
try
{
! bool proxyBoolean = ( (FooProxy)s.Load( typeof(Foo), id )).Boolean;
}
// this won't work until Proxies are implemented because now it throws an
|