From: <fab...@us...> - 2009-05-05 15:39:13
|
Revision: 4245 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4245&view=rev Author: fabiomaulo Date: 2009-05-05 15:38:45 +0000 (Tue, 05 May 2009) Log Message: ----------- Starting port of AST tests for Updates Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/HQL/Ast/BulkManipulation.cs Modified: trunk/nhibernate/src/NHibernate.Test/HQL/Ast/BulkManipulation.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/HQL/Ast/BulkManipulation.cs 2009-05-05 13:34:01 UTC (rev 4244) +++ trunk/nhibernate/src/NHibernate.Test/HQL/Ast/BulkManipulation.cs 2009-05-05 15:38:45 UTC (rev 4245) @@ -34,6 +34,18 @@ #endregion + #region UPDATES + [Test] + public void IncorrectSyntax() + { + using(ISession s = OpenSession()) + { + Assert.Throws<QueryException>(() => s.CreateQuery("update Human set Human.description = 'xyz' where Human.id = 1 and Human.description is null")); + } + } + + #endregion + #region DELETES [Test] @@ -117,7 +129,7 @@ t.Commit(); s.Close(); data.Cleanup(); - } + } [Test] public void DeleteOnDiscriminatorSubclass() @@ -138,7 +150,7 @@ s.Close(); data.Cleanup(); - } + } [Test] public void DeleteOnJoinedSubclass() @@ -162,7 +174,7 @@ s.Close(); data.Cleanup(); - } + } [Test] public void DeleteOnMappedJoin() @@ -251,7 +263,7 @@ s.Close(); data.Cleanup(); - } + } [Test] public void DeleteRestrictedOnManyToOne() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |