Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28331/src/NHibernate.Test
Modified Files:
ABCTest.cs
Log Message:
ABCTest.cs: added missing test
Index: ABCTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ABCTest.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ABCTest.cs 31 Mar 2005 12:42:39 -0000 1.11
--- ABCTest.cs 24 Apr 2005 10:29:30 -0000 1.12
***************
*** 47,59 ****
[Test]
! [Ignore("Test not written")]
public void HigherLevelIndexDefinition()
{
}
[Test]
- [Ignore("Test not written")]
public void Subselect()
{
}
--- 47,90 ----
[Test]
! [Ignore("Requires TestCase refactoring to H2.1")]
public void HigherLevelIndexDefinition()
{
+ /*
+ string[] commands = Cfg.GenerateSchemaCreationScript( Dialect );
+ int max = commands.Length;
+ bool found = false;
+
+ foreach( string command in commands )
+ {
+ System.Console.WriteLine("Checking command : " + command);
+ found = command.IndexOf("create index indx_a_name") >= 0;
+ if (found)
+ break;
+ }
+ Assert.IsTrue( found, "Unable to locate indx_a_name index creation" );
+ */
}
[Test]
public void Subselect()
{
+ using( ISession s = sessions.OpenSession() )
+ using( ITransaction t = s.BeginTransaction() )
+ {
+ B b = new B();
+ IDictionary map = new Hashtable();
+ map["a"] = "a";
+ map["b"] = "b";
+ b.Map = map;
+ s.Save(b);
+ t.Commit();
+ }
+
+ using( ISession s = sessions.OpenSession() )
+ using( ITransaction t = s.BeginTransaction() )
+ {
+ B b = (B) s.CreateQuery("from B").UniqueResult();
+ t.Commit();
+ }
}
***************
*** 123,132 ****
s.Close();
}
-
- [Test]
- [Ignore("Test not written")]
- public void GetSave()
- {
- }
}
}
--- 154,157 ----
|