Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ExpressionTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/ExpressionTest
Modified Files:
QueryByExampleTest.cs
Log Message:
* Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider
* Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases.
* Changed sessions.OpenSession() to OpenSession() in all tests
* Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions.
Index: QueryByExampleTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** QueryByExampleTest.cs 18 Apr 2005 02:55:29 -0000 1.5
--- QueryByExampleTest.cs 5 May 2005 19:27:55 -0000 1.6
***************
*** 31,35 ****
public void TestSimpleQBE()
{
! using( ISession s = sessions.OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
--- 31,35 ----
public void TestSimpleQBE()
{
! using( ISession s = OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
***************
*** 48,52 ****
public void TestJunctionNotExpressionQBE()
{
! using( ISession s = sessions.OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
--- 48,52 ----
public void TestJunctionNotExpressionQBE()
{
! using( ISession s = OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
***************
*** 70,74 ****
public void TestExcludingQBE()
{
! using( ISession s = sessions.OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
--- 70,74 ----
public void TestExcludingQBE()
{
! using( ISession s = OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
***************
*** 96,100 ****
private void InitData()
{
! using( ISession s = sessions.OpenSession() )
{
Componentizable master = GetMaster("hibernate", "ORM tool", "ORM tool1");
--- 96,100 ----
private void InitData()
{
! using( ISession s = OpenSession() )
{
Componentizable master = GetMaster("hibernate", "ORM tool", "ORM tool1");
***************
*** 103,107 ****
}
! using( ISession s = sessions.OpenSession() )
{
Componentizable master = GetMaster("hibernate", "open source", "open source1");
--- 103,107 ----
}
! using( ISession s = OpenSession() )
{
Componentizable master = GetMaster("hibernate", "open source", "open source1");
***************
*** 110,114 ****
}
! using( ISession s = sessions.OpenSession() )
{
Componentizable master = GetMaster("hibernate", null, null);
--- 110,114 ----
}
! using( ISession s = OpenSession() )
{
Componentizable master = GetMaster("hibernate", null, null);
***************
*** 120,124 ****
private void DeleteData()
{
! using( ISession s = sessions.OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
--- 120,124 ----
private void DeleteData()
{
! using( ISession s = OpenSession() )
using( ITransaction t = s.BeginTransaction() )
{
|