From: Paul H. <pha...@us...> - 2005-03-21 12:11:56
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23634/nhibernate/src/NHibernate.Test Modified Files: NHibernate.Test-1.1.csproj Added Files: SQLLoaderTest.cs Log Message: Index: NHibernate.Test-1.1.csproj =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHibernate.Test-1.1.csproj,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** NHibernate.Test-1.1.csproj 15 Mar 2005 14:08:12 -0000 1.66 --- NHibernate.Test-1.1.csproj 21 Mar 2005 12:11:46 -0000 1.67 *************** *** 201,204 **** --- 201,209 ---- /> <File + RelPath = "SQLLoaderTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestCase.cs" SubType = "Code" *************** *** 226,229 **** --- 231,239 ---- /> <File + RelPath = "CfgTest\DefaultNsAssmFixture.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "CfgTest\HbmOrderingFixture.cs" SubType = "Code" *************** *** 443,446 **** --- 453,461 ---- /> <File + RelPath = "NHSpecificTest\CollectionFixture.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "NHSpecificTest\GetTest.cs" SubType = "Code" *************** *** 473,476 **** --- 488,496 ---- /> <File + RelPath = "NHSpecificTest\SimpleFooBarFixture.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "NHSpecificTest\UnsavedValueFixture.cs" SubType = "Code" --- NEW FILE: SQLLoaderTest.cs --- using System; using System.Collections; using NHibernate.DomainModel; using NUnit.Framework; namespace NHibernate.Test { /// <summary> /// Summary description for SQLLoaderTest. /// </summary> [TestFixture] public class SQLLoaderTest : TestCase { #region NUnit.Framework.TestFixture Members [TestFixtureSetUp] public void TestFixtureSetUp() { ExportSchema( new string[] { "ABC.hbm.xml", "Category.hbm.xml", "Simple.hbm.xml", "Fo.hbm.xml", "SingleSeveral.hbm.xml", "Componentizable.hbm.xml" } ); } [SetUp] public void SetUp() { // there are test in here where we don't need to resetup the // tables - so only set the tables up once } [TearDown] public override void TearDown() { // do nothing except not let the base TearDown get called } [TestFixtureTearDown] public void TestFixtureTearDown() { base.TearDown(); } #endregion static int nextInt = 1; static long nextLong = 1; [Test] public void TestTS() { /* if ( Dialect is NHibernate.Dialect.Oracle9Dialect ) { return; } */ ISession session = sessions.OpenSession(); Simple sim = new Simple(); sim.Date = DateTime.Now; session.Save( sim, 1 ); IQuery q = session.CreateSQLQuery( "select {sim.*} from Simple {sim} where {sim}.date_ = ?", "sim", typeof( Simple ) ); q.SetTimestamp( 0, sim.Date ); Assert.AreEqual( 1, q.List().Count, "q.List.Count"); session.Delete( sim ); session.Flush(); session.Close(); } [Test] [Ignore("Test not written")] public void TestFindBySQLStar() { } [Test] [Ignore("Test not written")] public void TestFindBySQLProperties() { } [Test] [Ignore("Test not written")] public void TestFindBySQLAssociatedObject() { } [Test] [Ignore("Test not written")] public void TestFindBySQLMultipleObject() { } [Test] [Ignore("Test not written")] public void TestFindBySQLParameters() { } [Test] [Ignore("Test not written")] public void TestEscapedODBC() { } [Test] [Ignore("Test not written")] public void TestDoubleAliasing() { } [Test] [Ignore("Test not written")] public void TestEmbeddedCompositeProperties() { } [Test] [Ignore("Test not written")] public void TestComponentStar() { } [Test] [Ignore("Test not written")] public void TestComponentNoStar() { } private void ComponentTest() { } [Test] [Ignore("Test not written")] public void TestFindSimpleBySQL() { } [Test] [Ignore("Test not written")] public void TestFindBySQLSimpleByDiffSessions() { } [Test] [Ignore("Test not written")] public void TestFindBySQLDiscriminatorSameSession() { } [Test] [Ignore("Test not written")] public void TestFindBySQLDiscriminatedDiffSessions() { } [Test] [Ignore("Test not written")] public void TestNamedSQLQuery() { } } } |