From 541ff238da30e608a37a606f1d6bbad06b81dc27 Mon Sep 17 00:00:00 2001 From: Amro El-Fakharany Date: Wed, 17 Sep 2014 09:44:31 +0200 Subject: [PATCH 01/30] Ignore Firebird --- src/NHibernate.Test/NHSpecificTest/NH1981/Fixture.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NHibernate.Test/NHSpecificTest/NH1981/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1981/Fixture.cs index d6bdd0362ac..924f43a3b50 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1981/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1981/Fixture.cs @@ -5,6 +5,12 @@ namespace NHibernate.Test.NHSpecificTest.NH1981 [TestFixture] public class Fixture : BugTestCase { + protected override bool AppliesTo(Dialect.Dialect dialect) + { + // Firebird doesn't support this feature + return !(dialect is Dialect.FirebirdDialect); + } + protected override void OnSetUp() { using (var s = OpenSession()) @@ -24,7 +30,7 @@ protected override void OnTearDown() using (var tx = s.BeginTransaction()) { s.Delete("from Article"); - + tx.Commit(); } } From 4e12ab731433a3d52ab9e3a2ea898f80c2c42d5e Mon Sep 17 00:00:00 2001 From: Amro El-Fakharany Date: Wed, 17 Sep 2014 10:06:59 +0200 Subject: [PATCH 02/30] Ignore drivers that don't support multi queries --- .../NHSpecificTest/NH1989/Fixture.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/NHibernate.Test/NHSpecificTest/NH1989/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1989/Fixture.cs index befb9884ff1..3ecc0da67fd 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1989/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1989/Fixture.cs @@ -15,6 +15,11 @@ namespace NHibernate.Test.NHSpecificTest.NH1989 [TestFixture] public class Fixture : BugTestCase { + protected override bool AppliesTo(ISessionFactoryImplementor factory) + { + return factory.ConnectionProvider.Driver.SupportsMultipleQueries; + } + protected override void OnSetUp() { cfg.Properties[Environment.CacheProvider] = typeof(HashtableCacheProvider).AssemblyQualifiedName; @@ -47,7 +52,7 @@ public void SecondLevelCacheWithSingleCacheableFuture() using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { - User user = new User() { Name="test" }; + User user = new User() { Name = "test" }; s.Save(user); tx.Commit(); } @@ -87,7 +92,7 @@ public void SecondLevelCacheWithDifferentRegionsFuture() using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { - User user = new User() { Name="test" }; + User user = new User() { Name = "test" }; s.Save(user); tx.Commit(); } @@ -129,7 +134,7 @@ public void SecondLevelCacheWithMixedCacheableAndNonCacheableFuture() using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { - User user = new User() { Name="test" }; + User user = new User() { Name = "test" }; s.Save(user); tx.Commit(); } @@ -181,7 +186,7 @@ public void SecondLevelCacheWithMixedCacheRegionsFuture() using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { - User user = new User() { Name="test" }; + User user = new User() { Name = "test" }; s.Save(user); tx.Commit(); } @@ -239,7 +244,7 @@ public void SecondLevelCacheWithSingleCacheableQueryFuture() using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { - User user = new User() { Name="test" }; + User user = new User() { Name = "test" }; s.Save(user); tx.Commit(); } From 1c0f6a32d72dc0c94d24053693b4baaa6e6dcb05 Mon Sep 17 00:00:00 2001 From: Ricardo Peres Date: Tue, 23 Sep 2014 10:58:09 +0100 Subject: [PATCH 03/30] NH-2831 --- src/NHibernate/Mapping/ByCode/ModelMapper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NHibernate/Mapping/ByCode/ModelMapper.cs b/src/NHibernate/Mapping/ByCode/ModelMapper.cs index a79e167efd6..811c83cdb54 100644 --- a/src/NHibernate/Mapping/ByCode/ModelMapper.cs +++ b/src/NHibernate/Mapping/ByCode/ModelMapper.cs @@ -555,7 +555,8 @@ public HbmMapping CompileMappingFor(IEnumerable types) System.Type firstType = typeToMap.FirstOrDefault(); if (firstType != null && typeToMap.All(t => t.Assembly.Equals(firstType.Assembly))) { - defaultAssemblyName = firstType.Assembly.GetName().Name; + //NH-2831: always use the full name of the assembly because it may come from GAC + defaultAssemblyName = firstType.Assembly.GetName().FullName; } if (firstType != null && typeToMap.All(t => t.Namespace == firstType.Namespace)) { From 07f8a86ce243128945489b8e2a42ae1216a6e912 Mon Sep 17 00:00:00 2001 From: Ricardo Peres Date: Wed, 24 Sep 2014 08:36:36 +0100 Subject: [PATCH 04/30] Fixed CompileMappingForEach --- src/NHibernate/Mapping/ByCode/ModelMapper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NHibernate/Mapping/ByCode/ModelMapper.cs b/src/NHibernate/Mapping/ByCode/ModelMapper.cs index 811c83cdb54..b7100257377 100644 --- a/src/NHibernate/Mapping/ByCode/ModelMapper.cs +++ b/src/NHibernate/Mapping/ByCode/ModelMapper.cs @@ -582,15 +582,16 @@ public IEnumerable CompileMappingForEach(IEnumerable ty } var typeToMap = new HashSet(types); + //NH-2831: always use the full name of the assembly because it may come from GAC foreach (System.Type type in RootClasses(typeToMap)) { - var mapping = NewHbmMapping(type.Assembly.GetName().Name, type.Namespace); + var mapping = NewHbmMapping(type.Assembly.GetName().FullName, type.Namespace); MapRootClass(type, mapping); yield return mapping; } foreach (System.Type type in Subclasses(typeToMap)) { - var mapping = NewHbmMapping(type.Assembly.GetName().Name, type.Namespace); + var mapping = NewHbmMapping(type.Assembly.GetName().FullName, type.Namespace); AddSubclassMapping(mapping, type); yield return mapping; } From 2e7764a449f7ae76a2091387b7fafdeedbc66f58 Mon Sep 17 00:00:00 2001 From: Ricardo Peres Date: Thu, 25 Sep 2014 15:21:12 +0100 Subject: [PATCH 05/30] NH-3710 - Can SetLockMode on DetachedCriteria --- .../Criteria/CriteriaQueryTest.cs | 22 ++++++++++++++++++ .../Loader/Criteria/CriteriaLoader.cs | 23 +++++++++++-------- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/src/NHibernate.Test/Criteria/CriteriaQueryTest.cs b/src/NHibernate.Test/Criteria/CriteriaQueryTest.cs index 5863d5da694..2e872792e9d 100644 --- a/src/NHibernate.Test/Criteria/CriteriaQueryTest.cs +++ b/src/NHibernate.Test/Criteria/CriteriaQueryTest.cs @@ -2983,5 +2983,27 @@ public void IgnoreCase() t.Commit(); } } + + [Test] + public void CanSetLockModeOnDetachedCriteria() + { + //NH-3710 + var dc = DetachedCriteria + .For(typeof(Student)) + .SetLockMode(LockMode.Upgrade); + + using (var session = OpenSession()) + using (var tx = session.BeginTransaction()) + { + session.Save(new Student { Name = "Ricardo Peres", StudentNumber = 666, CityState = new CityState("Coimbra", "Portugal") }); + session.Flush(); + + var ec = dc.GetExecutableCriteria(session); + var countExec = CriteriaTransformer.TransformToRowCount(ec); + var countRes = countExec.UniqueResult(); + + Assert.AreEqual(countRes, 1); + } + } } } \ No newline at end of file diff --git a/src/NHibernate/Loader/Criteria/CriteriaLoader.cs b/src/NHibernate/Loader/Criteria/CriteriaLoader.cs index 654884eef81..8dee59a6391 100644 --- a/src/NHibernate/Loader/Criteria/CriteriaLoader.cs +++ b/src/NHibernate/Loader/Criteria/CriteriaLoader.cs @@ -165,20 +165,25 @@ protected override SqlString ApplyLocks(SqlString sqlSelectString, IDictionary aliasedLockModes = new Dictionary(); + //Dictionary aliasedLockModes = new Dictionary(); Dictionary keyColumnNames = dialect.ForUpdateOfColumns ? new Dictionary() : null; string[] drivingSqlAliases = Aliases; - for (int i = 0; i < drivingSqlAliases.Length; i++) + + //NH-3710: if we are issuing an aggregation function, Aliases will be null + if (drivingSqlAliases != null) { - LockMode lockMode; - if (lockModes.TryGetValue(drivingSqlAliases[i], out lockMode)) + for (int i = 0; i < drivingSqlAliases.Length; i++) { - ILockable drivingPersister = (ILockable) EntityPersisters[i]; - string rootSqlAlias = drivingPersister.GetRootTableAlias(drivingSqlAliases[i]); - aliasedLockModes[rootSqlAlias] = lockMode; - if (keyColumnNames != null) + LockMode lockMode; + if (lockModes.TryGetValue(drivingSqlAliases[i], out lockMode)) { - keyColumnNames[rootSqlAlias] = drivingPersister.RootTableIdentifierColumnNames; + ILockable drivingPersister = (ILockable)EntityPersisters[i]; + string rootSqlAlias = drivingPersister.GetRootTableAlias(drivingSqlAliases[i]); + //aliasedLockModes[rootSqlAlias] = lockMode; + if (keyColumnNames != null) + { + keyColumnNames[rootSqlAlias] = drivingPersister.RootTableIdentifierColumnNames; + } } } } From 1a2243db428c0680596de465dd3d10f6a08757a4 Mon Sep 17 00:00:00 2001 From: Ricardo Peres Date: Fri, 26 Sep 2014 16:07:28 +0100 Subject: [PATCH 06/30] NH-3222 - Add unit tests --- .../SqlTest/Query/NativeSQLQueriesFixture.cs | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs b/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs index 362c245e611..f668a32954d 100644 --- a/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs +++ b/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs @@ -1,4 +1,5 @@ using System.Collections; +using System.Linq; using NHibernate.Transform; using NUnit.Framework; using NHibernate.Criterion; @@ -596,5 +597,66 @@ public static void AssertClassAssignability(System.Type source, System.Type targ target.FullName + ">" ); } + + class TestResultSetTransformer : IResultTransformer + { + public bool TransformTupleCalled { get; set; } + public bool TransformListCalled { get; set; } + public object TransformTuple(object[] tuple, string[] aliases) + { + this.TransformTupleCalled = true; + return tuple; + } + public IList TransformList(IList collection) + { + this.TransformListCalled = true; + return collection; + } + } + + [Test] + public void CanSetResultTransformerOnFutureQuery() + { + using (var s = this.OpenSession()) + using (s.BeginTransaction()) + { + s.Save(new Person("Ricardo")); + s.Flush(); + + var transformer = new TestResultSetTransformer(); + var l = s + .CreateSQLQuery("select Name from Person") + .SetResultTransformer(transformer) + .Future(); + + Assert.AreEqual(l.Count(), 1); + Assert.AreEqual("Ricardo", l.ElementAt(0)[0]); + Assert.IsTrue(transformer.TransformListCalled); + Assert.IsTrue(transformer.TransformTupleCalled); + } + } + + [Test] + public void CanSetResultTransformerOnFutureValue() + { + using (var s = this.OpenSession()) + using (s.BeginTransaction()) + { + s.Save(new Person("Ricardo")); + s.Flush(); + + var transformer = new TestResultSetTransformer(); + var l = s + .CreateSQLQuery("select Name from Person") + .SetResultTransformer(transformer) + .FutureValue(); + + var v = l.Value; + + Assert.AreEqual("Ricardo", v[0]); + Assert.IsTrue(transformer.TransformListCalled); + Assert.IsTrue(transformer.TransformTupleCalled); + } + } } } \ No newline at end of file From 3e4fb9fc6e9b1cd5d45aac7b5844ee16c5a41708 Mon Sep 17 00:00:00 2001 From: Ricardo Peres Date: Fri, 26 Sep 2014 18:41:32 +0100 Subject: [PATCH 07/30] NH-3222 - Add unit tests without result transformer --- .../SqlTest/Query/NativeSQLQueriesFixture.cs | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs b/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs index f668a32954d..d9a4d6e07dc 100644 --- a/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs +++ b/src/NHibernate.Test/SqlTest/Query/NativeSQLQueriesFixture.cs @@ -617,6 +617,7 @@ public IList TransformList(IList collection) [Test] public void CanSetResultTransformerOnFutureQuery() { + //NH-3222 using (var s = this.OpenSession()) using (s.BeginTransaction()) { @@ -639,6 +640,7 @@ public void CanSetResultTransformerOnFutureQuery() [Test] public void CanSetResultTransformerOnFutureValue() { + //NH-3222 using (var s = this.OpenSession()) using (s.BeginTransaction()) { @@ -658,5 +660,44 @@ public void CanSetResultTransformerOnFutureValue() Assert.IsTrue(transformer.TransformTupleCalled); } } + + [Test] + public void CanExecuteFutureList() + { + //NH-3222 + using (var s = this.OpenSession()) + using (s.BeginTransaction()) + { + s.Save(new Person("Ricardo")); + s.Flush(); + + var l = s + .CreateSQLQuery("select Name from Person") + .Future(); + + Assert.AreEqual(l.Count(), 1); + Assert.AreEqual("Ricardo", l.ElementAt(0)); + } + } + + [Test] + public void CanExecuteFutureValue() + { + //NH-3222 + using (var s = this.OpenSession()) + using (s.BeginTransaction()) + { + s.Save(new Person("Ricardo")); + s.Flush(); + + var l = s + .CreateSQLQuery("select Name from Person") + .FutureValue(); + + var v = l.Value; + + Assert.AreEqual("Ricardo", v); + } + } } } \ No newline at end of file From 80747110f86e0834d37bb32c3c86b2192cb8f44b Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 11 Oct 2014 14:01:28 +1300 Subject: [PATCH 08/30] NH-3222 - Auto-discover types if query requires so --- src/NHibernate/Impl/MultiQueryImpl.cs | 7 ++++++- src/NHibernate/Loader/Custom/CustomLoader.cs | 2 +- src/NHibernate/Loader/Loader.cs | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/NHibernate/Impl/MultiQueryImpl.cs b/src/NHibernate/Impl/MultiQueryImpl.cs index ab9f7a8f161..a142d29a3ab 100644 --- a/src/NHibernate/Impl/MultiQueryImpl.cs +++ b/src/NHibernate/Impl/MultiQueryImpl.cs @@ -537,6 +537,11 @@ protected List DoList() Loader.Loader.Advance(reader, selection); } + if (parameter.HasAutoDiscoverScalarTypes) + { + translator.Loader.AutoDiscoverTypes(reader); + } + LockMode[] lockModeArray = translator.Loader.GetLockModes(parameter.LockModes); EntityKey optionalObjectKey = Loader.Loader.GetOptionalObjectKey(parameter, session); @@ -631,9 +636,9 @@ private void AggregateQueriesInformation() int queryIndex = 0; foreach (AbstractQueryImpl query in queries) { + query.VerifyParameters(); QueryParameters queryParameters = query.GetQueryParameters(); queryParameters.ValidateParameters(); - query.VerifyParameters(); foreach (var translator in query.GetTranslators(session, queryParameters)) { translators.Add(translator); diff --git a/src/NHibernate/Loader/Custom/CustomLoader.cs b/src/NHibernate/Loader/Custom/CustomLoader.cs index fa59fb50aca..fd94d46b893 100644 --- a/src/NHibernate/Loader/Custom/CustomLoader.cs +++ b/src/NHibernate/Loader/Custom/CustomLoader.cs @@ -311,7 +311,7 @@ public override IList GetResultList(IList results, IResultTransformer resultTran } } - protected override void AutoDiscoverTypes(IDataReader rs) + protected internal override void AutoDiscoverTypes(IDataReader rs) { MetaData metadata = new MetaData(rs); List aliases = new List(); diff --git a/src/NHibernate/Loader/Loader.cs b/src/NHibernate/Loader/Loader.cs index bd4e4853812..1538b85edc8 100644 --- a/src/NHibernate/Loader/Loader.cs +++ b/src/NHibernate/Loader/Loader.cs @@ -1289,7 +1289,7 @@ protected IDataReader GetResultSet(IDbCommand st, bool autoDiscoverTypes, bool c } } - protected virtual void AutoDiscoverTypes(IDataReader rs) + protected internal virtual void AutoDiscoverTypes(IDataReader rs) { throw new AssertionFailure("Auto discover types not supported in this loader"); } From b3b7fe34b396d00ed2ae2e2ed51d6655858d669b Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sun, 12 Oct 2014 00:04:16 +1300 Subject: [PATCH 09/30] NH-2782 - Linq - allow to select into property of array type Fix for NH-2678 (42e537be81faf1fc6e5f0e05ae867616f9a2bbc8) can be partially reverted --- src/NHibernate.Test/Linq/MethodCallTests.cs | 27 +++++++++++++++++++ .../Linq/Visitors/SelectClauseNominator.cs | 5 +++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/NHibernate.Test/Linq/MethodCallTests.cs b/src/NHibernate.Test/Linq/MethodCallTests.cs index 2fa1f284e21..1ced894c85f 100644 --- a/src/NHibernate.Test/Linq/MethodCallTests.cs +++ b/src/NHibernate.Test/Linq/MethodCallTests.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using NHibernate.DomainModel.Northwind.Entities; using NUnit.Framework; @@ -100,6 +101,32 @@ public void CanSelectPropertiesFromAssociationsIntoObjectArray() Assert.That(result.Length, Is.EqualTo(3)); Assert.That(result[1], Is.EqualTo("Admin")); Assert.That(result[2], Is.EqualTo("output")); + } + + [Test(Description = "NH-2782")] + public void CanSelectPropertiesIntoObjectArrayInProperty() + { + var result = db.Users + .Select(u => new { Cells = new object[] { u.Id, u.Name, new object[u.Id] } }) + .First(); + + var cells = result.Cells; + Assert.That(cells.Length, Is.EqualTo(3)); + Assert.That(cells[1], Is.EqualTo("ayende")); + Assert.That(cells[2], Is.InstanceOf().And.Length.EqualTo(cells[0])); + } + + [Test(Description = "NH-2782")] + public void CanSelectPropertiesIntoPropertyListInProperty() + { + var result = db.Users + .Select(u => new { Cells = new List { u.Id, u.Name, new object[u.Id] } }) + .First(); + + var cells = result.Cells; + Assert.That(cells.Count, Is.EqualTo(3)); + Assert.That(cells[1], Is.EqualTo("ayende")); + Assert.That(cells[2], Is.InstanceOf().And.Length.EqualTo(cells[0])); } [Test, Description("NH-2744")] diff --git a/src/NHibernate/Linq/Visitors/SelectClauseNominator.cs b/src/NHibernate/Linq/Visitors/SelectClauseNominator.cs index 38fe9d15f74..b398f44664e 100644 --- a/src/NHibernate/Linq/Visitors/SelectClauseNominator.cs +++ b/src/NHibernate/Linq/Visitors/SelectClauseNominator.cs @@ -121,7 +121,10 @@ private bool IsRegisteredFunction(Expression expression) private bool CanBeEvaluatedInHqlSelectStatement(Expression expression, bool projectConstantsInHql) { // HQL can't do New or Member Init - if ((expression.NodeType == ExpressionType.MemberInit) || (expression.NodeType == ExpressionType.New)) + if (expression.NodeType == ExpressionType.MemberInit || + expression.NodeType == ExpressionType.New || + expression.NodeType == ExpressionType.NewArrayInit || + expression.NodeType == ExpressionType.NewArrayBounds) { return false; } From 9758768be683010c493789427c80bc881de31728 Mon Sep 17 00:00:00 2001 From: Roger Kratz Date: Tue, 12 Nov 2013 13:05:00 +0100 Subject: [PATCH 10/30] Failing test for NH3570. One test for unidirectional onetomany and one test for bidirectional onetomany - both fails. --- .../NHSpecificTest/NH3570/BiFixture.cs | 51 +++++++++++++++++++ .../NHSpecificTest/NH3570/Mappings.hbm.xml | 36 +++++++++++++ .../NHSpecificTest/NH3570/Model.cs | 46 +++++++++++++++++ .../NHSpecificTest/NH3570/UniFixture.cs | 51 +++++++++++++++++++ src/NHibernate.Test/NHibernate.Test.csproj | 4 ++ 5 files changed, 188 insertions(+) create mode 100644 src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs create mode 100644 src/NHibernate.Test/NHSpecificTest/NH3570/Mappings.hbm.xml create mode 100644 src/NHibernate.Test/NHSpecificTest/NH3570/Model.cs create mode 100644 src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs diff --git a/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs new file mode 100644 index 00000000000..6e75293c049 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs @@ -0,0 +1,51 @@ +using System; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.NHSpecificTest.NH3570 +{ + [TestFixture] + public class BiFixture : BugTestCase + { + private Guid id; + + [Test] + [KnownBug("NH-3570")] + public void ShouldNotSaveRemoveChild() + { + var parent = new BiParent(); + parent.AddChild(new BiChild()); + using (var s = OpenSession()) + { + using (var tx = s.BeginTransaction()) + { + id = (Guid)s.Save(parent); + parent.Children.Clear(); + parent.AddChild(new BiChild()); + tx.Commit(); + } + } + using (var s = OpenSession()) + { + using (s.BeginTransaction()) + { + s.Get(id).Children.Count.Should().Be.EqualTo(1); + s.CreateCriteria().List().Count.Should().Be.EqualTo(1); + } + } + } + + protected override void OnTearDown() + { + using (var s = OpenSession()) + { + using (var tx = s.BeginTransaction()) + { + s.CreateQuery("delete from BiChild").ExecuteUpdate(); + s.CreateQuery("delete from BiParent").ExecuteUpdate(); + tx.Commit(); + } + } + } + } +} \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH3570/Mappings.hbm.xml b/src/NHibernate.Test/NHSpecificTest/NH3570/Mappings.hbm.xml new file mode 100644 index 00000000000..f42beb8ea77 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH3570/Mappings.hbm.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/NHibernate.Test/NHSpecificTest/NH3570/Model.cs b/src/NHibernate.Test/NHSpecificTest/NH3570/Model.cs new file mode 100644 index 00000000000..381c6ec08c1 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH3570/Model.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; + +namespace NHibernate.Test.NHSpecificTest.NH3570 +{ + public class UniParent + { + public UniParent() + { + Children = new List(); + } + + public virtual Guid Id { get; set; } + public virtual IList Children { get; set; } + public virtual int Version { get; set; } + } + + public class UniChild + { + public virtual Guid Id { get; set; } + } + + public class BiParent + { + public BiParent() + { + Children = new List(); + } + + public virtual Guid Id { get; set; } + public virtual IList Children { get; set; } + public virtual int Version { get; set; } + + public virtual void AddChild(BiChild child) + { + child.Parent = this; + Children.Add(child); + } + } + + public class BiChild + { + public virtual Guid Id { get; set; } + public virtual BiParent Parent { get; set; } + } +} \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs new file mode 100644 index 00000000000..749eddbfe42 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs @@ -0,0 +1,51 @@ +using System; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.NHSpecificTest.NH3570 +{ + [TestFixture] + public class UniFixture : BugTestCase + { + private Guid id; + + [Test] + [KnownBug("NH-3570")] + public void ShouldNotSaveRemoveChild() + { + var parent = new UniParent(); + parent.Children.Add(new UniChild()); + using (var s = OpenSession()) + { + using (var tx = s.BeginTransaction()) + { + id = (Guid) s.Save(parent); + parent.Children.Clear(); + parent.Children.Add(new UniChild()); + tx.Commit(); + } + } + using (var s = OpenSession()) + { + using (s.BeginTransaction()) + { + s.Get(id).Children.Count.Should().Be.EqualTo(1); + s.CreateCriteria().List().Count.Should().Be.EqualTo(1); + } + } + } + + protected override void OnTearDown() + { + using (var s = OpenSession()) + { + using (var tx = s.BeginTransaction()) + { + s.CreateQuery("delete from UniChild").ExecuteUpdate(); + s.CreateQuery("delete from UniParent").ExecuteUpdate(); + tx.Commit(); + } + } + } + } +} \ No newline at end of file diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index 962022b5487..e66b945997e 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -690,6 +690,9 @@ + + + @@ -3054,6 +3057,7 @@ + From c09b5959bf15af73061d0c3fb205d50429efbce9 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Wed, 15 Oct 2014 20:23:51 +1300 Subject: [PATCH 11/30] NH-2779 - Corrected logging for collections using property-refs --- .../NHSpecificTest/NH2779/Fixture.cs | 61 +++++++++++ .../NHSpecificTest/NH2779/LineItem.cs | 10 ++ .../NHSpecificTest/NH2779/Mappings.hbm.xml | 26 +++++ .../NHSpecificTest/NH2779/Order.cs | 13 +++ src/NHibernate.Test/NHibernate.Test.csproj | 4 + .../Action/CollectionUpdateAction.cs | 4 +- .../AbstractPersistentCollection.cs | 2 +- src/NHibernate/Engine/CollectionEntry.cs | 10 +- src/NHibernate/Engine/CollectionKey.cs | 2 +- src/NHibernate/Engine/Collections.cs | 10 +- .../Engine/Loading/CollectionLoadContext.cs | 8 +- src/NHibernate/Engine/Loading/LoadContexts.cs | 7 +- ...efaultInitializeCollectionEventListener.cs | 2 +- src/NHibernate/Event/Default/EvictVisitor.cs | 2 +- .../Event/Default/ReattachVisitor.cs | 4 +- src/NHibernate/Impl/MessageHelper.cs | 101 ++++++++++++++++-- src/NHibernate/Impl/SessionFactoryImpl.cs | 2 +- src/NHibernate/Loader/Loader.cs | 48 ++++----- .../Collection/AbstractCollectionPersister.cs | 24 ++--- .../Collection/BasicCollectionPersister.cs | 2 +- .../Collection/OneToManyPersister.cs | 2 +- src/NHibernate/Type/CollectionType.cs | 8 ++ 22 files changed, 277 insertions(+), 75 deletions(-) create mode 100644 src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs create mode 100644 src/NHibernate.Test/NHSpecificTest/NH2779/LineItem.cs create mode 100644 src/NHibernate.Test/NHSpecificTest/NH2779/Mappings.hbm.xml create mode 100644 src/NHibernate.Test/NHSpecificTest/NH2779/Order.cs diff --git a/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs new file mode 100644 index 00000000000..1b822693082 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs @@ -0,0 +1,61 @@ +using System; +using log4net; +using log4net.Appender; +using log4net.Core; +using log4net.Layout; +using log4net.Repository.Hierarchy; +using NUnit.Framework; + +namespace NHibernate.Test.NHSpecificTest.NH2779 +{ + [TestFixture] + public class Fixture : BugTestCase + { + [Test] + public void Test() + { + using (ISession session = OpenSession()) + using (ITransaction tx = session.BeginTransaction()) + { + Order order = new Order() { OrderId = "Order-1", InternalOrderId = 1 }; + session.Save(order); + tx.Commit(); + } + + using (ISession session = OpenSession()) + using (ITransaction tx = session.BeginTransaction()) + using (LogSpy logSpy = new LogSpy()) // <-- Logging must be set DEBUG to reproduce bug + { + Order order = session.Get("Order-1"); + Assert.IsNotNull(order); + + // Cleanup + session.Delete(order); + tx.Commit(); + } + } + + public class LogSpy : IDisposable + { + private readonly DebugAppender appender; + private readonly Logger loggerImpl; + + public LogSpy() + { + appender = new DebugAppender + { + Layout = new PatternLayout("%message"), + Threshold = Level.All + }; + loggerImpl = (Logger)LogManager.GetLogger("NHibernate").Logger; + loggerImpl.AddAppender(appender); + loggerImpl.Level = Level.All; + } + + public void Dispose() + { + loggerImpl.RemoveAppender(appender); + } + } + } +} diff --git a/src/NHibernate.Test/NHSpecificTest/NH2779/LineItem.cs b/src/NHibernate.Test/NHSpecificTest/NH2779/LineItem.cs new file mode 100644 index 00000000000..bb4affb0582 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH2779/LineItem.cs @@ -0,0 +1,10 @@ + +namespace NHibernate.Test.NHSpecificTest.NH2779 +{ + public class LineItem + { + public virtual int LineItemId { get; set; } + public virtual int InternalOrderId { get; set; } + public virtual int SortOrder { get; set; } + } +} diff --git a/src/NHibernate.Test/NHSpecificTest/NH2779/Mappings.hbm.xml b/src/NHibernate.Test/NHSpecificTest/NH2779/Mappings.hbm.xml new file mode 100644 index 00000000000..75cca214781 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH2779/Mappings.hbm.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/NHibernate.Test/NHSpecificTest/NH2779/Order.cs b/src/NHibernate.Test/NHSpecificTest/NH2779/Order.cs new file mode 100644 index 00000000000..4a353787153 --- /dev/null +++ b/src/NHibernate.Test/NHSpecificTest/NH2779/Order.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; + +namespace NHibernate.Test.NHSpecificTest.NH2779 +{ + public class Order + { + private IList lineItems = new List(); + + public virtual string OrderId { get; set; } + public virtual int InternalOrderId { get; set; } + public virtual IList LineItems { get { return lineItems; } } + } +} diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index 962022b5487..70765f9599e 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -699,6 +699,9 @@ + + + @@ -3090,6 +3093,7 @@ + diff --git a/src/NHibernate/Action/CollectionUpdateAction.cs b/src/NHibernate/Action/CollectionUpdateAction.cs index 31fc0097f38..25bdac5015e 100644 --- a/src/NHibernate/Action/CollectionUpdateAction.cs +++ b/src/NHibernate/Action/CollectionUpdateAction.cs @@ -16,7 +16,7 @@ public sealed class CollectionUpdateAction : CollectionAction private readonly bool emptySnapshot; public CollectionUpdateAction(IPersistentCollection collection, ICollectionPersister persister, object key, - bool emptySnapshot, ISessionImplementor session) + bool emptySnapshot, ISessionImplementor session) : base(persister, collection, key, session) { this.emptySnapshot = emptySnapshot; @@ -59,7 +59,7 @@ public override void Execute() if (affectedByFilters) { throw new HibernateException("cannot recreate collection while filter is enabled: " - + MessageHelper.InfoString(persister, id, persister.Factory)); + + MessageHelper.CollectionInfoString(persister, collection, id, session)); } if (!emptySnapshot) { diff --git a/src/NHibernate/Collection/AbstractPersistentCollection.cs b/src/NHibernate/Collection/AbstractPersistentCollection.cs index 24d530397b1..6225819453b 100644 --- a/src/NHibernate/Collection/AbstractPersistentCollection.cs +++ b/src/NHibernate/Collection/AbstractPersistentCollection.cs @@ -557,7 +557,7 @@ public virtual bool SetCurrentSession(ISessionImplementor session) else { throw new HibernateException("Illegal attempt to associate a collection with two open sessions: " - + MessageHelper.InfoString(ce.LoadedPersister, ce.LoadedKey, session.Factory)); + + MessageHelper.CollectionInfoString(ce.LoadedPersister, this, ce.LoadedKey, session)); } } else diff --git a/src/NHibernate/Engine/CollectionEntry.cs b/src/NHibernate/Engine/CollectionEntry.cs index 0db2d3d784f..3562dd696b3 100644 --- a/src/NHibernate/Engine/CollectionEntry.cs +++ b/src/NHibernate/Engine/CollectionEntry.cs @@ -127,7 +127,7 @@ public CollectionEntry(ICollectionPersister persister, IPersistentCollection col /// For collections just loaded from the database public CollectionEntry(IPersistentCollection collection, ICollectionPersister loadedPersister, object loadedKey, - bool ignore) + bool ignore) { this.ignore = ignore; this.loadedKey = loadedKey; @@ -256,9 +256,9 @@ private void Dirty(IPersistentCollection collection) // if the collection is initialized and it was previously persistent // initialize the dirty flag bool forceDirty = collection.WasInitialized && !collection.IsDirty && LoadedPersister != null - && LoadedPersister.IsMutable - && (collection.IsDirectlyAccessible || LoadedPersister.ElementType.IsMutable) - && !collection.EqualsSnapshot(LoadedPersister); + && LoadedPersister.IsMutable + && (collection.IsDirectlyAccessible || LoadedPersister.ElementType.IsMutable) + && !collection.EqualsSnapshot(LoadedPersister); if (forceDirty) { @@ -281,7 +281,7 @@ public void PreFlush(IPersistentCollection collection) if (log.IsDebugEnabled && collection.IsDirty && loadedPersister != null) { - log.Debug("Collection dirty: " + MessageHelper.InfoString(loadedPersister, loadedKey)); + log.Debug("Collection dirty: " + MessageHelper.CollectionInfoString(loadedPersister, loadedKey)); } // reset all of these values so any previous flush status diff --git a/src/NHibernate/Engine/CollectionKey.cs b/src/NHibernate/Engine/CollectionKey.cs index 97a323b7042..4bb9e3eb359 100644 --- a/src/NHibernate/Engine/CollectionKey.cs +++ b/src/NHibernate/Engine/CollectionKey.cs @@ -68,7 +68,7 @@ public object Key public override string ToString() { - return "CollectionKey" + MessageHelper.InfoString(factory.GetCollectionPersister(role), key, factory); + return "CollectionKey" + MessageHelper.CollectionInfoString(factory.GetCollectionPersister(role), key, factory); } } } \ No newline at end of file diff --git a/src/NHibernate/Engine/Collections.cs b/src/NHibernate/Engine/Collections.cs index bea04a60c33..cac8f9541ce 100644 --- a/src/NHibernate/Engine/Collections.cs +++ b/src/NHibernate/Engine/Collections.cs @@ -34,7 +34,7 @@ private static void ProcessDereferencedCollection(IPersistentCollection coll, IS ICollectionPersister loadedPersister = entry.LoadedPersister; if (log.IsDebugEnabled && loadedPersister != null) - log.Debug("Collection dereferenced: " + MessageHelper.InfoString(loadedPersister, entry.LoadedKey, session.Factory)); + log.Debug("Collection dereferenced: " + MessageHelper.CollectionInfoString(loadedPersister, coll, entry.LoadedKey, session)); // do a check bool hasOrphanDelete = loadedPersister != null && loadedPersister.HasOrphanDelete; @@ -84,7 +84,7 @@ private static void ProcessNeverReferencedCollection(IPersistentCollection coll, { CollectionEntry entry = session.PersistenceContext.GetCollectionEntry(coll); - log.Debug("Found collection with unloaded owner: " + MessageHelper.InfoString(entry.LoadedPersister, entry.LoadedKey, session.Factory)); + log.Debug("Found collection with unloaded owner: " + MessageHelper.CollectionInfoString(entry.LoadedPersister, coll, entry.LoadedKey, session)); entry.CurrentPersister = entry.LoadedPersister; entry.CurrentKey = entry.LoadedKey; @@ -127,9 +127,9 @@ public static void ProcessReachableCollection(IPersistentCollection collection, if (log.IsDebugEnabled) { log.Debug("Collection found: " + - MessageHelper.InfoString(persister, ce.CurrentKey, factory) + ", was: " + - MessageHelper.InfoString(ce.LoadedPersister, ce.LoadedKey, factory) + - (collection.WasInitialized ? " (initialized)" : " (uninitialized)")); + MessageHelper.CollectionInfoString(persister, collection, ce.CurrentKey, session) + ", was: " + + MessageHelper.CollectionInfoString(ce.LoadedPersister, collection, ce.LoadedKey, session) + + (collection.WasInitialized ? " (initialized)" : " (uninitialized)")); } PrepareCollectionForUpdate(collection, ce, session.EntityMode, factory); diff --git a/src/NHibernate/Engine/Loading/CollectionLoadContext.cs b/src/NHibernate/Engine/Loading/CollectionLoadContext.cs index 58bda2fe161..78cafbb89e6 100644 --- a/src/NHibernate/Engine/Loading/CollectionLoadContext.cs +++ b/src/NHibernate/Engine/Loading/CollectionLoadContext.cs @@ -174,7 +174,7 @@ public void EndLoadingCollections(ICollectionPersister persister) if (lce.Collection.Owner == null) { session.PersistenceContext.AddUnownedCollection(new CollectionKey(persister, lce.Key, session.EntityMode), - lce.Collection); + lce.Collection); } if (log.IsDebugEnabled) { @@ -272,7 +272,7 @@ private void EndLoadingCollection(LoadingCollectionEntry lce, ICollectionPersist if (log.IsDebugEnabled) { - log.Debug("collection fully initialized: " + MessageHelper.InfoString(persister, lce.Key, session.Factory)); + log.Debug("collection fully initialized: " + MessageHelper.CollectionInfoString(persister, lce.Collection, lce.Key, session)); } if (statsEnabled) @@ -292,7 +292,7 @@ private void AddCollectionToCache(LoadingCollectionEntry lce, ICollectionPersist if (log.IsDebugEnabled) { - log.Debug("Caching collection: " + MessageHelper.InfoString(persister, lce.Key, factory)); + log.Debug("Caching collection: " + MessageHelper.CollectionInfoString(persister, lce.Collection, lce.Key, session)); } if (!(session.EnabledFilters.Count == 0) && persister.IsAffectedByEnabledFilters(session)) @@ -324,7 +324,7 @@ private void AddCollectionToCache(LoadingCollectionEntry lce, ICollectionPersist CollectionCacheEntry entry = new CollectionCacheEntry(lce.Collection, persister); CacheKey cacheKey = session.GenerateCacheKey(lce.Key, persister.KeyType, persister.Role); bool put = persister.Cache.Put(cacheKey, persister.CacheEntryStructure.Structure(entry), - session.Timestamp, version, versionComparator, + session.Timestamp, version, versionComparator, factory.Settings.IsMinimalPutsEnabled && session.CacheMode != CacheMode.Refresh); if (put && factory.Statistics.IsStatisticsEnabled) diff --git a/src/NHibernate/Engine/Loading/LoadContexts.cs b/src/NHibernate/Engine/Loading/LoadContexts.cs index a22d3fc1e7e..f7a98131448 100644 --- a/src/NHibernate/Engine/Loading/LoadContexts.cs +++ b/src/NHibernate/Engine/Loading/LoadContexts.cs @@ -158,17 +158,12 @@ public IPersistentCollection LocateLoadingCollection(ICollectionPersister persis { if (log.IsDebugEnabled) { - log.Debug("returning loading collection:" + MessageHelper.InfoString(persister, ownerKey, Session.Factory)); + log.Debug("returning loading collection:" + MessageHelper.CollectionInfoString(persister, ownerKey, Session.Factory)); } return lce.Collection; } else { - // todo : should really move this log statement to CollectionType, where this is used from... - if (log.IsDebugEnabled) - { - log.Debug("creating collection wrapper:" + MessageHelper.InfoString(persister, ownerKey, Session.Factory)); - } return null; } } diff --git a/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs b/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs index 231124eaf41..e2ae3c3a60e 100644 --- a/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs +++ b/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs @@ -35,7 +35,7 @@ public virtual void OnInitializeCollection(InitializeCollectionEvent @event) { if (log.IsDebugEnabled) { - log.Debug("initializing collection " + MessageHelper.InfoString(ce.LoadedPersister, ce.LoadedKey, source.Factory)); + log.Debug("initializing collection " + MessageHelper.CollectionInfoString(ce.LoadedPersister, collection, ce.LoadedKey, source)); } log.Debug("checking second-level cache"); diff --git a/src/NHibernate/Event/Default/EvictVisitor.cs b/src/NHibernate/Event/Default/EvictVisitor.cs index f05c1294e88..a0d734991fd 100644 --- a/src/NHibernate/Event/Default/EvictVisitor.cs +++ b/src/NHibernate/Event/Default/EvictVisitor.cs @@ -52,7 +52,7 @@ private void EvictCollection(IPersistentCollection collection) CollectionEntry ce = (CollectionEntry)Session.PersistenceContext.CollectionEntries[collection]; Session.PersistenceContext.CollectionEntries.Remove(collection); if (log.IsDebugEnabled) - log.Debug("evicting collection: " + MessageHelper.InfoString(ce.LoadedPersister, ce.LoadedKey, Session.Factory)); + log.Debug("evicting collection: " + MessageHelper.CollectionInfoString(ce.LoadedPersister, collection, ce.LoadedKey, Session)); if (ce.LoadedPersister != null && ce.LoadedKey != null) { //TODO: is this 100% correct? diff --git a/src/NHibernate/Event/Default/ReattachVisitor.cs b/src/NHibernate/Event/Default/ReattachVisitor.cs index 644188cfe36..e862496edc7 100644 --- a/src/NHibernate/Event/Default/ReattachVisitor.cs +++ b/src/NHibernate/Event/Default/ReattachVisitor.cs @@ -1,5 +1,6 @@ using NHibernate.Action; +using NHibernate.Engine; using NHibernate.Impl; using NHibernate.Persister.Collection; using NHibernate.Type; @@ -57,8 +58,7 @@ internal void RemoveCollection(ICollectionPersister role, object collectionKey, { if (log.IsDebugEnabled) { - log.Debug("collection dereferenced while transient " + - MessageHelper.InfoString(role, ownerIdentifier, source.Factory)); + log.Debug("collection dereferenced while transient " + MessageHelper.CollectionInfoString(role, ownerIdentifier, source.Factory)); } source.ActionQueue.AddAction(new CollectionRemoveAction(owner, role, collectionKey, false, source)); } diff --git a/src/NHibernate/Impl/MessageHelper.cs b/src/NHibernate/Impl/MessageHelper.cs index 175ef03d773..706ec6c3a4b 100644 --- a/src/NHibernate/Impl/MessageHelper.cs +++ b/src/NHibernate/Impl/MessageHelper.cs @@ -1,5 +1,6 @@ using System; using System.Text; +using NHibernate.Collection; using NHibernate.Engine; using NHibernate.Persister.Collection; using NHibernate.Persister.Entity; @@ -214,6 +215,17 @@ public static String InfoString(IEntityPersister persister) /// The id /// A descriptive in the form [collectionrole#id] public static String InfoString(ICollectionPersister persister, object id) + { + return CollectionInfoString(persister, id); + } + + /// + /// Generate small message that can be used in traces and exception messages. + /// + /// The for the class in question + /// The id + /// A descriptive in the form [collectionrole#id] + internal static string CollectionInfoString(ICollectionPersister persister, object id) { StringBuilder s = new StringBuilder(); s.Append('['); @@ -262,6 +274,49 @@ public static string InfoString(string entityName, string propertyName, object k return s.ToString(); } + /// + /// Generate an info message string relating to a particular managed + /// collection. Attempts to intelligently handle property-refs issues + /// where the collection key is not the same as the owner key. + /// + /// The persister for the collection + /// The collection itself + /// The collection key + /// The session + /// An info string, in the form [Foo.bars#1] + internal static String CollectionInfoString(ICollectionPersister persister, IPersistentCollection collection, object collectionKey, ISessionImplementor session) + { + + StringBuilder s = new StringBuilder(); + s.Append("["); + if (persister == null) + { + s.Append(""); + } + else + { + s.Append(persister.Role); + s.Append("#"); + + IType ownerIdentifierType = persister.OwnerEntityPersister.IdentifierType; + object ownerKey; + // TODO: Is it redundant to attempt to use the collectionKey, + // or is always using the owner id sufficient? + if (collectionKey.GetType().IsAssignableFrom(ownerIdentifierType.ReturnedClass)) + { + ownerKey = collectionKey; + } + else + { + ownerKey = session.PersistenceContext.GetEntry(collection.Owner).Id; + } + s.Append(ownerIdentifierType.ToLoggableString(ownerKey, session.Factory)); + } + s.Append("]"); + + return s.ToString(); + } + /// /// Generate an info message string relating to a particular managed /// collection. @@ -271,9 +326,21 @@ public static string InfoString(string entityName, string propertyName, object k /// The session factory /// An info string, in the form [Foo.bars#1] public static string InfoString(ICollectionPersister persister, object id, ISessionFactoryImplementor factory) + { + return CollectionInfoString(persister, id, factory); + } + + /// + /// Generate an info message string relating to a particular managed collection. + /// + /// The persister for the collection + /// The id value of the owner + /// The session factory + /// An info string, in the form [Foo.bars#1] + internal static string CollectionInfoString(ICollectionPersister persister, object id, ISessionFactoryImplementor factory) { StringBuilder s = new StringBuilder(); - s.Append('['); + s.Append("["); if (persister == null) { s.Append(""); @@ -281,7 +348,7 @@ public static string InfoString(ICollectionPersister persister, object id, ISess else { s.Append(persister.Role); - s.Append('#'); + s.Append("#"); if (id == null) { @@ -289,18 +356,36 @@ public static string InfoString(ICollectionPersister persister, object id, ISess } else { - // Need to use the identifier type of the collection owner - // since the incoming is value is actually the owner's id. - // Using the collection's key type causes problems with - // property-ref keys... - s.Append(persister.OwnerEntityPersister.IdentifierType.ToLoggableString(id, factory)); + AddIdToCollectionInfoString(persister, id, factory, s); } } - s.Append(']'); + s.Append("]"); return s.ToString(); } + private static void AddIdToCollectionInfoString(ICollectionPersister persister, object id, ISessionFactoryImplementor factory, StringBuilder s) + { + // Need to use the identifier type of the collection owner + // since the incoming is value is actually the owner's id. + // Using the collection's key type causes problems with + // property-ref keys. + // Also need to check that the expected identifier type matches + // the given ID. Due to property-ref keys, the collection key + // may not be the owner key. + IType ownerIdentifierType = persister.OwnerEntityPersister.IdentifierType; + if (id.GetType().IsAssignableFrom(ownerIdentifierType.ReturnedClass)) + { + s.Append(ownerIdentifierType.ToLoggableString(id, factory)); + } + else + { + // TODO: This is a crappy backup if a property-ref is used. + // If the reference is an object w/o toString(), this isn't going to work. + s.Append(id.ToString()); + } + } + /// /// Generate an info message string relating to a particular entity, /// based on the given entityName and id. diff --git a/src/NHibernate/Impl/SessionFactoryImpl.cs b/src/NHibernate/Impl/SessionFactoryImpl.cs index d65d3ab0ea9..24b7066d325 100644 --- a/src/NHibernate/Impl/SessionFactoryImpl.cs +++ b/src/NHibernate/Impl/SessionFactoryImpl.cs @@ -906,7 +906,7 @@ public void EvictCollection(string roleName, object id) { if (log.IsDebugEnabled) { - log.Debug("evicting second-level cache: " + MessageHelper.InfoString(p, id)); + log.Debug("evicting second-level cache: " + MessageHelper.CollectionInfoString(p, id)); } CacheKey ck = GenerateCacheKeyForEvict(id, p.KeyType, p.Role); p.Cache.Remove(ck); diff --git a/src/NHibernate/Loader/Loader.cs b/src/NHibernate/Loader/Loader.cs index bd4e4853812..cc37659e9e4 100644 --- a/src/NHibernate/Loader/Loader.cs +++ b/src/NHibernate/Loader/Loader.cs @@ -227,7 +227,7 @@ private static SqlString PrependComment(SqlString sql, QueryParameters parameter /// initialize that object. If a collection is supplied, attempt to initialize that collection. /// private IList DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, - bool returnProxies) + bool returnProxies) { return DoQueryAndInitializeNonLazyCollections(session, queryParameters, returnProxies, null); } @@ -323,12 +323,12 @@ internal static EntityKey GetOptionalObjectKey(QueryParameters queryParameters, } internal object GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, - QueryParameters queryParameters, LockMode[] lockModeArray, - EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, - bool returnProxies) + QueryParameters queryParameters, LockMode[] lockModeArray, + EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, + bool returnProxies) { return GetRowFromResultSet(resultSet, session, queryParameters, lockModeArray, optionalObjectKey, hydratedObjects, - keys, returnProxies, null); + keys, returnProxies, null); } internal object GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, @@ -373,9 +373,9 @@ internal object GetRowFromResultSet(IDataReader resultSet, ISessionImplementor s } return forcedResultTransformer == null - ? GetResultColumnOrRow(row, queryParameters.ResultTransformer, resultSet, session) - : forcedResultTransformer.TransformTuple(GetResultRow(row, resultSet, session), - ResultRowAliases); + ? GetResultColumnOrRow(row, queryParameters.ResultTransformer, resultSet, session) + : forcedResultTransformer.TransformTuple(GetResultRow(row, resultSet, session), + ResultRowAliases); } /// @@ -755,7 +755,7 @@ private static void ReadCollectionElement(object optionalOwner, object optionalK if (Log.IsDebugEnabled) { - Log.Debug("found row of collection: " + MessageHelper.InfoString(persister, collectionRowKey)); + Log.Debug("found row of collection: " + MessageHelper.CollectionInfoString(persister, collectionRowKey)); } object owner = optionalOwner; @@ -787,7 +787,7 @@ private static void ReadCollectionElement(object optionalOwner, object optionalK if (Log.IsDebugEnabled) { - Log.Debug("result set contains (possibly empty) collection: " + MessageHelper.InfoString(persister, optionalKey)); + Log.Debug("result set contains (possibly empty) collection: " + MessageHelper.CollectionInfoString(persister, optionalKey)); } persistenceContext.LoadContexts.GetCollectionLoadContext(rs).GetLoadingCollection(persister, optionalKey); // handle empty collection @@ -818,7 +818,7 @@ internal void HandleEmptyCollections(object[] keys, object resultSetId, ISession if (Log.IsDebugEnabled) { Log.Debug("result set contains (possibly empty) collection: " - + MessageHelper.InfoString(collectionPersisters[j], keys[i])); + + MessageHelper.CollectionInfoString(collectionPersisters[j], keys[i])); } session.PersistenceContext.LoadContexts.GetCollectionLoadContext((IDataReader)resultSetId).GetLoadingCollection( collectionPersisters[j], keys[i]); @@ -1430,7 +1430,7 @@ public void LoadCollection(ISessionImplementor session, object id, IType type) { if (Log.IsDebugEnabled) { - Log.Debug("loading collection: " + MessageHelper.InfoString(CollectionPersisters[0], id)); + Log.Debug("loading collection: " + MessageHelper.CollectionInfoString(CollectionPersisters[0], id)); } object[] ids = new object[] { id }; @@ -1447,7 +1447,7 @@ public void LoadCollection(ISessionImplementor session, object id, IType type) { throw ADOExceptionHelper.Convert(Factory.SQLExceptionConverter, sqle, "could not initialize a collection: " - + MessageHelper.InfoString(CollectionPersisters[0], id), SqlString); + + MessageHelper.CollectionInfoString(CollectionPersisters[0], id), SqlString); } Log.Debug("done loading collection"); @@ -1460,7 +1460,7 @@ public void LoadCollectionBatch(ISessionImplementor session, object[] ids, IType { if (Log.IsDebugEnabled) { - Log.Debug("batch loading collection: " + MessageHelper.InfoString(CollectionPersisters[0], ids)); + Log.Debug("batch loading collection: " + MessageHelper.CollectionInfoString(CollectionPersisters[0], ids)); } IType[] idTypes = new IType[ids.Length]; @@ -1478,7 +1478,7 @@ public void LoadCollectionBatch(ISessionImplementor session, object[] ids, IType { throw ADOExceptionHelper.Convert(Factory.SQLExceptionConverter, sqle, "could not initialize a collection batch: " - + MessageHelper.InfoString(CollectionPersisters[0], ids), SqlString); + + MessageHelper.CollectionInfoString(CollectionPersisters[0], ids), SqlString); } Log.Debug("done batch load"); @@ -1506,7 +1506,7 @@ protected void LoadCollectionSubselect(ISessionImplementor session, object[] ids { throw ADOExceptionHelper.Convert(Factory.SQLExceptionConverter, sqle, "could not load collection by subselect: " - + MessageHelper.InfoString(CollectionPersisters[0], ids), SqlString, + + MessageHelper.CollectionInfoString(CollectionPersisters[0], ids), SqlString, parameterValues, namedParameters); } } @@ -1554,13 +1554,13 @@ private IList ListUsingQueryCache(ISessionImplementor session, QueryParameters q if (resolvedTransformer != null) { result = (AreResultSetRowsTransformedImmediately() - ? key.ResultTransformer.RetransformResults( - result, - ResultRowAliases, - queryParameters.ResultTransformer, - IncludeInResultRow) - : key.ResultTransformer.UntransformToTuples(result) - ); + ? key.ResultTransformer.RetransformResults( + result, + ResultRowAliases, + queryParameters.ResultTransformer, + IncludeInResultRow) + : key.ResultTransformer.UntransformToTuples(result) + ); } return GetResultList(result, queryParameters.ResultTransformer); @@ -1570,7 +1570,7 @@ private QueryKey GenerateQueryKey(ISessionImplementor session, QueryParameters q { ISet filterKeys = FilterKey.CreateFilterKeys(session.EnabledFilters, session.EntityMode); return new QueryKey(Factory, SqlString, queryParameters, filterKeys, - CreateCacheableResultTransformer(queryParameters)); + CreateCacheableResultTransformer(queryParameters)); } private CacheableResultTransformer CreateCacheableResultTransformer(QueryParameters queryParameters) diff --git a/src/NHibernate/Persister/Collection/AbstractCollectionPersister.cs b/src/NHibernate/Persister/Collection/AbstractCollectionPersister.cs index 3bd72bc06d9..27b72f11b37 100644 --- a/src/NHibernate/Persister/Collection/AbstractCollectionPersister.cs +++ b/src/NHibernate/Persister/Collection/AbstractCollectionPersister.cs @@ -1010,7 +1010,7 @@ public void Remove(object id, ISessionImplementor session) { if (log.IsDebugEnabled) { - log.Debug("Deleting collection: " + MessageHelper.InfoString(this, id, Factory)); + log.Debug("Deleting collection: " + MessageHelper.CollectionInfoString(this, id, Factory)); } // Remove all the old entries @@ -1063,7 +1063,7 @@ public void Remove(object id, ISessionImplementor session) catch (DbException sqle) { throw ADOExceptionHelper.Convert(sqlExceptionConverter, sqle, - "could not delete collection: " + MessageHelper.InfoString(this, id)); + "could not delete collection: " + MessageHelper.CollectionInfoString(this, id)); } } } @@ -1074,7 +1074,7 @@ public void Recreate(IPersistentCollection collection, object id, ISessionImplem { if (log.IsDebugEnabled) { - log.Debug("Inserting collection: " + MessageHelper.InfoString(this, id)); + log.Debug("Inserting collection: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } try @@ -1127,7 +1127,7 @@ public void Recreate(IPersistentCollection collection, object id, ISessionImplem catch (DbException sqle) { throw ADOExceptionHelper.Convert(sqlExceptionConverter, sqle, - "could not insert collection: " + MessageHelper.InfoString(this, id)); + "could not insert collection: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } } } @@ -1138,7 +1138,7 @@ public void DeleteRows(IPersistentCollection collection, object id, ISessionImpl { if (log.IsDebugEnabled) { - log.Debug("Deleting rows of collection: " + MessageHelper.InfoString(this, id)); + log.Debug("Deleting rows of collection: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } bool deleteByIndex = !IsOneToMany && hasIndex && !indexContainsFormula; @@ -1236,7 +1236,7 @@ public void DeleteRows(IPersistentCollection collection, object id, ISessionImpl catch (DbException sqle) { throw ADOExceptionHelper.Convert(sqlExceptionConverter, sqle, - "could not delete collection rows: " + MessageHelper.InfoString(this, id)); + "could not delete collection rows: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } } } @@ -1247,7 +1247,7 @@ public void InsertRows(IPersistentCollection collection, object id, ISessionImpl { if (log.IsDebugEnabled) { - log.Debug("Inserting rows of collection: " + MessageHelper.InfoString(this, id, Factory)); + log.Debug("Inserting rows of collection: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } try @@ -1289,7 +1289,7 @@ public void InsertRows(IPersistentCollection collection, object id, ISessionImpl catch (DbException sqle) { throw ADOExceptionHelper.Convert(sqlExceptionConverter, sqle, - "could not insert collection rows: " + MessageHelper.InfoString(this, id)); + "could not insert collection rows: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } } } @@ -1534,7 +1534,7 @@ public int GetSize(object key, ISessionImplementor session) { throw ADOExceptionHelper.Convert(Factory.SQLExceptionConverter, sqle, "could not retrieve collection size: " - + MessageHelper.InfoString(this, key, Factory), GenerateSelectSizeString(session)); + + MessageHelper.CollectionInfoString(this, key, Factory), GenerateSelectSizeString(session)); } } @@ -1584,7 +1584,7 @@ private bool Exists(object key, object indexOrElement, IType indexOrElementType, catch (DbException sqle) { throw ADOExceptionHelper.Convert(Factory.SQLExceptionConverter, sqle, - "could not check row existence: " + MessageHelper.InfoString(this, key, Factory), + "could not check row existence: " + MessageHelper.CollectionInfoString(this, key, Factory), GenerateSelectSizeString(session)); } } @@ -1627,7 +1627,7 @@ public virtual object GetElementByIndex(object key, object index, ISessionImplem catch (DbException sqle) { throw ADOExceptionHelper.Convert(Factory.SQLExceptionConverter, sqle, - "could not read row: " + MessageHelper.InfoString(this, key, Factory), + "could not read row: " + MessageHelper.CollectionInfoString(this, key, Factory), GenerateSelectSizeString(session)); } } @@ -2056,7 +2056,7 @@ public SqlString GetSelectByUniqueKeyString(string propertyName) public string GetInfoString() { - return MessageHelper.InfoString(this, null); + return MessageHelper.CollectionInfoString(this, null); } #endregion diff --git a/src/NHibernate/Persister/Collection/BasicCollectionPersister.cs b/src/NHibernate/Persister/Collection/BasicCollectionPersister.cs index 892e6b11d10..c9a0457a721 100644 --- a/src/NHibernate/Persister/Collection/BasicCollectionPersister.cs +++ b/src/NHibernate/Persister/Collection/BasicCollectionPersister.cs @@ -245,7 +245,7 @@ protected override int DoUpdateRows(object id, IPersistentCollection collection, catch (DbException sqle) { throw ADOExceptionHelper.Convert(SQLExceptionConverter, sqle, - "could not update collection rows: " + MessageHelper.InfoString(this, id), + "could not update collection rows: " + MessageHelper.CollectionInfoString(this, collection, id, session), SqlUpdateRowString.Text); } } diff --git a/src/NHibernate/Persister/Collection/OneToManyPersister.cs b/src/NHibernate/Persister/Collection/OneToManyPersister.cs index bd40505a79e..4b344e8bd33 100644 --- a/src/NHibernate/Persister/Collection/OneToManyPersister.cs +++ b/src/NHibernate/Persister/Collection/OneToManyPersister.cs @@ -287,7 +287,7 @@ protected override int DoUpdateRows(object id, IPersistentCollection collection, } catch (DbException sqle) { - throw ADOExceptionHelper.Convert(SQLExceptionConverter, sqle, "could not update collection rows: " + MessageHelper.InfoString(this, id)); + throw ADOExceptionHelper.Convert(SQLExceptionConverter, sqle, "could not update collection rows: " + MessageHelper.CollectionInfoString(this, collection, id, session)); } } diff --git a/src/NHibernate/Type/CollectionType.cs b/src/NHibernate/Type/CollectionType.cs index 2af6c26b0c9..99b67f42aaf 100644 --- a/src/NHibernate/Type/CollectionType.cs +++ b/src/NHibernate/Type/CollectionType.cs @@ -10,6 +10,7 @@ using NHibernate.SqlTypes; using NHibernate.Util; using System.Collections.Generic; +using NHibernate.Impl; namespace NHibernate.Type { @@ -20,6 +21,8 @@ namespace NHibernate.Type [Serializable] public abstract class CollectionType : AbstractType, IAssociationType { + private static readonly IInternalLogger log = LoggerProvider.LoggerFor(typeof(CollectionType)); + private static readonly object NotNullCollection = new object(); // place holder public static readonly object UnfetchedCollection = new object(); // place holder @@ -272,6 +275,11 @@ public object GetCollection(object key, ISessionImplementor session, object owne session.PersistenceContext.AddCollectionHolder(collection); } } + + if (log.IsDebugEnabled) + { + log.Debug("Created collection wrapper: " + MessageHelper.CollectionInfoString(persister, collection, key, session)); + } } collection.Owner = owner; return collection.GetValue(); From 236a2abffdaf2c0cc76297904abf60591d81774d Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Thu, 16 Oct 2014 11:04:27 +1300 Subject: [PATCH 12/30] NH-3709 - Fix Reference to One Shot Delete and Inverse Collections Revert "fixed bug about on-delete" This reverts commit 9902ef9009747fb621f5a47a96fcccdba45ef925. --- doc/reference/modules/performance.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/reference/modules/performance.xml b/doc/reference/modules/performance.xml index 4b49c6e7dcf..d74ca10df3d 100644 --- a/doc/reference/modules/performance.xml +++ b/doc/reference/modules/performance.xml @@ -1149,7 +1149,7 @@ sessionFactory.EvictCollection("Eg.Cat.Kittens"); //evict all kitten collections - one-shot-delete apply to collections mapped inverse="true". + Of course, one-shot-delete does not apply to collections mapped inverse="true". From ae3f05649079ec0d81eea2bd8d5e5a4bd3e53779 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Thu, 16 Oct 2014 14:02:57 +1300 Subject: [PATCH 13/30] NH-2779 - Fix possible InvalidCastException for un-fetched properties and unknown back-refs. --- src/NHibernate/Impl/Printer.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/NHibernate/Impl/Printer.cs b/src/NHibernate/Impl/Printer.cs index 574485cc594..093d9626349 100644 --- a/src/NHibernate/Impl/Printer.cs +++ b/src/NHibernate/Impl/Printer.cs @@ -2,7 +2,9 @@ using System.Collections.Generic; using NHibernate.Engine; +using NHibernate.Intercept; using NHibernate.Metadata; +using NHibernate.Properties; using NHibernate.Type; using NHibernate.Util; @@ -41,7 +43,15 @@ public string ToString(object entity, EntityMode entityMode) for (int i = 0; i < types.Length; i++) { - result[names[i]] = types[i].ToLoggableString(values[i], _factory); + var value = values[i]; + if (Equals(LazyPropertyInitializer.UnfetchedProperty, value) || Equals(BackrefPropertyAccessor.Unknown, value)) + { + result[names[i]] = value.ToString(); + } + else + { + result[names[i]] = types[i].ToLoggableString(value, _factory); + } } return cm.EntityName + CollectionPrinter.ToString(result); From 1a655bad985a582891a231131a54a482c2302f40 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Thu, 16 Oct 2014 16:15:39 +1300 Subject: [PATCH 14/30] NH-2779 - Use provided LogSpy which restores log level on dispose --- .../NHSpecificTest/NH2779/Fixture.cs | 37 +++---------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs index 1b822693082..469967ec081 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2779/Fixture.cs @@ -1,9 +1,5 @@ -using System; -using log4net; -using log4net.Appender; +using log4net; using log4net.Core; -using log4net.Layout; -using log4net.Repository.Hierarchy; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH2779 @@ -17,14 +13,14 @@ public void Test() using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { - Order order = new Order() { OrderId = "Order-1", InternalOrderId = 1 }; + Order order = new Order { OrderId = "Order-1", InternalOrderId = 1 }; session.Save(order); tx.Commit(); } - using (ISession session = OpenSession()) - using (ITransaction tx = session.BeginTransaction()) - using (LogSpy logSpy = new LogSpy()) // <-- Logging must be set DEBUG to reproduce bug + using (var session = OpenSession()) + using (var tx = session.BeginTransaction()) + using (new LogSpy(LogManager.GetLogger("NHibernate"), Level.All)) // <-- Logging must be set DEBUG to reproduce bug { Order order = session.Get("Order-1"); Assert.IsNotNull(order); @@ -34,28 +30,5 @@ public void Test() tx.Commit(); } } - - public class LogSpy : IDisposable - { - private readonly DebugAppender appender; - private readonly Logger loggerImpl; - - public LogSpy() - { - appender = new DebugAppender - { - Layout = new PatternLayout("%message"), - Threshold = Level.All - }; - loggerImpl = (Logger)LogManager.GetLogger("NHibernate").Logger; - loggerImpl.AddAppender(appender); - loggerImpl.Level = Level.All; - } - - public void Dispose() - { - loggerImpl.RemoveAppender(appender); - } - } } } From 809cce0339225f813869bb5d3eed557d630940e7 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 18 Oct 2014 14:31:19 +1300 Subject: [PATCH 15/30] NH-3049 - Fix mapping to fields --- src/NHibernate.Test/App.config | 8 +++ .../MappingOfInternalMembersOnRootEntity.cs | 57 +++++++++++++++++++ src/NHibernate.Test/NHibernate.Test.csproj | 1 + .../Mapping/ByCode/TypeExtensions.cs | 12 +++- 4 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfInternalMembersOnRootEntity.cs diff --git a/src/NHibernate.Test/App.config b/src/NHibernate.Test/App.config index 1e1078fe6f3..bd345778701 100644 --- a/src/NHibernate.Test/App.config +++ b/src/NHibernate.Test/App.config @@ -103,5 +103,13 @@ + + + + + + + + diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfInternalMembersOnRootEntity.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfInternalMembersOnRootEntity.cs new file mode 100644 index 00000000000..e7c94e6aa86 --- /dev/null +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfInternalMembersOnRootEntity.cs @@ -0,0 +1,57 @@ +using System.Linq; +using NHibernate.Cfg.MappingSchema; +using NHibernate.Mapping.ByCode; +using NUnit.Framework; + +namespace NHibernate.Test.MappingByCode.ExplicitMappingTests +{ + [TestFixture] + public class MappingOfInternalMembersOnRootEntity + { + public class MyClass + { + protected internal int _id; + protected internal int _version; + protected internal string _something; + } + + [Test] + public void MapClassWithInternalIdAndProperty() + { + var mapper = new ModelMapper(); + mapper.Class(ca => + { + ca.Id(x => x._id, map => + { + map.Column("MyClassId"); + map.Generator(Generators.HighLow, gmap => gmap.Params(new { max_low = 100 })); + }); + ca.Version(x => x._version, map => { }); + ca.Property(x => x._something, map => map.Length(150)); + }); + var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); + var hbmClass = hbmMapping.RootClasses[0]; + Assert.That(hbmClass, Is.Not.Null); + + var hbmId = hbmClass.Id; + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.name, Is.EqualTo("_id")); + Assert.That(hbmId.access, Is.EqualTo("field")); + + var hbmIdGenerator = hbmId.generator; + Assert.That(hbmIdGenerator, Is.Not.Null); + Assert.That(hbmIdGenerator.@class, Is.EqualTo("hilo")); + Assert.That(hbmIdGenerator.param[0].name, Is.EqualTo("max_low")); + Assert.That(hbmIdGenerator.param[0].GetText(), Is.EqualTo("100")); + + var hbmVersion = hbmClass.Version; + Assert.That(hbmVersion, Is.Not.Null); + Assert.That(hbmVersion.name, Is.EqualTo("_version")); + + var hbmProperty = hbmClass.Properties.OfType().Single(); + Assert.That(hbmProperty.name, Is.EqualTo("_something")); + Assert.That(hbmProperty.access, Is.EqualTo("field")); + Assert.That(hbmProperty.length, Is.EqualTo("150")); + } + } +} \ No newline at end of file diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index 962022b5487..b739c4b9a1a 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -582,6 +582,7 @@ + diff --git a/src/NHibernate/Mapping/ByCode/TypeExtensions.cs b/src/NHibernate/Mapping/ByCode/TypeExtensions.cs index c5f23b0c0ea..89dd4a6a29d 100644 --- a/src/NHibernate/Mapping/ByCode/TypeExtensions.cs +++ b/src/NHibernate/Mapping/ByCode/TypeExtensions.cs @@ -100,8 +100,16 @@ public static MemberInfo DecodeMemberAccessExpressionOf(Expr return memberOfDeclaringType; } - return typeof (TEntity).GetProperty(memberOfDeclaringType.Name, PropertiesOfClassHierarchy, - null, memberOfDeclaringType.GetPropertyOrFieldType(), new System.Type[0], null); + var propertyInfo = memberOfDeclaringType as PropertyInfo; + if (propertyInfo != null) + { + return typeof (TEntity).GetProperty(propertyInfo.Name, PropertiesOfClassHierarchy, null, propertyInfo.PropertyType, new System.Type[0], null); + } + if (memberOfDeclaringType is FieldInfo) + { + return typeof (TEntity).GetField(memberOfDeclaringType.Name, PropertiesOfClassHierarchy); + } + throw new NotSupportedException(); } public static MemberInfo GetMemberFromDeclaringType(this MemberInfo source) From 4c31609f6265d9d9db3016ba25b8a23373396562 Mon Sep 17 00:00:00 2001 From: LordJZ Date: Wed, 22 Oct 2014 06:25:01 +0400 Subject: [PATCH 16/30] Fixed PropertyExpression.ToString when RHS is a projection --- src/NHibernate/Criterion/PropertyExpression.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NHibernate/Criterion/PropertyExpression.cs b/src/NHibernate/Criterion/PropertyExpression.cs index cb5c7c9512f..84ec0d96faa 100644 --- a/src/NHibernate/Criterion/PropertyExpression.cs +++ b/src/NHibernate/Criterion/PropertyExpression.cs @@ -124,7 +124,7 @@ public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery c /// public override string ToString() { - return (_lhsProjection ?? (object)_lhsPropertyName) + Op + _rhsPropertyName; + return (_lhsProjection ?? (object)_lhsPropertyName) + Op + (_rhsProjection ?? (object)_rhsPropertyName); } public override IProjection[] GetProjections() From c436a8c198182ed817ce5dbfcee0f06fe0337ce1 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 31 Dec 2011 13:47:04 +0100 Subject: [PATCH 17/30] Stateless Session with deduplicated result with join fetch --- src/NHibernate/Impl/StatelessSessionImpl.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NHibernate/Impl/StatelessSessionImpl.cs b/src/NHibernate/Impl/StatelessSessionImpl.cs index 5a8b7052823..fc948f187b9 100644 --- a/src/NHibernate/Impl/StatelessSessionImpl.cs +++ b/src/NHibernate/Impl/StatelessSessionImpl.cs @@ -316,7 +316,13 @@ public override bool IsEventSource public override object GetEntityUsingInterceptor(EntityKey key) { CheckAndUpdateSessionStatus(); - return null; + // while a pending Query we should use existing temporary entities so a join fetch does not create multiple instances + // of the same parent item + object obj; + if (temporaryPersistenceContext.EntitiesByKey.TryGetValue(key, out obj)) + return obj; + else + return null; } public override IPersistenceContext PersistenceContext From 92622021de720f9b78ccac676ea12057c0d62831 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 20 May 2012 19:00:02 +0200 Subject: [PATCH 18/30] Linq Unit Test for Join Fetch with Stateless Session Shows that the change made in StatelessSessionImpl.GetEntityUsingInterceptor effectively eliminates Duplicates in a Linq query with Join Fetch. --- .../LazyCollectionFetchTests.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs b/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs index a475a842de6..ce890c0529b 100644 --- a/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs +++ b/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs @@ -1,8 +1,10 @@ using System; using System.Collections.Generic; +using System.Linq; using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; +using NHibernate.Linq; using NUnit.Framework; using SharpTestsEx; @@ -129,6 +131,24 @@ public void ShouldWorkLoadingComplexEntities() tx.Commit(); } + using (IStatelessSession s = sessions.OpenStatelessSession()) + using (ITransaction tx = s.BeginTransaction()) + { + IList> hf = s.Query>().FetchMany(f => f.Childs).ToList(); + Assert.That(hf.Count, Is.EqualTo(1)); + Assert.That(hf[0].Father.Name, Is.EqualTo(humanFather)); + Assert.That(hf[0].Mother.Name, Is.EqualTo(humanMother)); + NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should be initialized").Be.True(); + + IList> rf = s.Query>().FetchMany(f => f.Childs).ToList(); + Assert.That(rf.Count, Is.EqualTo(1)); + Assert.That(rf[0].Father.Description, Is.EqualTo(crocodileFather)); + Assert.That(rf[0].Mother.Description, Is.EqualTo(crocodileMother)); + NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should be initialized").Be.True(); + + tx.Commit(); + } + using (ISession s = sessions.OpenSession()) using (ITransaction tx = s.BeginTransaction()) { From 19eb0d22a6d508773221a2579bffd49c28c8a53d Mon Sep 17 00:00:00 2001 From: CSharper2010 Date: Thu, 16 Aug 2012 22:49:11 +0200 Subject: [PATCH 19/30] Unit Test for FetchMany and ThenFetchMany in Stateless Session Signed-off-by: CSharper2010 --- src/NHibernate.Test/NHibernate.Test.csproj | 2 + .../FetchingLazyCollections/TreeFetchTests.cs | 70 +++++++++++++++++++ src/NHibernate.Test/Stateless/TreeNode.cs | 20 ++++++ 3 files changed, 92 insertions(+) create mode 100644 src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs create mode 100644 src/NHibernate.Test/Stateless/TreeNode.cs diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index d0c37d235f0..2533d1bd023 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -1233,6 +1233,7 @@ + @@ -1240,6 +1241,7 @@ + diff --git a/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs b/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs new file mode 100644 index 00000000000..b076af228fd --- /dev/null +++ b/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using NHibernate.Cfg.MappingSchema; +using NHibernate.Mapping.ByCode; +using NHibernate.Mapping.ByCode.Conformist; +using NHibernate.Linq; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.Stateless.FetchingLazyCollections +{ + public class TreeFetchTests : TestCaseMappingByCode + { + protected override HbmMapping GetMappings() + { + var mapper = new ModelMapper(); + mapper.BeforeMapClass += (mi, t, cm) => cm.Id(im => im.Generator(Generators.HighLow)); + mapper.Class( + mc => + { + mc.Id(x => x.Id); + mc.Property(x => x.Content); + mc.Set(x => x.Children, cam => + { + cam.Key(km => km.Column("parentId")); + cam.Cascade(Mapping.ByCode.Cascade.All); + }, rel => rel.OneToMany()); + }); + var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); + return mappings; + } + + [Test] + public void FetchMultipleHierarchies() + { + using (ISession s = sessions.OpenSession()) + using (ITransaction tx = s.BeginTransaction()) + { + var root = new TreeNode { Content = "Root" }; + var child1 = new TreeNode { Content = "Child1" }; + root.Children.Add(child1); + root.Children.Add(new TreeNode { Content = "Child2" }); + child1.Children.Add(new TreeNode { Content = "Child1Child1" }); + child1.Children.Add(new TreeNode { Content = "Child1Child2" }); + s.Save(root); + tx.Commit(); + } + + using (IStatelessSession s = sessions.OpenStatelessSession()) + using (ITransaction tx = s.BeginTransaction()) + { + IList rootNodes = s.Query().Where(t => t.Content == "Root") + .FetchMany(f => f.Children) + .ThenFetchMany(f => f.Children).ToList(); + Assert.That(rootNodes.Count, Is.EqualTo(1)); + Assert.That(rootNodes.First().Children.Count, Is.EqualTo(2)); + + tx.Commit(); + } + + using (ISession s = sessions.OpenSession()) + using (ITransaction tx = s.BeginTransaction()) + { + s.Delete("from TreeNode"); + tx.Commit(); + } + } + } +} \ No newline at end of file diff --git a/src/NHibernate.Test/Stateless/TreeNode.cs b/src/NHibernate.Test/Stateless/TreeNode.cs new file mode 100644 index 00000000000..e76bcbfd768 --- /dev/null +++ b/src/NHibernate.Test/Stateless/TreeNode.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; + + +namespace NHibernate.Test.Stateless +{ + public class TreeNode + { + private ISet children = new HashSet(); + + public virtual int Id { get; protected set; } + + public virtual string Content { get; set; } + + public virtual ISet Children + { + get { return children; } + protected set { children = value; } + } + } +} From 62348a06882f10497c289fbb1001e12028b06cc9 Mon Sep 17 00:00:00 2001 From: Oskar Berggren Date: Sun, 21 Sep 2014 22:59:50 +0200 Subject: [PATCH 20/30] Code style cleanup. --- .../FetchingLazyCollections/TreeFetchTests.cs | 109 +++++++++--------- src/NHibernate.Test/Stateless/TreeNode.cs | 22 ++-- src/NHibernate/Impl/StatelessSessionImpl.cs | 14 +-- 3 files changed, 71 insertions(+), 74 deletions(-) diff --git a/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs b/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs index b076af228fd..8fc041724a3 100644 --- a/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs +++ b/src/NHibernate.Test/Stateless/FetchingLazyCollections/TreeFetchTests.cs @@ -1,70 +1,67 @@ -using System; using System.Collections.Generic; using System.Linq; using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; -using NHibernate.Mapping.ByCode.Conformist; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Stateless.FetchingLazyCollections { - public class TreeFetchTests : TestCaseMappingByCode - { - protected override HbmMapping GetMappings() - { - var mapper = new ModelMapper(); - mapper.BeforeMapClass += (mi, t, cm) => cm.Id(im => im.Generator(Generators.HighLow)); - mapper.Class( - mc => - { - mc.Id(x => x.Id); - mc.Property(x => x.Content); - mc.Set(x => x.Children, cam => - { - cam.Key(km => km.Column("parentId")); - cam.Cascade(Mapping.ByCode.Cascade.All); - }, rel => rel.OneToMany()); - }); - var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); - return mappings; - } + public class TreeFetchTests : TestCaseMappingByCode + { + protected override HbmMapping GetMappings() + { + var mapper = new ModelMapper(); + mapper.BeforeMapClass += (mi, t, cm) => cm.Id(im => im.Generator(Generators.HighLow)); + mapper.Class( + mc => + { + mc.Id(x => x.Id); + mc.Property(x => x.Content); + mc.Set(x => x.Children, cam => + { + cam.Key(km => km.Column("parentId")); + cam.Cascade(Mapping.ByCode.Cascade.All); + }, rel => rel.OneToMany()); + }); + var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); + return mappings; + } - [Test] - public void FetchMultipleHierarchies() - { - using (ISession s = sessions.OpenSession()) - using (ITransaction tx = s.BeginTransaction()) - { - var root = new TreeNode { Content = "Root" }; - var child1 = new TreeNode { Content = "Child1" }; - root.Children.Add(child1); - root.Children.Add(new TreeNode { Content = "Child2" }); - child1.Children.Add(new TreeNode { Content = "Child1Child1" }); - child1.Children.Add(new TreeNode { Content = "Child1Child2" }); - s.Save(root); - tx.Commit(); - } + [Test] + public void FetchMultipleHierarchies() + { + using (ISession s = sessions.OpenSession()) + using (ITransaction tx = s.BeginTransaction()) + { + var root = new TreeNode {Content = "Root"}; + var child1 = new TreeNode {Content = "Child1"}; + root.Children.Add(child1); + root.Children.Add(new TreeNode {Content = "Child2"}); + child1.Children.Add(new TreeNode {Content = "Child1Child1"}); + child1.Children.Add(new TreeNode {Content = "Child1Child2"}); + s.Save(root); + tx.Commit(); + } - using (IStatelessSession s = sessions.OpenStatelessSession()) - using (ITransaction tx = s.BeginTransaction()) - { - IList rootNodes = s.Query().Where(t => t.Content == "Root") - .FetchMany(f => f.Children) - .ThenFetchMany(f => f.Children).ToList(); - Assert.That(rootNodes.Count, Is.EqualTo(1)); - Assert.That(rootNodes.First().Children.Count, Is.EqualTo(2)); + using (IStatelessSession s = sessions.OpenStatelessSession()) + using (ITransaction tx = s.BeginTransaction()) + { + IList rootNodes = s.Query().Where(t => t.Content == "Root") + .FetchMany(f => f.Children) + .ThenFetchMany(f => f.Children).ToList(); + Assert.That(rootNodes.Count, Is.EqualTo(1)); + Assert.That(rootNodes.First().Children.Count, Is.EqualTo(2)); - tx.Commit(); - } + tx.Commit(); + } - using (ISession s = sessions.OpenSession()) - using (ITransaction tx = s.BeginTransaction()) - { - s.Delete("from TreeNode"); - tx.Commit(); - } - } - } + using (ISession s = sessions.OpenSession()) + using (ITransaction tx = s.BeginTransaction()) + { + s.Delete("from TreeNode"); + tx.Commit(); + } + } + } } \ No newline at end of file diff --git a/src/NHibernate.Test/Stateless/TreeNode.cs b/src/NHibernate.Test/Stateless/TreeNode.cs index e76bcbfd768..ca8614036cc 100644 --- a/src/NHibernate.Test/Stateless/TreeNode.cs +++ b/src/NHibernate.Test/Stateless/TreeNode.cs @@ -3,18 +3,18 @@ namespace NHibernate.Test.Stateless { - public class TreeNode - { - private ISet children = new HashSet(); + public class TreeNode + { + private ISet _children = new HashSet(); - public virtual int Id { get; protected set; } + public virtual int Id { get; protected set; } - public virtual string Content { get; set; } + public virtual string Content { get; set; } - public virtual ISet Children - { - get { return children; } - protected set { children = value; } - } - } + public virtual ISet Children + { + get { return _children; } + protected set { _children = value; } + } + } } diff --git a/src/NHibernate/Impl/StatelessSessionImpl.cs b/src/NHibernate/Impl/StatelessSessionImpl.cs index fc948f187b9..aa3737f3679 100644 --- a/src/NHibernate/Impl/StatelessSessionImpl.cs +++ b/src/NHibernate/Impl/StatelessSessionImpl.cs @@ -316,13 +316,13 @@ public override bool IsEventSource public override object GetEntityUsingInterceptor(EntityKey key) { CheckAndUpdateSessionStatus(); - // while a pending Query we should use existing temporary entities so a join fetch does not create multiple instances - // of the same parent item - object obj; - if (temporaryPersistenceContext.EntitiesByKey.TryGetValue(key, out obj)) - return obj; - else - return null; + // while a pending Query we should use existing temporary entities so a join fetch does not create multiple instances + // of the same parent item + object obj; + if (temporaryPersistenceContext.EntitiesByKey.TryGetValue(key, out obj)) + return obj; + + return null; } public override IPersistenceContext PersistenceContext From bbd00bae70a70c203c7d6860eb349a1f79d446ef Mon Sep 17 00:00:00 2001 From: Oskar Berggren Date: Mon, 22 Sep 2014 01:08:56 +0200 Subject: [PATCH 21/30] StatelessSessionImpl.cs: Add reference to issue. --- src/NHibernate/Impl/StatelessSessionImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NHibernate/Impl/StatelessSessionImpl.cs b/src/NHibernate/Impl/StatelessSessionImpl.cs index aa3737f3679..0e648b1997b 100644 --- a/src/NHibernate/Impl/StatelessSessionImpl.cs +++ b/src/NHibernate/Impl/StatelessSessionImpl.cs @@ -317,7 +317,7 @@ public override object GetEntityUsingInterceptor(EntityKey key) { CheckAndUpdateSessionStatus(); // while a pending Query we should use existing temporary entities so a join fetch does not create multiple instances - // of the same parent item + // of the same parent item (NH-3015, NH-3705). object obj; if (temporaryPersistenceContext.EntitiesByKey.TryGetValue(key, out obj)) return obj; From 76ce833d38421bab304f14ee827b0e8deae03d78 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 11 Oct 2014 21:59:35 +1300 Subject: [PATCH 22/30] NH-3650 - Not share ComponentAsId between root classes if Id is defined in parent class --- .../ComponentAsIdTest.cs | 124 ++++++++++++++++++ src/NHibernate.Test/NHibernate.Test.csproj | 1 + .../Impl/CustomizersImpl/ClassCustomizer.cs | 17 ++- ...faultCandidatePersistentMembersProvider.cs | 4 +- 4 files changed, 138 insertions(+), 8 deletions(-) create mode 100644 src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentAsIdTest.cs diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentAsIdTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentAsIdTest.cs new file mode 100644 index 00000000000..5ea9e10f988 --- /dev/null +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentAsIdTest.cs @@ -0,0 +1,124 @@ +using System; +using System.Linq; +using NHibernate; +using NHibernate.Cfg.MappingSchema; +using NHibernate.Linq; +using NHibernate.Mapping.ByCode; +using NHibernate.Mapping.ByCode.Conformist; +using NUnit.Framework; + +namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests +{ + public abstract class Parent + { + public virtual ParentId Id { get; set; } + public virtual string Name { get; set; } + public virtual Address Address { get; set; } + } + + public class ParentId + { + public string Key1 { get; set; } + public string Key2 { get; set; } + + public override bool Equals(object obj) + { + var pk = obj as ParentId; + + if (obj == null) + return false; + + return (Key1 == pk.Key1 && Key2 == pk.Key2); + } + + public override int GetHashCode() + { + return (Key1 + "|" + Key2).GetHashCode(); + } + } + + public class Child1 : Parent + { + } + + public class Child2 : Parent + { + } + + class Child1Map : ClassMapping + { + public Child1Map() + { + Table("Child1"); + + ComponentAsId(x => x.Id, pk => + { + pk.Property(x => x.Key1, x => x.Column("key1")); + pk.Property(x => x.Key2, x => + { + x.Column("key2"); + }); + }); + + Property(x => x.Name); + + Component
(x => x.Address, map => + { + map.Property(y => y.City, mc => mc.Column("city1")); + }); + } + } + + class Child2Map : ClassMapping + { + public Child2Map() + { + Table("Child2"); + + ComponentAsId(x => x.Id, pk => + { + pk.Property(x => x.Key1, x => x.Column("key1")); + pk.Property(x => x.Key2, x => + { + x.Column("key2__"); + }); + }); + + Property(x => x.Name); + + Component
(x => x.Address, map => + { + map.Property(y => y.City, mc => mc.Column("city2")); + }); + } + } + + public class Address + { + public virtual string City { get; set; } + } + + [TestFixture] + public class ComponentAsIdTest + { + [Test] + public void CanHaveSameComponentAsIdMultipleTimesWithDifferentColumnNamesForSameProperty() + { + //NH-3650 + var model = new ModelMapper(); + model.AddMapping(); + model.AddMapping(); + + var mappings = model.CompileMappingForEach(new[] { typeof(Child1), typeof(Child2) }); + + var child1Mapping = mappings.ElementAt(0); + Assert.AreEqual("city1", child1Mapping.RootClasses[0].Properties.OfType().First().Properties.OfType().Single().column); + //next one fails + Assert.AreEqual("key2", child1Mapping.RootClasses[0].CompositeId.Items.OfType().Last().column1); + + var child2Mapping = mappings.ElementAt(1); + Assert.AreEqual("city2", child2Mapping.RootClasses[0].Properties.OfType().First().Properties.OfType().Single().column); + Assert.AreEqual("key2__", child2Mapping.RootClasses[0].CompositeId.Items.OfType().Last().column1); + } + } +} diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index 962022b5487..9fb142f5fbf 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -557,6 +557,7 @@ + diff --git a/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs b/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs index 4b25dfd56e5..1de17c572c2 100644 --- a/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs +++ b/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs @@ -64,9 +64,8 @@ public void ComponentAsId(Expression> idPr public void ComponentAsId(Expression> idProperty, Action> idMapper) where TComponent : class { - var member = TypeExtensions.DecodeMemberAccessExpression(idProperty); - var propertyPath = new PropertyPath(null, member); - idMapper(new ComponentAsIdCustomizer(ExplicitDeclarationsHolder, CustomizersHolder, propertyPath)); + var memberOf = TypeExtensions.DecodeMemberAccessExpressionOf(idProperty); + RegisterComponentAsIdMapping(idMapper, memberOf); } public void ComponentAsId(string notVisiblePropertyOrFieldName) where TComponent : class @@ -77,8 +76,16 @@ public void ComponentAsId(string notVisiblePropertyOrFieldName) wher public void ComponentAsId(string notVisiblePropertyOrFieldName, Action> idMapper) where TComponent : class { var member = typeof(TEntity).GetPropertyOrFieldMatchingName(notVisiblePropertyOrFieldName); - var propertyPath = new PropertyPath(null, member); - idMapper(new ComponentAsIdCustomizer(ExplicitDeclarationsHolder, CustomizersHolder, propertyPath)); + RegisterComponentAsIdMapping(idMapper, member); + } + + private void RegisterComponentAsIdMapping(Action> idMapper, params MemberInfo[] members) where TComponent : class + { + foreach (var member in members) + { + var propertyPath = new PropertyPath(PropertyPath, member); + idMapper(new ComponentAsIdCustomizer(ExplicitDeclarationsHolder, CustomizersHolder, propertyPath)); + } } public void ComposedId(Action> idPropertiesMapping) diff --git a/src/NHibernate/Mapping/ByCode/Impl/DefaultCandidatePersistentMembersProvider.cs b/src/NHibernate/Mapping/ByCode/Impl/DefaultCandidatePersistentMembersProvider.cs index 70b07eaebbc..1e4118de76a 100644 --- a/src/NHibernate/Mapping/ByCode/Impl/DefaultCandidatePersistentMembersProvider.cs +++ b/src/NHibernate/Mapping/ByCode/Impl/DefaultCandidatePersistentMembersProvider.cs @@ -16,9 +16,7 @@ public class DefaultCandidatePersistentMembersProvider : ICandidatePersistentMem public IEnumerable GetEntityMembersForPoid(System.Type entityClass) { - return entityClass.IsInterface - ? entityClass.GetInterfaceProperties() - : entityClass.GetPropertiesOfHierarchy().Concat(GetFieldsOfHierarchy(entityClass)); + return GetCandidatePersistentProperties(entityClass, RootClassPropertiesBindingFlags).Concat(GetFieldsOfHierarchy(entityClass)); } public IEnumerable GetRootEntityMembers(System.Type entityClass) From b0c80b39d8ae7f990960e1f2ab04a28964407e7e Mon Sep 17 00:00:00 2001 From: cremor Date: Thu, 30 Oct 2014 12:50:49 +0100 Subject: [PATCH 23/30] NH-3732: Start the NUnit GUI with the .NET 4.0 runtime --- Tools/nunit/nunit-x86.exe.config | 2 +- Tools/nunit/nunit.exe.config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/nunit/nunit-x86.exe.config b/Tools/nunit/nunit-x86.exe.config index e3c06b7fe73..c501464f07e 100644 --- a/Tools/nunit/nunit-x86.exe.config +++ b/Tools/nunit/nunit-x86.exe.config @@ -9,7 +9,7 @@ --> - + diff --git a/Tools/nunit/nunit.exe.config b/Tools/nunit/nunit.exe.config index e3c06b7fe73..c501464f07e 100644 --- a/Tools/nunit/nunit.exe.config +++ b/Tools/nunit/nunit.exe.config @@ -9,7 +9,7 @@ --> - + From 3246df4a57aa1154ffa5e7b52314bf0312cbfded Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 15 Nov 2014 14:07:25 +1300 Subject: [PATCH 24/30] NH-3710 - Corrected usage of aliasedLockModes --- src/NHibernate/Loader/Criteria/CriteriaLoader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NHibernate/Loader/Criteria/CriteriaLoader.cs b/src/NHibernate/Loader/Criteria/CriteriaLoader.cs index 8dee59a6391..5e8a34e53af 100644 --- a/src/NHibernate/Loader/Criteria/CriteriaLoader.cs +++ b/src/NHibernate/Loader/Criteria/CriteriaLoader.cs @@ -165,7 +165,7 @@ protected override SqlString ApplyLocks(SqlString sqlSelectString, IDictionary aliasedLockModes = new Dictionary(); + Dictionary aliasedLockModes = new Dictionary(); Dictionary keyColumnNames = dialect.ForUpdateOfColumns ? new Dictionary() : null; string[] drivingSqlAliases = Aliases; @@ -179,7 +179,7 @@ protected override SqlString ApplyLocks(SqlString sqlSelectString, IDictionary lockModes) From 8d0e9829ad74df095fe832d1385dd4c7fe1e14a0 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 15 Nov 2014 14:14:17 +1300 Subject: [PATCH 25/30] MINOR: Fix typo --- src/NHibernate/Criterion/ProjectionsExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NHibernate/Criterion/ProjectionsExtensions.cs b/src/NHibernate/Criterion/ProjectionsExtensions.cs index 15df997f0ed..6a4dd0e53f2 100644 --- a/src/NHibernate/Criterion/ProjectionsExtensions.cs +++ b/src/NHibernate/Criterion/ProjectionsExtensions.cs @@ -25,7 +25,7 @@ public static IProjection WithAlias(this IProjection projection, /// Project SQL function year() /// Note: throws an exception outside of a QueryOver expression ///
- [Obsolete("Pleae use DateTime.Year property instead")] + [Obsolete("Please use DateTime.Year property instead")] public static int YearPart(this DateTime dateTimeProperty) { throw new Exception("Not to be used directly - use inside QueryOver expression"); From f2da7c910a9d04a85ef5226921713b0484b9ded4 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 15 Nov 2014 18:29:08 +1300 Subject: [PATCH 26/30] Update test results --- .../firebird/NHibernate.Test.last-results.xml | 629 +- .../mysql/NHibernate.Test.last-results.xml | 382 +- .../oracle/NHibernate.Test.last-results.xml | 2888 +- .../NHibernate.Test.last-results.xml | 11205 +++--- .../NHibernate.Test.last-results.xml | 31951 ++++++++-------- 5 files changed, 23605 insertions(+), 23450 deletions(-) diff --git a/lib/teamcity/firebird/NHibernate.Test.last-results.xml b/lib/teamcity/firebird/NHibernate.Test.last-results.xml index 3c4336e070f..327f82479e3 100644 --- a/lib/teamcity/firebird/NHibernate.Test.last-results.xml +++ b/lib/teamcity/firebird/NHibernate.Test.last-results.xml @@ -1,9 +1,9 @@  - - + + - + @@ -16,12 +16,12 @@ - + - + @@ -51,7 +51,7 @@ - + @@ -581,6 +581,7 @@ + @@ -726,6 +727,10 @@ + + + + @@ -1205,11 +1210,11 @@ + - - - + + @@ -2383,9 +2388,9 @@ - + - + @@ -2398,34 +2403,12 @@ - - + + - - - FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error -SQL error code = -804 -Count of read-write columns does not equal count of values - ----> FirebirdSql.Data.Common.IscException : Dynamic SQL Error -SQL error code = -804 -Count of read-write columns does not equal count of values -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error -SQL error code = -804 -Count of read-write columns does not equal count of values - ----> FirebirdSql.Data.Common.IscException : Dynamic SQL Error -SQL error code = -804 -Count of read-write columns does not equal count of values -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - + + @@ -2463,6 +2446,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -2554,8 +2538,8 @@ Invalid expression in the select list (not contained in either an aggregate func - - + + @@ -3475,7 +3459,7 @@ Invalid expression in the select list (not contained in either an aggregate func - + @@ -3511,23 +3495,14 @@ Invalid expression in the select list (not contained in either an aggregate func - + - - - FirebirdSql.Data.FirebirdClient.FbException : multiple rows in singleton select - ----> FirebirdSql.Data.Common.IscException : multiple rows in singleton select -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - + @@ -3679,7 +3654,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + @@ -3906,6 +3881,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -4066,16 +4042,8 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - - - - - - - - - - + + @@ -4666,6 +4634,8 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + @@ -4947,7 +4917,6 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - @@ -4980,6 +4949,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -5116,18 +5086,8 @@ Token unknown - line 1, column 471 - - - - - - - - - - + + @@ -5283,6 +5243,11 @@ Token unknown - line 1, column 471 + + + + + @@ -5363,6 +5328,15 @@ Token unknown - line 1, column 471 + + + + + + + + + @@ -5391,6 +5365,7 @@ Token unknown - line 1, column 471 + @@ -5650,6 +5625,32 @@ Token unknown - line 1, column 471 + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5973,6 +5974,7 @@ Token unknown - line 1, column 471 + @@ -6574,9 +6576,15 @@ Token unknown - line 1, column 471 - - - + + + + + + + + + @@ -6714,31 +6722,31 @@ Token unknown - line 1, column 471 - + - + - - - - + + + + - - - - + + + + - + - - - - + + + + @@ -6837,7 +6845,7 @@ Token unknown - line 1, column 471 - + @@ -6849,6 +6857,7 @@ Token unknown - line 1, column 471 + @@ -6856,7 +6865,7 @@ Token unknown - line 1, column 471 - + @@ -6873,6 +6882,7 @@ Token unknown - line 1, column 471 + @@ -6880,7 +6890,7 @@ Token unknown - line 1, column 471 - + @@ -6892,6 +6902,7 @@ Token unknown - line 1, column 471 + @@ -6935,6 +6946,7 @@ Token unknown - line 1, column 471 + @@ -7306,69 +7318,22 @@ Token unknown - line 1, column 471 - + - + + + + - - - FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error -SQL error code = -104 -Token unknown - line 5, column 14 -@ - ----> FirebirdSql.Data.Common.IscException : Dynamic SQL Error -SQL error code = -104 -Token unknown - line 5, column 14 -@]]> - + + + + - - - FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error -SQL error code = -104 -Token unknown - line 5, column 14 -@ - ----> FirebirdSql.Data.Common.IscException : Dynamic SQL Error -SQL error code = -104 -Token unknown - line 5, column 14 -@]]> - + + + + @@ -7408,8 +7373,8 @@ Token unknown - line 5, column 14 0 ] -[SQL: select objecta0_.Id as Id4793_, objecta0_.Name as Name4793_, objecta0_.FontType as FontType4793_ from ObjectA objecta0_ where objecta0_.FontType&1>0] +[ select objecta0_.Id as Id4816_, objecta0_.Name as Name4816_, objecta0_.FontType as FontType4816_ from ObjectA objecta0_ where objecta0_.FontType&1>0 ] +[SQL: select objecta0_.Id as Id4816_, objecta0_.Name as Name4816_, objecta0_.FontType as FontType4816_ from ObjectA objecta0_ where objecta0_.FontType&1>0] ----> FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error SQL error code = -104 Token unknown - line 1, column 145 @@ -7423,8 +7388,8 @@ Token unknown - line 1, column 145 FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error SQL error code = -104 Token unknown - line 1, column 145 @@ -7588,9 +7553,9 @@ Token unknown - line 1, column 145 - + - + @@ -7601,11 +7566,7 @@ Token unknown - line 1, column 145 - - - - - + @@ -7832,15 +7793,11 @@ Token unknown - line 1, column 145 - + - + - - - - - + @@ -9080,9 +9037,9 @@ Token unknown - line 1, column 131 FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error SQL error code = -104 Token unknown - line 1, column 155 @@ -9143,20 +9100,11 @@ Token unknown - line 1, column 155 - + - + - - - FirebirdSql.Data.FirebirdClient.FbException : violation of FOREIGN KEY constraint "FK6482F242469DB27" on table "CATEGORY" -Foreign key references are present for the record - ----> FirebirdSql.Data.Common.IscException : violation of FOREIGN KEY constraint "FK6482F242469DB27" on table "CATEGORY" -Foreign key references are present for the record -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - + @@ -9221,6 +9169,18 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + + + + + + + + + @@ -9280,6 +9240,15 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + + + + + + @@ -9552,23 +9521,17 @@ TearDown : Test didn't clean up after itself. session closed: True database clea - + - + + + + - - - FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error -SQL error code = -104 -Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause) - ----> FirebirdSql.Data.Common.IscException : Dynamic SQL Error -SQL error code = -104 -Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause)]]> - + + + + @@ -9588,29 +9551,38 @@ Invalid expression in the select list (not contained in either an aggregate func - + - + + + + - - - - -]]> - + + + + - - - -]]> - + + + + + + + + + + + + + + + + + + + - - @@ -9761,6 +9733,16 @@ Invalid expression in the select list (not contained in either an aggregate func + + + + + + + + + + @@ -10363,56 +10345,26 @@ Invalid expression in the select list (not contained in either an aggregate func - + - + - - - FirebirdSql.Data.FirebirdClient.FbException : Dynamic SQL Error -SQL error code = -104 -Token unknown - line 1, column 179 -Blob - ----> FirebirdSql.Data.Common.IscException : Dynamic SQL Error -SQL error code = -104 -Token unknown - line 1, column 179 -Blob]]> - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + @@ -11472,6 +11424,15 @@ Blob]]> + + + + + + + + + @@ -12397,6 +12358,15 @@ Blob]]> + + + + + + + + + @@ -12453,6 +12423,18 @@ Blob]]> + + + + + + + + + + + + @@ -12463,6 +12445,19 @@ Blob]]> + + + + + + + + + + + + + @@ -12525,6 +12520,16 @@ Blob]]> + + + + + + + + + + @@ -12558,6 +12563,20 @@ Blob]]> + + + + + + + + + + + + + + @@ -12579,6 +12598,16 @@ Blob]]> + + + + + + + + + + @@ -12588,6 +12617,22 @@ Blob]]> + + + + + + + + + + + + + + + + @@ -12600,6 +12645,16 @@ Blob]]> + + + + + + + + + + @@ -14505,6 +14560,10 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + + + @@ -14719,6 +14778,12 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + + + + + @@ -14828,18 +14893,11 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + - + - - - - - + @@ -14861,7 +14919,7 @@ TearDown : Test didn't clean up after itself. session closed: True database clea - + @@ -14898,12 +14956,7 @@ TearDown : Test didn't clean up after itself. session closed: True database clea - - - - - + @@ -15553,6 +15606,22 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + + + + + + + + + + + + + + + diff --git a/lib/teamcity/mysql/NHibernate.Test.last-results.xml b/lib/teamcity/mysql/NHibernate.Test.last-results.xml index 8da9965c266..9dc584699a2 100644 --- a/lib/teamcity/mysql/NHibernate.Test.last-results.xml +++ b/lib/teamcity/mysql/NHibernate.Test.last-results.xml @@ -1,9 +1,9 @@  - - + + - + @@ -16,12 +16,12 @@ - + - + @@ -51,7 +51,7 @@ - + @@ -535,6 +535,7 @@ + @@ -698,6 +699,10 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + @@ -1181,11 +1186,11 @@ TearDown : Test didn't clean up after itself. session closed: True database clea - - - + + + @@ -1228,6 +1233,31 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2407,8 +2437,8 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - - + + @@ -2445,17 +2475,11 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + - - - - - + @@ -2468,6 +2492,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -3690,7 +3715,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + @@ -3917,6 +3942,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -4675,6 +4701,8 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + @@ -4985,7 +5013,6 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - @@ -5018,6 +5045,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -5284,6 +5312,11 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + + + + @@ -5364,6 +5397,15 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + + + + + + + + @@ -5392,6 +5434,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -5618,8 +5661,8 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + @@ -5651,6 +5694,32 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5974,6 +6043,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -6587,9 +6657,15 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - - - + + + + + + + + + @@ -6745,7 +6821,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + @@ -6887,6 +6963,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -6895,6 +6972,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -6902,6 +6980,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -6917,6 +6996,7 @@ TearDown : Test didn't clean up after itself. session closed: False database cle + @@ -8832,9 +8912,9 @@ TearDown : Test didn't clean up after itself. session closed: False database cle ?p1 limit ?p2 ] +[ SELECT this_.Id as Id5243_0_, this_.Name as Name5243_0_ FROM Product this_ WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM Product this_0_ ORDER BY this_0_.Name desc limit ?p0) and this_.Id > ?p1 limit ?p2 ] Name:take_0 - Value:5 Name:cp1 - Value:0 -[SQL: SELECT this_.Id as Id5216_0_, this_.Name as Name5216_0_ FROM Product this_ WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM Product this_0_ ORDER BY this_0_.Name desc limit ?p0) and this_.Id > ?p1 limit ?p2] +[SQL: SELECT this_.Id as Id5243_0_, this_.Name as Name5243_0_ FROM Product this_ WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM Product this_0_ ORDER BY this_0_.Name desc limit ?p0) and this_.Id > ?p1 limit ?p2] ----> MySql.Data.MySqlClient.MySqlException : This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery']]> @@ -8985,17 +9065,11 @@ TearDown : Test didn't clean up after itself. session closed: False database cle - + - + - - - MySql.Data.MySqlClient.MySqlException : Cannot delete or update a parent row: a foreign key constraint fails (`nhibernate`.`category`, CONSTRAINT `FK6482F242469DB27` FOREIGN KEY (`ParentId`) REFERENCES `category` (`Id`)) -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - + @@ -9067,6 +9141,18 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + + + + + + + + + @@ -9119,6 +9205,15 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + + + + + + @@ -9573,6 +9668,16 @@ TearDown : Test didn't clean up after itself. session closed: True database clea + + + + + + + + + + @@ -10038,9 +10143,9 @@ TearDown : Test didn't clean up after itself. session closed: True database clea MySql.Data.MySqlClient.MySqlException : This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery']]> @@ -10168,9 +10273,9 @@ TearDown : Test didn't clean up after itself. session closed: True database clea MySql.Data.MySqlClient.MySqlException : This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery']]> @@ -10194,36 +10299,21 @@ TearDown : Test didn't clean up after itself. session closed: True database clea - - - MySql.Data.MySqlClient.MySqlException : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Blob VARCHAR(255), BlobLength TEXT, BlobSqlType MEDIUMTEXT, primary key (ID))' at line 1]]> - + - - - - - - + + + - + MySql.Data.MySqlClient.MySqlException : Data too long for column 'BlobValue' at row 1]]> - - - - - - - - - - - - - - + + + + + @@ -11225,9 +11315,9 @@ TearDown : Test didn't clean up after itself. session closed: True database clea c.List()) Should Not throw NHibernate.Exceptions.GenericADOException. Not expected exception message: could not execute query -[ SELECT this_.Id as Id5922_1_, this_.Name as Name5922_1_, children2_.T1Id as T3_3_, children2_.Id as Id3_, children2_.Id as Id5923_0_, children2_.Name as Name5923_0_, children2_.T1Id as T3_5923_0_ FROM T1 this_ left outer join T2 children2_ on this_.Id=children2_.T1Id and ?p0=children2_.Name WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM T1 this_0_ ORDER BY this_0_.Id asc limit ?p1, ?p2) ] +[ SELECT this_.Id as Id5966_1_, this_.Name as Name5966_1_, children2_.T1Id as T3_3_, children2_.Id as Id3_, children2_.Id as Id5967_0_, children2_.Name as Name5967_0_, children2_.T1Id as T3_5967_0_ FROM T1 this_ left outer join T2 children2_ on this_.Id=children2_.T1Id and ?p0=children2_.Name WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM T1 this_0_ ORDER BY this_0_.Id asc limit ?p1, ?p2) ] Name:skip_0 - Value:3 Name:take_1 - Value:7 -[SQL: SELECT this_.Id as Id5922_1_, this_.Name as Name5922_1_, children2_.T1Id as T3_3_, children2_.Id as Id3_, children2_.Id as Id5923_0_, children2_.Name as Name5923_0_, children2_.T1Id as T3_5923_0_ FROM T1 this_ left outer join T2 children2_ on this_.Id=children2_.T1Id and ?p0=children2_.Name WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM T1 this_0_ ORDER BY this_0_.Id asc limit ?p1, ?p2)]]]> +[SQL: SELECT this_.Id as Id5966_1_, this_.Name as Name5966_1_, children2_.T1Id as T3_3_, children2_.Id as Id3_, children2_.Id as Id5967_0_, children2_.Name as Name5967_0_, children2_.T1Id as T3_5967_0_ FROM T1 this_ left outer join T2 children2_ on this_.Id=children2_.T1Id and ?p0=children2_.Name WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM T1 this_0_ ORDER BY this_0_.Id asc limit ?p1, ?p2)]]]> @@ -11300,6 +11390,15 @@ could not execute query + + + + + + + + + @@ -12214,6 +12313,15 @@ could not execute query + + + + + + + + + @@ -12230,7 +12338,7 @@ could not execute query - MySql.Data.MySqlClient.MySqlException : GetBytes can only be called on binary or guid columns]]> @@ -12275,6 +12383,18 @@ could not execute query + + + + + + + + + + + + @@ -12285,6 +12405,19 @@ could not execute query + + + + + + + + + + + + + @@ -12347,6 +12480,16 @@ could not execute query + + + + + + + + + + @@ -12380,6 +12523,20 @@ could not execute query + + + + + + + + + + + + + + @@ -12401,6 +12558,16 @@ could not execute query + + + + + + + + + + @@ -12410,6 +12577,22 @@ could not execute query + + + + + + + + + + + + + + + + @@ -12422,6 +12605,16 @@ could not execute query + + + + + + + + + + @@ -14032,6 +14225,10 @@ could not execute query + + + + @@ -14251,6 +14448,12 @@ could not execute query + + + + + + @@ -15071,6 +15274,22 @@ could not execute query + + + + + + + + + + + + + + + + @@ -15124,27 +15343,14 @@ could not execute query - + - + - + - - - - - - - - - - + + diff --git a/lib/teamcity/oracle/NHibernate.Test.last-results.xml b/lib/teamcity/oracle/NHibernate.Test.last-results.xml index 185274e359a..b9ad2a8b45a 100644 --- a/lib/teamcity/oracle/NHibernate.Test.last-results.xml +++ b/lib/teamcity/oracle/NHibernate.Test.last-results.xml @@ -1,35 +1,66 @@  - - + + - + - + - + + + + - - + + + + + + + + + + - + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + @@ -367,16 +398,16 @@ + - + - @@ -391,7 +422,6 @@ - @@ -399,9 +429,9 @@ - + - + @@ -423,16 +453,10 @@ - + - - - - But was: -]]> - - + @@ -504,13 +528,14 @@ - + + @@ -572,9 +597,9 @@ - - - + + + @@ -588,7 +613,7 @@ - + @@ -648,52 +673,62 @@ - + + + + + + + + + + + + + + + + + + + + + + + + - - - System.OverflowException : Arithmetic operation resulted in an overflow.]]> - - - - - + - - - - - - - - - - - + + + + + + + + + + @@ -718,7 +753,9 @@ Parameter name: index]]> - + + + @@ -743,7 +780,7 @@ Parameter name: index]]> - + @@ -752,6 +789,12 @@ Parameter name: index]]> + + + + + + @@ -781,6 +824,14 @@ Parameter name: index]]> + + + + + + + + @@ -853,6 +904,9 @@ Parameter name: index]]> + + + @@ -885,6 +939,11 @@ Parameter name: index]]> + + + + + @@ -931,6 +990,21 @@ Parameter name: index]]> + + + + + + + + + + + + + + + @@ -948,11 +1022,6 @@ Parameter name: index]]> - - - - - @@ -975,7 +1044,7 @@ Parameter name: index]]> - + @@ -990,6 +1059,7 @@ Parameter name: index]]> + @@ -1000,6 +1070,9 @@ Parameter name: index]]> + + + @@ -1009,7 +1082,6 @@ Parameter name: index]]> - @@ -1020,12 +1092,35 @@ Parameter name: index]]> + + + + + + + + + + + + + + + + + + + + + + - + + @@ -1034,6 +1129,16 @@ Parameter name: index]]> + + + + + + + + + + @@ -1063,11 +1168,11 @@ Parameter name: index]]> - - - - - + + + + + @@ -1108,6 +1213,45 @@ Parameter name: index]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1208,8 +1352,34 @@ Parameter name: index]]> - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1287,7 +1457,7 @@ Parameter name: index]]> - + @@ -1308,9 +1478,9 @@ Parameter name: index]]> - - - + + + @@ -1715,11 +1885,11 @@ Parameter name: index]]> - + - + @@ -1727,26 +1897,10 @@ Parameter name: index]]> - + - - - - But was: - -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - But was: - -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - + + @@ -1922,7 +2076,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -1966,7 +2120,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -2197,11 +2351,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + @@ -2214,22 +2368,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - + + - - - - - - - - - - + + @@ -2250,7 +2394,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -2258,24 +2402,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - 1 #1>0 -[SQL: select case when 2=2 then cast(:p0 as NUMBER(10,0)) else :p1 end as col_0_0_ from Animal animal0_] - ----> Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> - - - - - 1 -[SQL: select case when 2=2 then :p0 else 0 end as col_0_0_ from Animal animal0_] - ----> Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> - - + + @@ -2283,6 +2411,7 @@ Positional parameters: #0>1 + @@ -2308,9 +2437,9 @@ Positional parameters: #0>1 - + - + @@ -2322,14 +2451,14 @@ Positional parameters: #0>1 - + - + @@ -2347,20 +2476,12 @@ Positional parameters: #0>1 - - - - - + - - - - - + @@ -3212,6 +3333,13 @@ Positional parameters: #0>1 + + + + + + + @@ -3478,7 +3606,7 @@ Positional parameters: #0>1 - + @@ -3539,10 +3667,10 @@ Positional parameters: #0>1 - + - + @@ -3613,37 +3741,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - - - - - - - - - - - - - - - - - - + + + + @@ -3666,7 +3770,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + + @@ -3704,6 +3809,24 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + @@ -3719,6 +3842,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + @@ -3729,6 +3857,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -3739,7 +3868,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + + + + + + @@ -3756,6 +3890,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + @@ -3819,15 +3955,16 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + - + - - - - - + + @@ -3863,6 +4000,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + @@ -3870,6 +4012,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + @@ -3895,6 +4039,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -4424,6 +4569,29 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + + + + + + @@ -4435,6 +4603,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + @@ -4477,7 +4647,6 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - @@ -4485,6 +4654,21 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + @@ -4508,6 +4692,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -4523,11 +4708,38 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4556,67 +4768,40 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - - - - - - - - + + - - - - - - - - Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> - - + + - - - Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> - - + + + + + - - - - - + + + + + + @@ -4697,7 +4882,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + @@ -4721,87 +4911,95 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - - Oracle.DataAccess.Client.OracleException : ORA-00904: "PRODUCTCAT0_"."CATEGORYID": invalid identifier]]> - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + Oracle.DataAccess.Client.OracleException : ORA-00904: "PRODUCT0_"."CATEGORYID": invalid identifier]]> +[SQL: select product0_.ProductId as ProductId4361_, product0_.ProductName as ProductN2_4361_, product0_.SupplierId as SupplierId4361_, product0_.CategoryId as CategoryId4361_, product0_.QuantityPerUnit as Quantity5_4361_, product0_.UnitPrice as UnitPrice4361_, product0_.UnitsInStock as UnitsInS7_4361_, product0_.UnitsOnOrder as UnitsOnO8_4361_, product0_.ReorderLevel as ReorderL9_4361_, product0_.Discontinued as Discont10_4361_, product0_.ShippingWeight as Shippin11_4361_ from Products product0_ where (select Discontinued from ( select product0_.Discontinued from Categories productcat1_ where productcat1_.CategoryName=:p0 and productcat1_.CategoryId=product0_.CategoryId ) where rownum <=1)=:p1] + ----> System.Data.OracleClient.OracleException : ORA-00904: "PRODUCT0_"."CATEGORYID": invalid identifier +]]> - + - + Oracle.DataAccess.Client.OracleException : ORA-00904: "PRODUCT0_"."CATEGORYID": invalid identifier]]> +[SQL: select product0_.ProductId as ProductId4361_, product0_.ProductName as ProductN2_4361_, product0_.SupplierId as SupplierId4361_, product0_.CategoryId as CategoryId4361_, product0_.QuantityPerUnit as Quantity5_4361_, product0_.UnitPrice as UnitPrice4361_, product0_.UnitsInStock as UnitsInS7_4361_, product0_.UnitsOnOrder as UnitsOnO8_4361_, product0_.ReorderLevel as ReorderL9_4361_, product0_.Discontinued as Discont10_4361_, product0_.ShippingWeight as Shippin11_4361_ from Products product0_ where (select ProductName from ( select product0_.ProductName from Categories productcat1_ where productcat1_.CategoryName=:p0 and productcat1_.CategoryId=product0_.CategoryId ) where rownum <=1)=product0_.ProductName] + ----> System.Data.OracleClient.OracleException : ORA-00904: "PRODUCT0_"."CATEGORYID": invalid identifier +]]> - + Oracle.DataAccess.Client.OracleException : ORA-00904: "SHIPPER2_"."SHIPPERID": invalid identifier]]> + ----> System.Data.OracleClient.OracleException : ORA-00904: "SHIPPER2_"."SHIPPERID": invalid identifier +]]> - + Oracle.DataAccess.Client.OracleException : ORA-00904: "SHIPPER2_"."SHIPPERID": invalid identifier]]> + ----> System.Data.OracleClient.OracleException : ORA-00904: "SHIPPER2_"."SHIPPERID": invalid identifier +]]> - + Oracle.DataAccess.Client.OracleException : ORA-00904: "ORDER1_"."SHIPVIA": invalid identifier]]> + ----> System.Data.OracleClient.OracleException : ORA-00904: "ORDER1_"."SHIPVIA": invalid identifier +]]> - + - - - + + + System.Data.OracleClient.OracleException : ORA-00904: "PRODUCTCAT0_"."CATEGORYID": invalid identifier +]]> + + + + + @@ -4815,57 +5013,21 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - - - - - - - + + - - - - - - - - - - + + - - - - - - - - - - + + - - + + @@ -4888,65 +5050,75 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> +[SQL: select user0_.UserId as UserId4421_, user0_.Name as Name4421_, user0_.InvalidLoginAttempts as InvalidL3_4421_, user0_.RegisteredAt as Register4_4421_, user0_.LastLoginDate as LastLogi5_4421_, user0_.Enum1 as Enum6_4421_, user0_.Enum2 as Enum7_4421_, user0_.Features as Features4421_, user0_.RoleId as RoleId4421_, user0_.Property1 as Property10_4421_, user0_.Property2 as Property11_4421_, user0_.OtherProperty1 as OtherPr12_4421_ from Users user0_ where user0_.Features&:p0=:p1] + ----> System.Data.OracleClient.OracleException : ORA-01036: illegal variable name/number +]]> Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> +[SQL: select user0_.UserId as UserId4421_, user0_.Name as Name4421_, user0_.InvalidLoginAttempts as InvalidL3_4421_, user0_.RegisteredAt as Register4_4421_, user0_.LastLoginDate as LastLogi5_4421_, user0_.Enum1 as Enum6_4421_, user0_.Enum2 as Enum7_4421_, user0_.Features as Features4421_, user0_.RoleId as RoleId4421_, user0_.Property1 as Property10_4421_, user0_.Property2 as Property11_4421_, user0_.OtherProperty1 as OtherPr12_4421_ from Users user0_ where user0_.Features&:p0=:p1] + ----> System.Data.OracleClient.OracleException : ORA-01036: illegal variable name/number +]]> Oracle.DataAccess.Client.OracleException : ORA-01036: illegal variable name/number]]> +[SQL: select user0_.UserId as UserId4421_, user0_.Name as Name4421_, user0_.InvalidLoginAttempts as InvalidL3_4421_, user0_.RegisteredAt as Register4_4421_, user0_.LastLoginDate as LastLogi5_4421_, user0_.Enum1 as Enum6_4421_, user0_.Enum2 as Enum7_4421_, user0_.Features as Features4421_, user0_.RoleId as RoleId4421_, user0_.Property1 as Property10_4421_, user0_.Property2 as Property11_4421_, user0_.OtherProperty1 as OtherPr12_4421_ from Users user0_ where user0_.Features|:p0&:p1=:p2] + ----> System.Data.OracleClient.OracleException : ORA-01036: illegal variable name/number +]]> - + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + + - - + + - - - - - - - - - - - - - - - - + + + + @@ -4963,12 +5135,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + + @@ -4976,9 +5149,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + - - + + @@ -4993,7 +5169,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -5079,6 +5255,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -5095,6 +5272,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + @@ -5175,6 +5357,15 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + @@ -5190,8 +5381,6 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - @@ -5205,6 +5394,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -5216,6 +5406,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + @@ -5239,6 +5434,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -5387,6 +5583,103 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5636,6 +5929,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + @@ -5645,8 +5940,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - + + @@ -5708,6 +6003,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -6147,6 +6443,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -6308,9 +6605,15 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - + + + + + + + + + @@ -6355,39 +6658,56 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + @@ -6431,32 +6751,20 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - - - + - - - - - - + + - - - - - + @@ -6540,7 +6848,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -6554,111 +6862,121 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + + - + - + - + - + - + + - + - + - + - + + - + - + - + + - + - + - + - + - - - - + + + + + - + + + + + + + @@ -6895,6 +7213,22 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + @@ -6962,11 +7296,15 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + + + + + @@ -6982,56 +7320,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - Oracle.DataAccess.Client.OracleException : ORA-01008: not all variables bound]]> - - - - - Oracle.DataAccess.Client.OracleException : ORA-01008: not all variables bound]]> - - + + @@ -7063,25 +7357,22 @@ ORDER BY Name - + - + + + + - - - 0 ] -[SQL: select objecta0_.Id as Id4416_, objecta0_.Name as Name4416_, objecta0_.FontType as FontType4416_ from ObjectA objecta0_ where objecta0_.FontType&1>0] - ----> Oracle.DataAccess.Client.OracleException : ORA-00920: invalid relational operator]]> - + + + + - - - Oracle.DataAccess.Client.OracleException : ORA-00996: the concatenate operator is ||, not |]]> - + + + + @@ -7176,7 +7467,7 @@ ORDER BY Name - + @@ -7191,7 +7482,7 @@ ORDER BY Name - + @@ -7205,37 +7496,23 @@ ORDER BY Name - + - + - - - - - + - + - + - - - - - - - - - - + + @@ -7490,20 +7767,16 @@ ORDER BY Name - + - + - - - - - + - + @@ -7547,7 +7820,7 @@ ORDER BY Name - + @@ -7603,7 +7876,7 @@ ORDER BY Name - + @@ -7615,7 +7888,7 @@ ORDER BY Name - + @@ -7977,17 +8250,11 @@ ORDER BY Name - + - + - - - -]]> - - + @@ -8552,18 +8819,17 @@ ORDER BY Name - + - + + + + - - - Oracle.DataAccess.Client.OracleException : ORA-00920: invalid relational operator]]> - + + + + @@ -8593,7 +8859,7 @@ ORDER BY Name - + @@ -8634,10 +8900,11 @@ ORDER BY Name :p0 ) where rownum <=:p1 ] +[ select Id5248_0_,Name5248_0_ from ( SELECT this_.Id as Id5248_0_, this_.Name as Name5248_0_ FROM Product this_ WHERE this_.Id in (Select p.Id from Product p order by Name) and this_.Id > :p0 ) where rownum <=:p1 ] Name:cp0 - Value:0 -[SQL: select Id4835_0_,Name4835_0_ from ( SELECT this_.Id as Id4835_0_, this_.Name as Name4835_0_ FROM Product this_ WHERE this_.Id in (Select p.Id from Product p order by Name) and this_.Id > :p0 ) where rownum <=:p1] - ----> Oracle.DataAccess.Client.OracleException : ORA-00907: missing right parenthesis]]> +[SQL: select Id5248_0_,Name5248_0_ from ( SELECT this_.Id as Id5248_0_, this_.Name as Name5248_0_ FROM Product this_ WHERE this_.Id in (Select p.Id from Product p order by Name) and this_.Id > :p0 ) where rownum <=:p1] + ----> System.Data.OracleClient.OracleException : ORA-00907: missing right parenthesis +]]> @@ -8694,32 +8961,29 @@ ORDER BY Name - + + + + + - + + - + - + + + + - - - - But was: - -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - But was: - -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + + + + @@ -8741,18 +9005,17 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + + + + - - - Oracle.DataAccess.Client.OracleException : ORA-00920: invalid relational operator]]> - + + + + @@ -8764,8 +9027,9 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - Oracle.DataAccess.Client.OracleException : ORA-01799: a column may not be outer-joined to a subquery]]> + System.Data.OracleClient.OracleException : ORA-01799: a column may not be outer-joined to a subquery +]]> @@ -8878,13 +9142,25 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + - - - + + + @@ -8903,10 +9179,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + + + + @@ -8937,6 +9213,15 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + @@ -8975,7 +9260,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -9002,8 +9287,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - + + @@ -9097,9 +9382,9 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - + + + @@ -9129,17 +9414,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - - - + + @@ -9205,32 +9485,20 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - - - + - + - + - - - Oracle.DataAccess.Client.OracleException : ORA-00904: "P0": invalid identifier]]> - - + @@ -9241,8 +9509,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -9254,32 +9524,41 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - + + + + - - - - -]]> - + + + + - - - -]]> - + + + + - - - - - + + + + + + + + + + + + + + + + + + @@ -9369,6 +9648,19 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + + @@ -9387,6 +9679,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + @@ -9405,6 +9706,16 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + @@ -9430,11 +9741,17 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - + - + + + + + @@ -9641,19 +9958,11 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - + - - - Oracle.DataAccess.Client.OracleException : Connection request timed out]]> - - + @@ -9857,19 +10166,11 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - - - Oracle.DataAccess.Client.OracleException : ORA-00904: : invalid identifier]]> - + - - - - - + @@ -10017,6 +10318,20 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + + + @@ -10197,8 +10512,11 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + @@ -10264,6 +10582,22 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + + + + + @@ -10288,6 +10622,22 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + + + + + @@ -10328,6 +10678,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + @@ -10416,7 +10775,7 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + @@ -10755,18 +11114,11 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - - - - + - - - - - + @@ -10831,44 +11183,19 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - - - Oracle.DataAccess.Client.OracleException : ORA-00903: invalid table name]]> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + @@ -10883,6 +11210,17 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + @@ -10989,19 +11327,11 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - - - Oracle.DataAccess.Client.OracleException : ORA-00904: : invalid identifier]]> - + - - - - - + @@ -11015,6 +11345,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + @@ -11054,6 +11393,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + @@ -11063,6 +11411,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + @@ -11188,6 +11545,25 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + + + + + + + + @@ -11303,6 +11679,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + @@ -11431,12 +11816,32 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + + + + + + + + + + + + + + + + + + + + + @@ -11453,8 +11858,20 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + @@ -11473,14 +11890,14 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - - + + - - + + @@ -11494,6 +11911,21 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + + + + + + @@ -11504,15 +11936,20 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - + - - - - - + + + + + + + + + + @@ -11521,9 +11958,14 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - + + + + + + @@ -11550,6 +11992,16 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + @@ -11569,251 +12021,570 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + + - + - + - + + + + - + - - + + - + - - - - + - - - - - - + - + - - - - - - - - - - - + - + + + + - - + + + + + - + - + + + - + - + - + - + - + - + + - + - - + - + - + - + + - + - + + + + + + + - + - - - + - + - + - + - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + - - - - + - - - - - + + + - + - - - + + - + - + - + + - + - + + + + + + + + + + + + + + + + + @@ -11830,6 +12601,16 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact + + + + + + + + + + @@ -11877,7 +12658,7 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + @@ -11925,7 +12706,7 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + @@ -11971,7 +12752,7 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + @@ -12109,28 +12890,6 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - - - - - - - - - - - - - - - - - - - - - - @@ -12449,8 +13208,8 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - - + + @@ -12574,12 +13333,12 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + - + @@ -12679,14 +13438,15 @@ TearDown : Oracle.DataAccess.Client.OracleException : ORA-00911: invalid charact - + :p0 ORDER BY this_.xval asc ) row_ where rownum <=:p1) where rownum_ >:p2 for update of this_.Id ] +[ select Id6687_0_,xval6687_0_,yval6687_0_,Descript4_6687_0_ from ( select row_.*, rownum rownum_ from ( SELECT this_.Id as Id6687_0_, this_.xval as xval6687_0_, this_.yval as yval6687_0_, this_.Description as Descript4_6687_0_ FROM DataPoint this_ WHERE this_.xval > :p0 ORDER BY this_.xval asc ) row_ where rownum <=:p1) where rownum_ >:p2 for update of this_.Id ] Name:cp0 - Value:4.1 -[SQL: select Id6100_0_,xval6100_0_,yval6100_0_,Descript4_6100_0_ from ( select row_.*, rownum rownum_ from ( SELECT this_.Id as Id6100_0_, this_.xval as xval6100_0_, this_.yval as yval6100_0_, this_.Description as Descript4_6100_0_ FROM DataPoint this_ WHERE this_.xval > :p0 ORDER BY this_.xval asc ) row_ where rownum <=:p1) where rownum_ >:p2 for update of this_.Id] - ----> Oracle.DataAccess.Client.OracleException : ORA-00904: "THIS_"."ID": invalid identifier -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> +[SQL: select Id6687_0_,xval6687_0_,yval6687_0_,Descript4_6687_0_ from ( select row_.*, rownum rownum_ from ( SELECT this_.Id as Id6687_0_, this_.xval as xval6687_0_, this_.yval as yval6687_0_, this_.Description as Descript4_6687_0_ FROM DataPoint this_ WHERE this_.xval > :p0 ORDER BY this_.xval asc ) row_ where rownum <=:p1) where rownum_ >:p2 for update of this_.Id] + ----> System.Data.OracleClient.OracleException : ORA-00904: "THIS_"."ID": invalid identifier + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -13423,11 +14183,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.NullReferenceException : Object reference not set to an instance of an object. -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -13528,6 +14288,17 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + @@ -13542,9 +14313,9 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + @@ -13639,41 +14410,38 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + + + + - - - - System.IndexOutOfRangeException : Index was outside the bounds of the array. -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + + + + - - - 10 #1>20 -[SQL: { ? = call testParamHandling(?, ?) }] - ----> System.IndexOutOfRangeException : Index was outside the bounds of the array. -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + + + + + + + + + + + + + + - - - System.IndexOutOfRangeException : Index was outside the bounds of the array. -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + + + + - @@ -13700,21 +14468,21 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + + + + + - - - - - + @@ -13737,21 +14505,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - Oracle.DataAccess.Client.OracleException : ORA-00903: invalid table name]]> - + - - - - - + @@ -13859,29 +14619,31 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel Oracle.DataAccess.Client.OracleException : ORA-12704: character set mismatch + ----> System.Data.OracleClient.OracleException : ORA-12704: character set mismatch + TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select being0_.bid as bid6311_, being0_.ident as ident6311_, being0_.loc as loc6311_, being0_.Species as Species6311_ from ( select bid, name as ident, address as loc, 'human' as species +[ select being0_.bid as bid6901_, being0_.ident as ident6901_, being0_.loc as loc6901_, being0_.Species as Species6901_ from ( select bid, name as ident, address as loc, 'human' as species from humans union select bid, ident, planet as loc, species from aliens ) being0_ ] -[SQL: select being0_.bid as bid6311_, being0_.ident as ident6311_, being0_.loc as loc6311_, being0_.Species as Species6311_ from ( select bid, name as ident, address as loc, 'human' as species +[SQL: select being0_.bid as bid6901_, being0_.ident as ident6901_, being0_.loc as loc6901_, being0_.Species as Species6901_ from ( select bid, name as ident, address as loc, 'human' as species from humans union select bid, ident, planet as loc, species from aliens ) being0_] - ----> Oracle.DataAccess.Client.OracleException : ORA-12704: character set mismatch]]> + ----> System.Data.OracleClient.OracleException : ORA-12704: character set mismatch +]]> @@ -13916,6 +14678,18 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + + + + + + + + @@ -13926,9 +14700,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + @@ -13946,6 +14720,12 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + + @@ -13953,40 +14733,16 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + @@ -13996,47 +14752,23 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + - - - - - - - - - - + + - + - + - - - - - - - - - - - - - - - + + + @@ -14060,9 +14792,21 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + + + + + + + + + + + + + @@ -14127,10 +14871,10 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -14164,32 +14908,23 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - Oracle.DataAccess.Client.OracleException : ORA-00911: invalid character]]> - + - + + - - - - - - - - - - - + - - - - + + + + + @@ -14354,7 +15089,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -14399,7 +15134,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -14527,6 +15262,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + @@ -14549,6 +15289,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -14569,6 +15310,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + @@ -14582,7 +15330,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -14699,6 +15447,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + @@ -14819,6 +15568,22 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + @@ -14872,14 +15637,27 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + - - + + + 2014-11-14T21:36:51.0000000) + Expected: True + But was: False + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + diff --git a/lib/teamcity/sqlServerCe/NHibernate.Test.last-results.xml b/lib/teamcity/sqlServerCe/NHibernate.Test.last-results.xml index 3d55852ced2..0f62fbbd6a4 100644 --- a/lib/teamcity/sqlServerCe/NHibernate.Test.last-results.xml +++ b/lib/teamcity/sqlServerCe/NHibernate.Test.last-results.xml @@ -1,9 +1,9 @@  - - + + - + @@ -16,12 +16,12 @@ - + - + @@ -51,7 +51,7 @@ - + @@ -398,35 +398,35 @@ + - - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -437,17 +437,16 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - @@ -459,50 +458,79 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + - + - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_0_ ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_ ] +[SQL: select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_ ] +[SQL: select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ]]]> - - - - + + + + - + - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ]]]> - - - - + + + + - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_ ] +[SQL: select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_ ] +[SQL: select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ]]]> - + - + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = T_USER,Constraint name = PK__T_USER__0000000000000282 ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_ ] +[SQL: select user0_.UserName as UserName75_, user0_.LastModified as LastModi2_75_, user0_.Password as Password75_, user0_.Name as Name75_, user0_.Dob as Dob75_, user0_.Address as Address75_, user0_.PreviousAddress as Previous7_75_, user0_.address as address75_, datepart(year, user0_.dob) as formula0_ from T_USER user0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = Address75_ ]]]> @@ -530,43 +558,43 @@ Parameter name: typecode]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 165,Token in error = select ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] -[SQL: select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] +[ select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] +[SQL: select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 157,Token in error = select ]]]> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Product,Constraint name = PK__Product__00000000000002D7 ] + ----> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Product,Constraint name = PK__Product__00000000000002F1 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] -[SQL: select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] +[ select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] +[SQL: select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 157,Token in error = select ]]]> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Product,Constraint name = PK__Product__00000000000002D7 ] + ----> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Product,Constraint name = PK__Product__00000000000002F1 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] -[SQL: select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] +[ select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] +[SQL: select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 157,Token in error = select ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CustomerId82_ ] +[ select lineitem0_.CustomerId as CustomerId81_, lineitem0_.OrderNumber as OrderNum2_81_, lineitem0_.ProductId as ProductId81_, lineitem0_.Quantity as Quantity81_, lineitem0_.customerId as customerId81_, lineitem0_.orderNumber as orderNum2_81_, lineitem0_.productId as productId81_ from LineItem lineitem0_ where lineitem0_.customerId='C111' ] +[SQL: select lineitem0_.CustomerId as CustomerId81_, lineitem0_.OrderNumber as OrderNum2_81_, lineitem0_.ProductId as ProductId81_, lineitem0_.Quantity as Quantity81_, lineitem0_.customerId as customerId81_, lineitem0_.orderNumber as orderNum2_81_, lineitem0_.productId as productId81_ from LineItem lineitem0_ where lineitem0_.customerId='C111'] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CustomerId81_ ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] -[SQL: select order0_.CustomerId as CustomerId81_, order0_.OrderNumber as OrderNum2_81_, order0_.OrderDate as OrderDate81_, order0_.customerId as customerId81_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] +[ select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_ ] +[SQL: select order0_.CustomerId as CustomerId80_, order0_.OrderNumber as OrderNum2_80_, order0_.OrderDate as OrderDate80_, order0_.customerId as customerId80_, ( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = order0_.customerId and li.orderNumber = order0_.orderNumber ) as formula1_ from CustomerOrder order0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 157,Token in error = select ]]]> @@ -590,22 +618,22 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -642,70 +670,78 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 229,Token in error = SELECT ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -715,9 +751,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(distinct this_.studentId) as y0_ FROM Enrolment this_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 14,Token in error = distinct ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -727,41 +763,41 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(distinct this_.studentId) as y0_ FROM Enrolment this_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 14,Token in error = distinct ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -771,57 +807,57 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(distinct this_.address_city) as y0_ FROM Student this_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 14,Token in error = distinct ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -832,89 +868,89 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -924,9 +960,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(distinct this_.studentId) as y0_ FROM Enrolment this_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 14,Token in error = distinct ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -936,50 +972,50 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(distinct this_.studentId) as y0_ FROM Enrolment this_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 14,Token in error = distinct ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -990,70 +1026,70 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 175,Token in error = SELECT ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -1064,25 +1100,25 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(this_.CourseCode) as y0_ FROM Course this_ WHERE (@p0 <= (SELECT avg(cast(this_0_.Semester as FLOAT)) as y0_ FROM Enrolment this_0_ WHERE this_0_.CourseCode = this_.CourseCode) or (SELECT avg(cast(this_0_.Semester as FLOAT)) as y0_ FROM Enrolment this_0_ WHERE this_0_.CourseCode = this_.CourseCode) IS NULL)] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 72,Token in error = SELECT ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode87_, coursemeet0_."Day" as Day2_87_, coursemeet0_.Period as Period87_, coursemeet0_.Location as Location87_, coursemeet0_.courseCode as courseCode87_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode87_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode86_, coursemeet0_."Day" as Day2_86_, coursemeet0_.Period as Period86_, coursemeet0_.Location as Location86_, coursemeet0_.courseCode as courseCode86_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode86_ ]]]> @@ -1092,41 +1128,41 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> @@ -1136,73 +1172,73 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query [SQL: SELECT count(distinct this_.studentId) as y0_ FROM Enrolment this_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 14,Token in error = distinct ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode96_, coursemeet0_."Day" as Day2_96_, coursemeet0_.Period as Period96_, coursemeet0_.Location as Location96_, coursemeet0_.courseCode as courseCode96_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode96_, coursemeet0_."Day" as Day2_96_, coursemeet0_.Period as Period96_, coursemeet0_.Location as Location96_, coursemeet0_.courseCode as courseCode96_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode96_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode95_, coursemeet0_."Day" as Day2_95_, coursemeet0_.Period as Period95_, coursemeet0_.Location as Location95_, coursemeet0_.courseCode as courseCode95_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode95_ ]]]> @@ -1267,22 +1303,39 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + + + + + + + + + + + + + + + + + + + - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + @@ -1291,30 +1344,26 @@ SELECT count(*) as y0_ FROM Person this_ inner join Child child1_ on this_.Id=ch ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 28,Token in error = SELECT ]]]> - - + + + + + + + + + @@ -1339,7 +1388,9 @@ SELECT count(*) as y0_ FROM Person this_ inner join Child child1_ on this_.Id=ch - + + + @@ -1364,7 +1415,7 @@ SELECT count(*) as y0_ FROM Person this_ inner join Child child1_ on this_.Id=ch - + @@ -1373,6 +1424,12 @@ SELECT count(*) as y0_ FROM Person this_ inner join Child child1_ on this_.Id=ch + + + + + + @@ -1402,6 +1459,21 @@ SELECT count(*) as y0_ FROM Person this_ inner join Child child1_ on this_.Id=ch + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 28,Token in error = SELECT ]]]> + + + + @@ -1409,219 +1481,219 @@ SELECT count(*) as y0_ FROM Person this_ inner join Child child1_ on this_.Id=ch System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000004AB ] + System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000005E3 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_ ] -[SQL: select coursemeet0_.CourseCode as CourseCode104_, coursemeet0_."Day" as Day2_104_, coursemeet0_.Period as Period104_, coursemeet0_.Location as Location104_, coursemeet0_.courseCode as courseCode104_ from CourseMeeting coursemeet0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode104_ ]]]> +[ select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_ ] +[SQL: select coursemeet0_.CourseCode as CourseCode119_, coursemeet0_."Day" as Day2_119_, coursemeet0_.Period as Period119_, coursemeet0_.Location as Location119_, coursemeet0_.courseCode as courseCode119_ from CourseMeeting coursemeet0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode119_ ]]]> @@ -1670,6 +1742,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + @@ -1702,6 +1777,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + @@ -1780,11 +1860,6 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - - - - @@ -1822,6 +1897,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + @@ -1844,7 +1920,6 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - @@ -1855,6 +1930,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + @@ -1873,10 +1953,12 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + - + + @@ -1885,6 +1967,16 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + + + + + + @@ -1918,11 +2010,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - - - - + + + + + @@ -1963,6 +2055,45 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2052,8 +2183,34 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2152,9 +2309,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - - + + + @@ -3393,7 +3550,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + @@ -3403,22 +3560,22 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + But was: -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + But was: -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -3434,10 +3591,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -3512,17 +3669,17 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + @@ -3538,32 +3695,32 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - + - + - + - + @@ -3594,12 +3751,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + @@ -3645,7 +3802,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -3657,80 +3814,104 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -3749,7 +3930,7 @@ Parameter name: typecode]]> - + @@ -3904,10 +4085,10 @@ Parameter name: typecode]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -3919,10 +4100,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -3934,10 +4115,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -3949,10 +4130,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -4030,10 +4211,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -4065,550 +4246,437 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + - - - - - - + + - + - + - + - - - - - - + + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = select ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + + + + - - - - - - + - + - + + + - + - + - + - + - + - + - - - - - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - + + - - - - + - - - - - - + + - - - - - - - - - - - - - - - - + - + - + - + + - + - + + - + - + - + + - + - - - - + + + + + - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - + - - - - - - - - - - - - - - - - - - - - + + + + - - - - + - - - - - - - - - - - - - - - + + + - - - - + - - - - - - + + - + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + - + + - + - + - + - + - + System.Data.SqlServerCe.SqlCeException : The function is not recognized by SQL Server Compact. [ Name of function = bit_length,Data type (if known) = ]]]> - + - + - + - + - + - + - + + - + - + - + - - - - - - - - - - - - - - - - - - - + + + + - + + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 23,Token in error = from ]]]> - + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 25,Token in error = current_timestamp ]]]> - - - - + + + + - + - + - + - + - + - + - + - + - + - + - + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 8,Token in error = nullif ]]]> - - - - + + + + - + - + - + - + - + - + - + - + - + - + - + - + @@ -4628,17 +4696,9 @@ Parameter name: typecode]]> - - - - + - - - - - + @@ -4650,9 +4710,9 @@ Parameter name: typecode]]> - + - + @@ -4732,46 +4792,26 @@ Parameter name: typecode]]> - + - + - - - System.ArgumentException : No mapping exists from DbType AnsiString to a known SqlDbType.]]> - - + - + - - - System.ArgumentException : No mapping exists from DbType AnsiString to a known SqlDbType.]]> - - + - + - - - System.ArgumentException : No mapping exists from DbType AnsiString to a known SqlDbType.]]> - - + - + - - - System.ArgumentException : No mapping exists from DbType AnsiString to a known SqlDbType.]]> - - + @@ -4882,10 +4922,10 @@ Parameter name: typecode]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -5034,10 +5074,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -5095,10 +5135,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -5222,10 +5262,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -5354,10 +5394,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -5435,232 +5475,232 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract3_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = contract5_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -5683,9 +5723,17 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + + + + + + + + + @@ -5695,6 +5743,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + @@ -5808,16 +5863,16 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -5826,721 +5881,636 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - + - + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + - - - - - - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 309,Token in error = select ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + + - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> + + - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + + + + - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + 0 ] +Positional parameters: #0>b700922b788343f1bc3a267e674f5571 +[SQL: select foo0_."foo_id" as foo1_1000_, foo0_.Version as Version1000_, foo0_.foo as foo1000_, foo0_.long_ as long5_1000_, foo0_."@@##integer_ *" as column6_1000_, foo0_.float_ as float7_1000_, foo0_.X as X1000_, foo0_.date_ as date9_1000_, foo0_.timestamp_ as timestamp10_1000_, foo0_.boolean_ as boolean11_1000_, foo0_.bool_ as bool12_1000_, foo0_.null_ as null13_1000_, foo0_.short_ as short14_1000_, foo0_.char_ as char15_1000_, foo0_.zero_ as zero16_1000_, foo0_.int_ as int17_1000_, foo0_.string_ as string18_1000_, foo0_.byte_ as byte19_1000_, foo0_.YesNo as YesNo1000_, foo0_."status_@###" as status21_1000_, foo0_."localeayzabc123!@#$" as localea22_1000_, foo0_.first_name as first23_1000_, foo0_.surname as surname1000_, foo0_.Dependent as Dependent1000_, foo0_.count_ as count26_1000_, foo0_.name_ as name27_1000_, foo0_.g__ as g28_1000_, foo0_.cmpnt_null_ as cmpnt29_1000_, foo0_.subcount as subcount1000_, foo0_.subname as subname1000_, foo0_.fee_sub as fee32_1000_, foo0_.null_cmpnt_ as null33_1000_, foo0_.the_time as the34_1000_, foo0_.Baz as Baz1000_, foo0_.bar_String as bar36_1000_, foo0_.name_name as name37_1000_, foo0_.bar_count as bar38_1000_, foo0_.Name as Name1000_, foo0_.clazz as clazz1000_, foo0_."gen_id" as gen41_1000_, 2 * foo0_.int_ as formula46_, foo0_."$foo_subclass^" as column2_1000_ from FooArray fooarray1_ inner join "foos" foo0_ on fooarray1_.foo=foo0_."foo_id" where (fooarray1_.i<8) and fooarray1_.id_ = @p0 and (select count(bytes2_.id) from foobytes bytes2_ where foo0_."foo_id"=bytes2_.id)>0] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 1453,Token in error = select ] +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + - - - - - - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + + + + + + + + + + + - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> - - - - + - - - - - + - - - - - - - - - - - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + + + + - - - - - - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 309,Token in error = select ]]]> + + - - - - - - - - - - - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 31,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 31,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 31,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 404,Token in error = select ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -6549,205 +6519,190 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 24,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 31,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 25,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column cannot be modified. [ Column name = id1_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column cannot be modified. [ Column name = id1_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column cannot be modified. [ Column name = id1_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column cannot be modified. [ Column name = id1_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + System.Data.SqlServerCe.SqlCeException : The column cannot be modified. [ Column name = id1_ ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - + + + - - - - - - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -6771,8 +6726,8 @@ Parameter name: typecode]]> (select min(simple1_.count_) from Simple simple1_) ] -[SQL: select simple0_.id_ as id1_1184_, simple0_.Name as Name1184_, simple0_.address as address1184_, simple0_.count_ as count4_1184_, simple0_.date_ as date5_1184_, simple0_.Pay as Pay1184_, simple0_.Other as Other1184_ from Simple simple0_ where simple0_.count_>(select min(simple1_.count_) from Simple simple1_)] +[ select simple0_.id_ as id1_1211_, simple0_.Name as Name1211_, simple0_.address as address1211_, simple0_.count_ as count4_1211_, simple0_.date_ as date5_1211_, simple0_.Pay as Pay1211_, simple0_.Other as Other1211_ from Simple simple0_ where simple0_.count_>(select min(simple1_.count_) from Simple simple1_) ] +[SQL: select simple0_.id_ as id1_1211_, simple0_.Name as Name1211_, simple0_.address as address1211_, simple0_.count_ as count4_1211_, simple0_.date_ as date5_1211_, simple0_.Pay as Pay1211_, simple0_.Other as Other1211_ from Simple simple0_ where simple0_.count_>(select min(simple1_.count_) from Simple simple1_)] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 260,Token in error = select ]]]> @@ -6780,16 +6735,16 @@ Parameter name: typecode]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -6829,9 +6784,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co System.IndexOutOfRangeException : AnotherN4_1188_0_ +[ select identifier_column as identifier1_1215_0_, clazz_discriminata as clazz2_1215_0_, name as name1215_0_, count_ as count5_1215_0_ from a s ] +[SQL: select identifier_column as identifier1_1215_0_, clazz_discriminata as clazz2_1215_0_, name as name1215_0_, count_ as count5_1215_0_ from a s] + ----> System.IndexOutOfRangeException : AnotherN4_1215_0_ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a collection: [NHibernate.DomainModel.B.Map#6][SQL: SELECT map0_.BID as BID0_, map0_.MAPVAL as MAPVAL0_, map0_.MAPKEY as MAPKEY0_ FROM Map map0_ WHERE ((select a.clazz_discriminata from A a where a.identifier_column = map0_.bid) < 0) and map0_.BID=?] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 103,Token in error = select ]]]> @@ -6839,7 +6794,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = assign able,Constraint name = PK__assign able__0000000000003BF9 ] + ----> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = assign able,Constraint name = PK__assign able__000000000001D337 ] TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a collection: [NHibernate.DomainModel.B.Map#6][SQL: SELECT map0_.BID as BID0_, map0_.MAPVAL as MAPVAL0_, map0_.MAPKEY as MAPKEY0_ FROM Map map0_ WHERE ((select a.clazz_discriminata from A a where a.identifier_column = map0_.bid) < 0) and map0_.BID=?] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 103,Token in error = select ]]]> @@ -6847,7 +6802,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = assign able,Constraint name = PK__assign able__0000000000003BF9 ] + ----> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = assign able,Constraint name = PK__assign able__000000000001D337 ] TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a collection: [NHibernate.DomainModel.B.Map#6][SQL: SELECT map0_.BID as BID0_, map0_.MAPVAL as MAPVAL0_, map0_.MAPKEY as MAPKEY0_ FROM Map map0_ WHERE ((select a.clazz_discriminata from A a where a.identifier_column = map0_.bid) < 0) and map0_.BID=?] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 103,Token in error = select ]]]> @@ -6883,7 +6838,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = assign able,Constraint name = PK__assign able__0000000000003BF9 ] + ----> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = assign able,Constraint name = PK__assign able__000000000001D337 ] TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a collection: [NHibernate.DomainModel.B.Map#6][SQL: SELECT map0_.BID as BID0_, map0_.MAPVAL as MAPVAL0_, map0_.MAPKEY as MAPKEY0_ FROM Map map0_ WHERE ((select a.clazz_discriminata from A a where a.identifier_column = map0_.bid) < 0) and map0_.BID=?] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 103,Token in error = select ]]]> @@ -6904,3291 +6859,1732 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 561,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 19,Token in error = distinct ]]]> + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 19,Token in error = distinct ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : Expressions in the ORDER BY list cannot contain aggregate functions.]]> + + + + + + System.Data.SqlServerCe.SqlCeException : Expressions in the ORDER BY list cannot contain aggregate functions.]]> + + + + + + System.Data.SqlServerCe.SqlCeException : Expressions in the ORDER BY list cannot contain aggregate functions.]]> + + + + + System.Data.SqlServerCe.SqlCeException : Expressions in the ORDER BY list cannot contain aggregate functions.]]> + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 453,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 453,Token in error = select ]]]> + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 38,Token in error = select ]]]> + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 577,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 577,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 214,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 45,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 45,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 45,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : The function is not recognized by SQL Server Compact. [ Name of function = mod,Data type (if known) = ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 9,Token in error = select ]]]> + + + + + =@p0 ] + Name:p1 - Value:2 +[SQL: select timesheet0_.TimesheetId as Timeshee1_2185_, timesheet0_.SubmittedDate as Submitte2_2185_, timesheet0_.Submitted as Submitted2185_ from Timesheets timesheet0_ where (select cast(count(*) as INT) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)>=@p0] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.ArgumentException : SqlCeCommand.CommandTimeout does not support non-zero values.]]> + + + + + System.ArgumentException : SqlCeCommand.CommandTimeout does not support non-zero values.]]> + + + + + System.ArgumentException : SqlCeCommand.CommandTimeout does not support non-zero values.]]> + + + + + System.ArgumentException : SqlCeCommand.CommandTimeout does not support non-zero values.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 46,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 503,Token in error = select ]]]> + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 503,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 43,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 43,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 43,Token in error = select ]]]> + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 178,Token in error = select ]]]> + + + + + + + + @p0 ] + Name:p1 - Value:12 +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where (select cast(avg(cast(entries1_.NumberOfHours as FLOAT)) as FLOAT) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)>@p0] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 177,Token in error = select ]]]> + + + + + =@p0 ] + Name:p1 - Value:1 +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where (select cast(count(*) as INT) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)>=@p0] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + timesheet0_.TimesheetId ] +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where (select cast(count(*) as INT) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)>timesheet0_.TimesheetId] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 197,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 178,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + timesheet0_.TimesheetId ] +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where (select max(entries1_.NumberOfHours) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)>timesheet0_.TimesheetId] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 197,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 177,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + timesheet0_.TimesheetId ] +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where (select min(entries1_.NumberOfHours) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)>timesheet0_.TimesheetId] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 197,Token in error = select ]]]> + + + + + (select min(entries1_.NumberOfHours) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID) ] + Name:p1 - Value:7 +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where @p0>(select min(entries1_.NumberOfHours) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 177,Token in error = select ]]]> + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 173,Token in error = select ]]]> + + + + + + + + + + + + + + + =(select cast(sum(entries1_.NumberOfHours) as INT) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID) ] + Name:p1 - Value:20 +[SQL: select timesheet0_.TimesheetId as Timeshee1_2374_, timesheet0_.SubmittedDate as Submitte2_2374_, timesheet0_.Submitted as Submitted2374_ from Timesheets timesheet0_ where @p0>=(select cast(sum(entries1_.NumberOfHours) as INT) from TimesheetEntries entries1_ where timesheet0_.TimesheetId=entries1_.TimesheetID)] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 178,Token in error = select ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10204,7 +8600,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - + @@ -10307,6 +8703,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + @@ -10387,6 +8788,15 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + + + + + @@ -10402,8 +8812,6 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - - @@ -10417,6 +8825,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + @@ -10428,6 +8837,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + @@ -10451,6 +8865,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + @@ -10558,6 +8973,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + @@ -10594,6 +9014,15 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + + + + + @@ -10605,20 +9034,48 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + @@ -10628,6 +9085,32 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10877,6 +9360,8 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + @@ -10886,8 +9371,8 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - - + + @@ -10949,6 +9434,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + @@ -11299,6 +9785,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co + + + @@ -11385,7 +9874,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - + @@ -11506,126 +9995,48 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not initialize a co - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - + - - - - - - - - - - - - - - - + + + @@ -11653,53 +10064,47 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Employees ]]]> - + - - - - - - - - - - - - - - - + + + + + + + + + - + - + + + + - + + + + + - - - - + - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> @@ -11775,22 +10180,14 @@ Parameter name: typecode]]> - + - - - - - + - + - - - - - + @@ -11803,11 +10200,11 @@ Parameter name: typecode]]> - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 30,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -11821,11 +10218,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -11848,7 +10245,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -11925,205 +10322,159 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ EMPLOYEES ]]]> - + + + + + + + + + + + + + - + + + + - + - + - + - + - + + + + + + + + + + + - - - - - - - - - + - - - - - - - - - - - - - - - - + - + - + - + - + + - + - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - - - - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + + + - - - ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + + + + + + + - - + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + + + + + + + - - + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + + + + - + - + + + - + + + + + + @@ -12161,8 +10512,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 84,Token in error = select ]]]> @@ -12188,15 +10539,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ EMPLOYEES ]]]> - + - + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ]]]> @@ -12205,15 +10553,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ EMPLOYEES ]]]> - + - + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 32,Token in error = ) ]]]> @@ -12264,18 +10609,14 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ EMPLOYEES ]]]> - + - - - - + + + + @@ -12292,19 +10633,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Employees ]]]> - + - - - - - + @@ -12326,29 +10659,21 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - - - - - + @@ -12434,6 +10759,22 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + @@ -12659,17 +11000,14 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + @@ -12683,7 +11021,7 @@ select car0_.CarID as CarID1404_, car0_.Make as Make1404_, car0_.Model as Model1 - + @@ -12692,7 +11030,7 @@ select car0_.CarID as CarID1404_, car0_.Make as Make1404_, car0_.Model as Model1 - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 116,Token in error = First ]]]> @@ -12759,18 +11097,18 @@ select car0_.CarID as CarID1404_, car0_.Make as Make1404_, car0_.Model as Model1 System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 153,Token in error = SELECT ]]]> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 146,Token in error = SELECT ]]]> @@ -12883,13 +11221,13 @@ select car0_.CarID as CarID1404_, car0_.Make as Make1404_, car0_.Model as Model1 - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 8,Token in error = current_timestamp ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -12965,12 +11303,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 128,Token in error = SELECT ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select services0_.id as id1458_, services0_.accountNumber as accountN2_1458_, services0_.Name as Name1458_, services0_.Type as Type1458_, (SELECT COUNT(*) FROM services c WHERE c.accountNumber LIKE '63%' ) as formula53_ from services services0_ ] -[SQL: select services0_.id as id1458_, services0_.accountNumber as accountN2_1458_, services0_.Name as Name1458_, services0_.Type as Type1458_, (SELECT COUNT(*) FROM services c WHERE c.accountNumber LIKE '63%' ) as formula53_ from services services0_] +[ select services0_.id as id2707_, services0_.accountNumber as accountN2_2707_, services0_.Name as Name2707_, services0_.Type as Type2707_, (SELECT COUNT(*) FROM services c WHERE c.accountNumber LIKE '63%' ) as formula53_ from services services0_ ] +[SQL: select services0_.id as id2707_, services0_.accountNumber as accountN2_2707_, services0_.Name as Name2707_, services0_.Type as Type2707_, (SELECT COUNT(*) FROM services c WHERE c.accountNumber LIKE '63%' ) as formula53_ from services services0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 140,Token in error = SELECT ]]]> @@ -13084,32 +11422,16 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - - - - - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - - - - - + @@ -13136,16 +11458,16 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 143,Token in error = SELECT ]]]> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 143,Token in error = SELECT ]]]> @@ -13167,7 +11489,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + @@ -13223,7 +11545,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + @@ -13235,7 +11557,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + @@ -13389,35 +11711,38 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Orders ]]]> - + - - - - - - - - - - + + - + - + + + + - - - + + + + + + + + + + + + + + + @@ -13727,15 +12052,17 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 30,Token in error = ) ]]]> - + + + + @@ -13868,11 +12195,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 92,Token in error = SELECT ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select forumthrea0_.ForumThreadId as ForumThr1_1572_, forumthrea0_.Name as Name1572_, (SELECT MAX(m.ForumMessageId) FROM ForumMessage m WHERE m.ForumThreadId = forumthrea0_.ForumThreadId) as formula55_ from ForumThread forumthrea0_ ] -[SQL: select forumthrea0_.ForumThreadId as ForumThr1_1572_, forumthrea0_.Name as Name1572_, (SELECT MAX(m.ForumMessageId) FROM ForumMessage m WHERE m.ForumThreadId = forumthrea0_.ForumThreadId) as formula55_ from ForumThread forumthrea0_] +[ select forumthrea0_.ForumThreadId as ForumThr1_2821_, forumthrea0_.Name as Name2821_, (SELECT MAX(m.ForumMessageId) FROM ForumMessage m WHERE m.ForumThreadId = forumthrea0_.ForumThreadId) as formula55_ from ForumThread forumthrea0_ ] +[SQL: select forumthrea0_.ForumThreadId as ForumThr1_2821_, forumthrea0_.Name as Name2821_, (SELECT MAX(m.ForumMessageId) FROM ForumMessage m WHERE m.ForumThreadId = forumthrea0_.ForumThreadId) as formula55_ from ForumThread forumthrea0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 88,Token in error = SELECT ]]]> @@ -13889,33 +12216,20 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + - - - - - + - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ EMPLOYEES ]]]> - + - - - - - + @@ -13956,13 +12270,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.Data.SqlServerCe.SqlCeException : ORDER BY items must appear in the select list if SELECT DISTINCT is specified. -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -14145,20 +12459,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - - - - - - - - + + @@ -14301,8 +12607,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 33,Token in error = current_timestamp ]]]> @@ -14332,15 +12638,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> @@ -14351,7 +12654,7 @@ Parameter name: typecode]]> - + @@ -14391,18 +12694,18 @@ Parameter name: typecode]]> @p1 OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY ] +[ SELECT this_.Id as Id2887_0_, this_.Name as Name2887_0_ FROM Product this_ WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM Product this_0_ ORDER BY this_0_.Name desc OFFSET 0 ROWS FETCH NEXT @p0 ROWS ONLY) and this_.Id > @p1 OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY ] Name:take_0 - Value:5 Name:cp1 - Value:0 -[SQL: SELECT this_.Id as Id1638_0_, this_.Name as Name1638_0_ FROM Product this_ WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM Product this_0_ ORDER BY this_0_.Name desc OFFSET 0 ROWS FETCH NEXT @p0 ROWS ONLY) and this_.Id > @p1 OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY] +[SQL: SELECT this_.Id as Id2887_0_, this_.Name as Name2887_0_ FROM Product this_ WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM Product this_0_ ORDER BY this_0_.Name desc OFFSET 0 ROWS FETCH NEXT @p0 ROWS ONLY) and this_.Id > @p1 OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY] ----> System.Data.SqlServerCe.SqlCeException : OFFSET clause is invalid unless ORDER BY clause is specified.]]> @p0 OFFSET 0 ROWS FETCH NEXT @p1 ROWS ONLY ] +[ SELECT this_.Id as Id2887_0_, this_.Name as Name2887_0_ FROM Product this_ WHERE this_.Id in (Select top 5 p.Id from Product p order by Name) and this_.Id > @p0 OFFSET 0 ROWS FETCH NEXT @p1 ROWS ONLY ] Name:cp0 - Value:0 -[SQL: SELECT this_.Id as Id1638_0_, this_.Name as Name1638_0_ FROM Product this_ WHERE this_.Id in (Select top 5 p.Id from Product p order by Name) and this_.Id > @p0 OFFSET 0 ROWS FETCH NEXT @p1 ROWS ONLY] +[SQL: SELECT this_.Id as Id2887_0_, this_.Name as Name2887_0_ FROM Product this_ WHERE this_.Id in (Select top 5 p.Id from Product p order by Name) and this_.Id > @p0 OFFSET 0 ROWS FETCH NEXT @p1 ROWS ONLY] ----> System.Data.SqlServerCe.SqlCeException : OFFSET clause is invalid unless ORDER BY clause is specified.]]> @@ -14465,16 +12768,6 @@ Parameter name: typecode]]> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - - - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> @@ -14492,6 +12785,22 @@ Parameter name: typecode]]> + + + + + + + + + + + + + + + + @@ -14523,11 +12832,11 @@ Parameter name: typecode]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 30,Token in error = select ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select b0_.Id as Id1659_, (select max(A.Id) from A) as formula58_, (select max(A.Id) from A) as formula59_ from B b0_ ] -[SQL: select b0_.Id as Id1659_, (select max(A.Id) from A) as formula58_, (select max(A.Id) from A) as formula59_ from B b0_] +[ select b0_.Id as Id2907_, (select max(A.Id) from A) as formula59_, (select max(A.Id) from A) as formula60_ from B b0_ ] +[SQL: select b0_.Id as Id2907_, (select max(A.Id) from A) as formula59_, (select max(A.Id) from A) as formula60_ from B b0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 28,Token in error = select ]]]> @@ -14544,11 +12853,18 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + + + + - + + + + + @@ -14565,17 +12881,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + - - - System.Data.SqlServerCe.SqlCeException : The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK6482F242469DB27 ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - + @@ -14629,8 +12939,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 249,Token in error = full ]]]> @@ -14647,13 +12957,25 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + - - - + + + @@ -14672,23 +12994,25 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + + + + - + - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 31,Token in error = ) ]]]> - + + + + @@ -14704,17 +13028,26 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 74,Token in error = select ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select a0_.id as id1682_, a0_.FormulaConstraint as FormulaC2_1682_, (select count(*) from b where b."Name" = a0_.FormulaConstraint) as formula60_ from a a0_ ] -[SQL: select a0_.id as id1682_, a0_.FormulaConstraint as FormulaC2_1682_, (select count(*) from b where b."Name" = a0_.FormulaConstraint) as formula60_ from a a0_] +[ select a0_.id as id2935_, a0_.FormulaConstraint as FormulaC2_2935_, (select count(*) from b where b."Name" = a0_.FormulaConstraint) as formula61_ from a a0_ ] +[SQL: select a0_.id as id2935_, a0_.FormulaConstraint as FormulaC2_2935_, (select count(*) from b where b."Name" = a0_.FormulaConstraint) as formula61_ from a a0_] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 70,Token in error = select ]]]> @@ -14751,7 +13084,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + @@ -14772,8 +13105,8 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query 0 ] -[SQL: select det0_.Id as Id1692_, det0_.IdMas as IdMas1692_ from det det0_ left outer join mas mas1_ on det0_.IdMas=mas1_.Id where (select count(el4_.Id) from mas mas2_, MasEls els3_, Els el4_ where det0_.IdMas=mas2_.Id and mas2_.Id=els3_.IdMas and els3_.IdEls=el4_.Id and el4_.Descr='e1')>0] +[ select det0_.Id as Id2945_, det0_.IdMas as IdMas2945_ from det det0_ left outer join mas mas1_ on det0_.IdMas=mas1_.Id where (select count(el4_.Id) from mas mas2_, MasEls els3_, Els el4_ where det0_.IdMas=mas2_.Id and mas2_.Id=els3_.IdMas and els3_.IdEls=el4_.Id and el4_.Descr='e1')>0 ] +[SQL: select det0_.Id as Id2945_, det0_.IdMas as IdMas2945_ from det det0_ left outer join mas mas1_ on det0_.IdMas=mas1_.Id where (select count(el4_.Id) from mas mas2_, MasEls els3_, Els el4_ where det0_.IdMas=mas2_.Id and mas2_.Id=els3_.IdMas and els3_.IdEls=el4_.Id and el4_.Descr='e1')>0] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 127,Token in error = select ]]]> @@ -14785,8 +13118,8 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - + + @@ -14801,19 +13134,11 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Orders ]]]> - + - - - - - + @@ -14843,22 +13168,19 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Customers ]]]> - + - - - - - - + @p1 and (select count(orders2_.Customer_Id) from Orders orders2_ where customer0_.Id=orders2_.Customer_Id and @p0 = orders2_.IsDeleted)>0 ] + Name:cid - Value:0 +[SQL: select customer0_.Id as Id2957_0_, orders1_.Id as Id2958_1_, customer0_.IsDeleted as IsDeleted2957_0_, orders1_.IsDeleted as IsDeleted2958_1_, orders1_.Memo as Memo2958_1_, orders1_.Customer_Id as Customer4_2958_1_ from Customers customer0_ inner join Orders orders1_ on customer0_.Id=orders1_.Customer_Id and @p0 = orders1_.IsDeleted where customer0_.Id>@p1 and (select count(orders2_.Customer_Id) from Orders orders2_ where customer0_.Id=orders2_.Customer_Id and @p0 = orders2_.IsDeleted)>0] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 365,Token in error = select ] +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + @@ -14879,18 +13201,18 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 228,Token in error = select ]]]> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 228,Token in error = select ]]]> @@ -14914,9 +13236,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - - + + + @@ -14957,7 +13279,8 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + + @@ -15044,10 +13367,10 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query System.Data.SqlServerCe.SqlCeException : In aggregate and grouping expressions, the SELECT clause can contain only aggregates and grouping expressions. [ Select clause = article0_,Longitude ]]]> +[SQL: select article0_.Longitude/@p0 as col_0_0_ from Article article0_ group by article0_.Longitude/@p0 order by 1] + ----> System.Data.SqlServerCe.SqlCeException : ORDER BY not supported.]]> @@ -15058,7 +13381,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + @@ -15068,29 +13391,38 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - + - + + + + - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + + + + + + + + + + + + + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - @@ -15138,19 +13470,11 @@ Parameter name: @p1]]> - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Orders ]]]> - + - - - - - + @@ -15196,6 +13520,19 @@ Parameter name: @p1]]> + + + + + + + + + + + + + @@ -15245,6 +13582,16 @@ Parameter name: @p1]]> + + + + + + + + + + @@ -15267,8 +13614,7 @@ Parameter name: @p1]]> - + @@ -15284,19 +13630,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Orders ]]]> - + - - - - - + @@ -15403,10 +13741,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -15540,17 +13878,17 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + @@ -15729,38 +14067,15 @@ SELECT this_.Id as Id1795_0_, this_.class as class1795_0_ FROM Parent this_; - + - + - - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - - + + - - - - - + @@ -15794,10 +14109,10 @@ SELECT this_.Id as Id1816_0_, this_.Name as Name1816_0_, this_.Ord as Ord1816_0_ - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -15808,16 +14123,16 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -16102,25 +14417,25 @@ alter table nhibernate.dbo_Aclass drop constraint Aclasses_Id_FK - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> @@ -16138,7 +14453,7 @@ alter table nhibernate.dbo_Aclass drop constraint Aclasses_Id_FK Not expected exception message: could not execute query [ SELECT this_.Name as y0_, (SELECT sum(this_0_.Dollars) as y0_ FROM Forum this_0_ WHERE not (this_0_.Id = this_.Id) and this_0_.Id in (SELECT f2_.Id as y0_ FROM MemberGroup this_0_0_ inner join Group2Members members4_ on this_0_0_.Id=members4_.GroupId inner join Person m1_ on members4_.PersonId=m1_.Id inner join Group2Forums forums6_ on this_0_0_.Id=forums6_.GroupId inner join Forum f2_ on forums6_.ForumId=f2_.Id WHERE m1_.Id = this_.Id)) as y1_ FROM Person this_ WHERE this_.Id in (@p0, @p1) ] - Name:cp0 - Value:32d6a3b3-c62c-44b8-b771-2cb579f54c84 Name:cp1 - Value:0f9657ef-1d66-45d3-8962-8ea3351bc43c + Name:cp0 - Value:11fc7a45-251d-4bed-9bf2-4d4f7801aded Name:cp1 - Value:0c8db538-cf4b-4cc6-9195-f479bb8cbf3f [SQL: SELECT this_.Name as y0_, (SELECT sum(this_0_.Dollars) as y0_ FROM Forum this_0_ WHERE not (this_0_.Id = this_.Id) and this_0_.Id in (SELECT f2_.Id as y0_ FROM MemberGroup this_0_0_ inner join Group2Members members4_ on this_0_0_.Id=members4_.GroupId inner join Person m1_ on members4_.PersonId=m1_.Id inner join Group2Forums forums6_ on this_0_0_.Id=forums6_.GroupId inner join Forum f2_ on forums6_.ForumId=f2_.Id WHERE m1_.Id = this_.Id)) as y1_ FROM Person this_ WHERE this_.Id in (@p0, @p1)]]]> @@ -16146,16 +14461,11 @@ could not execute query - + - + - - - - - + @@ -16180,15 +14490,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - + - + @@ -16240,6 +14546,21 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + @@ -16291,7 +14612,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -16340,15 +14661,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ customers ]]]> - + - + - + @@ -16361,6 +14678,22 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + @@ -16389,42 +14722,23 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - - + + + + + + + + + + + + + @@ -16521,7 +14835,7 @@ select count(domainclas0_.Id) as col_0_0_ from DomainClass domainclas0_ where do - + @@ -16537,16 +14851,11 @@ select count(domainclas0_.Id) as col_0_0_ from DomainClass domainclas0_ where do - + - + - - - - - + @@ -16576,20 +14885,16 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - + - + - + - + @@ -16718,7 +15023,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -16847,46 +15152,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - System.Data.SqlServerCe.SqlCeException : The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK8D29D043FED1656E ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = MyBO,Constraint name = PK__MyBO__0000000000005F69 ] -TearDown : NHibernate.Exceptions.GenericADOException : could not execute update query[SQL: delete from MyBO] - ----> System.Data.SqlServerCe.SqlCeException : The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK8D29D043FED1656E ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = MyBO,Constraint name = PK__MyBO__0000000000005F69 ] -TearDown : NHibernate.Exceptions.GenericADOException : could not execute update query[SQL: delete from MyBO] - ----> System.Data.SqlServerCe.SqlCeException : The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK8D29D043FED1656E ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = MyBO,Constraint name = PK__MyBO__0000000000005F69 ] -TearDown : NHibernate.Exceptions.GenericADOException : could not execute update query[SQL: delete from MyBO] - ----> System.Data.SqlServerCe.SqlCeException : The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK8D29D043FED1656E ]]]> - - - - - System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = MyBO,Constraint name = PK__MyBO__0000000000005F69 ] -TearDown : NHibernate.Exceptions.GenericADOException : could not execute update query[SQL: delete from MyBO] - ----> System.Data.SqlServerCe.SqlCeException : The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK8D29D043FED1656E ]]]> - - + + + + + @@ -16959,46 +15231,22 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Orders ]]]> - + - - - - - + - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Products ]]]> - + - - - - - - - - - - - - - - - + + + @@ -17007,6 +15255,9 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update + + + @@ -17017,24 +15268,23 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - - - - - - - - - - + + + + + + + + + + + + + @@ -17075,17 +15325,17 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update - + - + - + @@ -17114,13 +15364,13 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 37,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 37,Token in error = ) ]]]> @@ -17164,7 +15414,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update - + @@ -17189,6 +15439,15 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update + + + + + + + + + @@ -17214,25 +15473,35 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 135,Token in error = select ]]]> - - - - + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 135,Token in error = select ]]]> + - - - - + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 37,Token in error = select ]]]> + - - - - + + + @p0 ] + Name:p1 - Value:1 +[SQL: select usergroup0_.Id as Id3297_, usergroup0_.Name as Name3297_, usergroup0_.Other as Other3297_ from UserGroup usergroup0_ where (select cast(count(*) as INT) from UserGroupUsers users1_, "User" user2_ where usergroup0_.Id=users1_.UserGroupId and users1_.UserId=user2_.Id)>@p0] + ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 132,Token in error = select ]]]> + @@ -17247,6 +15516,15 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update + + + + + + + + + @@ -17256,6 +15534,15 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update + + + + + + + + + @@ -17271,10 +15558,10 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute update - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -17282,6 +15569,38 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -17305,16 +15624,26 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + + + + + + + + + + - + - + + @@ -17354,6 +15683,15 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + @@ -17422,6 +15760,22 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + @@ -17488,7 +15842,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -17524,25 +15878,32 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + + + + + + + + + + + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + @@ -17569,23 +15930,72 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Employees ]]]> - + + + + - - - - + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -17616,6 +16026,15 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe + + + + + + + + + @@ -17630,14 +16049,14 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe - - + + - - + + @@ -17651,6 +16070,7 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe + @@ -17675,23 +16095,47 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Animal ]]]> - + - + + + + + + + + + + - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 31,Token in error = ) ]]]> + + + + + + + + + + + + + + + + + + @@ -17701,6 +16145,27 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe + + + + + + + + + + + + + + + + + + + + + @@ -17745,6 +16210,17 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe + + + + + + + + + + + @@ -17754,7 +16230,37 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe - + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> + + @@ -17765,12 +16271,12 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe - + - + @@ -17781,70 +16287,194 @@ select anotherder0_.Id as Id2075_, anotherder0_.Name as Name2075_ from AnotherDe - + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - - - - - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + - - + + + + + - + - + + + + - + + + + + + + + + + - + - + - - - - - + + + + @@ -17876,6 +16506,15 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + @@ -17922,6 +16561,51 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -17942,9 +16626,9 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - + + + @@ -17979,24 +16663,49 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18012,38 +16721,118 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + @@ -18091,7 +16880,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -18102,19 +16891,19 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 28,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 28,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 28,Token in error = ) ]]]> @@ -18146,13 +16935,13 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 29,Token in error = ) ]]]> @@ -18220,7 +17009,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + @@ -18238,11 +17027,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18253,10 +17042,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18276,29 +17065,21 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Users ]]]> - + - - - - - + @@ -18392,24 +17173,23 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + + + + + - + - - - - - - + - + - + - + @@ -18483,10 +17263,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18549,10 +17329,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18594,11 +17374,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 38,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -18609,11 +17389,11 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 26,Token in error = ) ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> @@ -18660,10 +17440,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18674,10 +17454,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18688,10 +17468,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18767,8 +17547,8 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - + + @@ -18816,10 +17596,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> @@ -18903,19 +17683,59 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - + + + + + + + + + + - But was: + But was: (While preparing SELECT this_.Id as Id3642_0_ FROM ClassA this_ an error occurred) + at NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\AdoNet\AbstractBatcher.cs:line 116 + at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\AdoNet\AbstractBatcher.cs:line 215 + at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1288 + at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 436 + at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 252 + at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1664 + at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1644 + at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1536 + at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1531 + at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Criteria\CriteriaLoader.cs:line 89 + at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Impl\SessionImpl.cs:line 1907 + at NHibernate.Impl.CriteriaImpl.List(IList results) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Impl\CriteriaImpl.cs:line 265 + at NHibernate.Impl.CriteriaImpl.List() in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Impl\CriteriaImpl.cs:line 256 + at NHibernate.Test.NHSpecificTest.SqlConverterAndMultiQuery.Fixture.<>c__DisplayClassb.b__9() in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate.Test\NHSpecificTest\SqlConverterAndMultiQuery\Fixture.cs:line 53 + at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args) ]]> - But was: + But was: (While preparing select classa0_.Id as col_0_0_ from ClassA classa0_ an error occurred) + at NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\AdoNet\AbstractBatcher.cs:line 116 + at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\AdoNet\AbstractBatcher.cs:line 215 + at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1288 + at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 436 + at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 252 + at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1664 + at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1644 + at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1536 + at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Loader.cs:line 1531 + at NHibernate.Loader.Hql.QueryLoader.List(ISessionImplementor session, QueryParameters queryParameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Loader\Hql\QueryLoader.cs:line 289 + at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.List(ISessionImplementor session, QueryParameters queryParameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 110 + at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 115 + at NHibernate.Impl.SessionImpl.List(IQueryExpression queryExpression, QueryParameters queryParameters, IList results) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Impl\SessionImpl.cs:line 634 + at NHibernate.Impl.AbstractSessionImpl.List(IQueryExpression queryExpression, QueryParameters parameters) in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Impl\AbstractSessionImpl.cs:line 124 + at NHibernate.Impl.AbstractQueryImpl2.List() in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate\Impl\AbstractQueryImpl2.cs:line 81 + at NHibernate.Test.NHSpecificTest.SqlConverterAndMultiQuery.Fixture.<>c__DisplayClass4.b__2() in d:\BuildAgent-03\work\f20cfe335cc08c35\src\NHibernate.Test\NHSpecificTest\SqlConverterAndMultiQuery\Fixture.cs:line 24 + at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args) ]]> @@ -18954,7 +17774,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - System.Data.SqlServerCe.SqlCeException : The referential relationship will result in a cyclical reference that is not allowed. [ Constraint name = FKA070447BE52A4BE ]]]> @@ -19082,18 +17902,18 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel @p0 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Id = this_.Id and this_0_.Area = this_.Area and this_0_.Type = @p1) asc OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY ] +[ SELECT this_.Id as Id3672_0_, this_.Area as Area3672_0_, this_.Parent as Parent3672_0_, this_.ParentArea as ParentArea3672_0_, this_.Type as Type3672_0_, this_.Name as Name3672_0_ FROM TreeNode this_ WHERE this_.Id > @p0 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Id = this_.Id and this_0_.Area = this_.Area and this_0_.Type = @p1) asc OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY ] Name:cp0 - Value:0 Name:cp1 - Value:Smart -[SQL: SELECT this_.Id as Id2341_0_, this_.Area as Area2341_0_, this_.Parent as Parent2341_0_, this_.ParentArea as ParentArea2341_0_, this_.Type as Type2341_0_, this_.Name as Name2341_0_ FROM TreeNode this_ WHERE this_.Id > @p0 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Id = this_.Id and this_0_.Area = this_.Area and this_0_.Type = @p1) asc OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY] +[SQL: SELECT this_.Id as Id3672_0_, this_.Area as Area3672_0_, this_.Parent as Parent3672_0_, this_.ParentArea as ParentArea3672_0_, this_.Type as Type3672_0_, this_.Name as Name3672_0_ FROM TreeNode this_ WHERE this_.Id > @p0 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Id = this_.Id and this_0_.Area = this_.Area and this_0_.Type = @p1) asc OFFSET 0 ROWS FETCH NEXT @p2 ROWS ONLY] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 232,Token in error = SELECT ]]]> @p1 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Type = @p2) asc OFFSET 0 ROWS FETCH NEXT @p3 ROWS ONLY ] +[ SELECT this_.Id as Id3672_0_, this_.Area as Area3672_0_, this_.Parent as Parent3672_0_, this_.ParentArea as ParentArea3672_0_, this_.Type as Type3672_0_, this_.Name as Name3672_0_ FROM TreeNode this_ WHERE this_.Name like @p0 and this_.Id > @p1 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Type = @p2) asc OFFSET 0 ROWS FETCH NEXT @p3 ROWS ONLY ] Name:cp0 - Value:ayende Name:cp1 - Value:0 Name:cp2 - Value:Smart -[SQL: SELECT this_.Id as Id2341_0_, this_.Area as Area2341_0_, this_.Parent as Parent2341_0_, this_.ParentArea as ParentArea2341_0_, this_.Type as Type2341_0_, this_.Name as Name2341_0_ FROM TreeNode this_ WHERE this_.Name like @p0 and this_.Id > @p1 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Type = @p2) asc OFFSET 0 ROWS FETCH NEXT @p3 ROWS ONLY] +[SQL: SELECT this_.Id as Id3672_0_, this_.Area as Area3672_0_, this_.Parent as Parent3672_0_, this_.ParentArea as ParentArea3672_0_, this_.Type as Type3672_0_, this_.Name as Name3672_0_ FROM TreeNode this_ WHERE this_.Name like @p0 and this_.Id > @p1 ORDER BY (SELECT this_0_.Type as y0_ FROM TreeNode this_0_ WHERE this_0_.Type = @p2) asc OFFSET 0 ROWS FETCH NEXT @p3 ROWS ONLY] ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 256,Token in error = SELECT ]]]> @@ -19245,17 +18065,17 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - + @@ -19282,296 +18102,264 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -SELECT count(*) as y0_ FROM Item this_ WHERE this_.Id > ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - - - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -SELECT count(*) as y0_ FROM Item this_ WHERE this_.Id > ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -SELECT count(*) as y0_ FROM Item this_ WHERE this_.Id > ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -SELECT count(*) as y0_ FROM Item this_ WHERE this_.Id > ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = SELECT ]]]> - + + + + - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - - - ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + + + + + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as count from ITEM where Id > ?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - - - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + - - - ? ORDER BY GETDATE() OFFSET ? ROWS; -select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; -] - ----> System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ]]]> - + + + + + + + + + @@ -19609,139 +18397,139 @@ select count(*) as col_0_0_ from Item item0_ where item0_.Id>?; - System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_0_ ] + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_0_ ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select enrolment0_.studentId as studentId2359_, enrolment0_.CourseCode as CourseCode2359_, enrolment0_.courseCode as courseCode2359_, enrolment0_.Semester as Semester2359_, enrolment0_."year" as year4_2359_ from Enrolment enrolment0_ ] -[SQL: select enrolment0_.studentId as studentId2359_, enrolment0_.CourseCode as CourseCode2359_, enrolment0_.courseCode as courseCode2359_, enrolment0_.Semester as Semester2359_, enrolment0_."year" as year4_2359_ from Enrolment enrolment0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000074CE ] + ----> System.Data.SqlServerCe.SqlCeException : A duplicate value cannot be inserted into a unique index. [ Table name = Student,Constraint name = PK__Student__00000000000213A2 ] TearDown : NHibernate.Exceptions.GenericADOException : could not execute query -[ select enrolment0_.studentId as studentId2359_, enrolment0_.CourseCode as CourseCode2359_, enrolment0_.courseCode as courseCode2359_, enrolment0_.Semester as Semester2359_, enrolment0_."year" as year4_2359_ from Enrolment enrolment0_ ] -[SQL: select enrolment0_.studentId as studentId2359_, enrolment0_.CourseCode as CourseCode2359_, enrolment0_.courseCode as courseCode2359_, enrolment0_.Semester as Semester2359_, enrolment0_."year" as year4_2359_ from Enrolment enrolment0_] - ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode2359_ ]]]> +[ select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_ ] +[SQL: select enrolment0_.studentId as studentId3690_, enrolment0_.CourseCode as CourseCode3690_, enrolment0_.courseCode as courseCode3690_, enrolment0_.Semester as Semester3690_, enrolment0_."year" as year4_3690_ from Enrolment enrolment0_] + ----> System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = CourseCode3690_ ]]]> @@ -19820,7 +18608,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - System.Data.SqlServerCe.SqlCeException : The specified data type is not valid. [ Data type (if known) = text ]]]> @@ -19948,7 +18736,7 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - System.Data.SqlServerCe.SqlCeException : The specified data type is not valid. [ Data type (if known) = text ]]]> @@ -20153,6 +18941,17 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query + + + + + + + + + + + @@ -20324,57 +19123,89 @@ TearDown : NHibernate.Exceptions.GenericADOException : could not execute query - - - - + - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = employer ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + + + - + + - - - + System.Data.SqlServerCe.SqlCeException : The column aliases must be unique. [ Name of duplicate alias = employer ] +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + @@ -20402,19 +19233,11 @@ Parameter name: typecode]]> - + - - - - + - - - - - + @@ -20457,22 +19280,14 @@ Parameter name: typecode]]> - - - - + - - - - - + - + @@ -20480,18 +19295,10 @@ Parameter name: typecode]]> - + - - - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = select ] -TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - + @@ -20560,14 +19367,14 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - + @@ -20580,18 +19387,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + - - - - - - - - - - + + @@ -20624,6 +19423,12 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel + + + + + + @@ -20729,7 +19534,7 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 1,Token line offset = 229,Token in error = check ]]]> @@ -20800,10 +19605,10 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> @@ -20830,26 +19635,24 @@ TearDown : NUnit.Framework.AssertionException : Test didn't clean up after itsel - - - - + - + - + - + System.ArgumentException : No mapping exists from DbType Date to a known SqlDbType.]]> - - - - + + + + @@ -21033,7 +19836,7 @@ Parameter name: typecode]]> - + @@ -21044,13 +19847,9 @@ Parameter name: typecode]]> - + - - - - - + @@ -21165,40 +19964,82 @@ Parameter name: typecode]]> - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ employees ]]]> - + + + + + + - + - + System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_ ] +[SQL: select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_] + ----> System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_ ] +[SQL: select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_] + ----> System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_ ] +[SQL: select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_] + ----> System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_ ] +[SQL: select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_] + ----> System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_ ] +[SQL: select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_] + ----> System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ]]]> - + - + System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ] +TearDown : NHibernate.Exceptions.GenericADOException : could not execute query +[ select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_ ] +[SQL: select being0_.bid as bid3837_, being0_.ident as ident3837_, being0_.location as location3837_, being0_.sex as sex3839_, being0_.salary as salary3840_, being0_.species as species3841_, being0_.hive as hive3841_, being0_.clazz_ as clazz_ from ( select bid, ident, location, sex, salary, null as species, null as hive, 2 as clazz_ from employees union select bid, ident, location, sex, null as salary, null as species, null as hive, 1 as clazz_ from humans union select bid, ident, location, null as sex, null as salary, species, hive, 3 as clazz_ from aliens ) being0_] + ----> System.Data.SqlServerCe.SqlCeException : The conversion is not supported. [ Type to convert from (if known) = varbinary, Type to convert to (if known) = float ]]]> @@ -21215,7 +20056,8 @@ Parameter name: typecode]]> - + + @@ -21226,23 +20068,22 @@ Parameter name: typecode]]> - - - System.Data.SqlServerCe.SqlCeException : The specified table already exists. [ Users ]]]> - + - - - - - + + + + + + + + @@ -21256,7 +20097,7 @@ Parameter name: typecode]]> - + @@ -21319,6 +20160,18 @@ Parameter name: typecode]]> + + + + + + + + + + + + @@ -21361,6 +20214,7 @@ Parameter name: typecode]]> + @@ -21481,6 +20335,22 @@ Parameter name: typecode]]> + + + + + + + + + + + + + + + + @@ -21534,27 +20404,14 @@ Parameter name: typecode]]> - + - + - + - - - - - - - - - - + + diff --git a/lib/teamcity/sqlServerOdbc/NHibernate.Test.last-results.xml b/lib/teamcity/sqlServerOdbc/NHibernate.Test.last-results.xml index c30a7a6ccb0..29b6eb058eb 100644 --- a/lib/teamcity/sqlServerOdbc/NHibernate.Test.last-results.xml +++ b/lib/teamcity/sqlServerOdbc/NHibernate.Test.last-results.xml @@ -1,15854 +1,16099 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - But was: - -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - But was: - -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - 0 ] - Name:aParam - Value:10 -[SQL: select cast(?+animal0_.BodyWeight as INT) as col_0_0_ from Animal animal0_ group by cast(?+animal0_.BodyWeight as INT) having cast(?+animal0_.BodyWeight as INT)>0] - ----> System.Data.Odbc.OdbcException : ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Column 'Animal.BodyWeight' is invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause.]]> - - - - - - - - - - System.FormatException : Input string '2014-07-25 10:20:34.6562500 -05:00' was not in the correct format. - ----> System.InvalidCastException : Specified cast is not valid.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - 66 -[SQL: select parent0_.Id as Id2068_, parent0_.X as X2068_, parent0_.count_ as count3_2068_, parent0_.any_id as any4_2068_, parent0_.any_class as any5_2068_ from Parent parent0_ where parent0_.count_=?] - ----> System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'. -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'. -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'. -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> - - - - - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.ArgumentException : Keyword not supported: 'driver'.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : NHibernate.Exceptions.GenericADOException : could not load an entity: [NHibernate.Test.NHSpecificTest.NH1388.Subject#1][SQL: SELECT subject0_.SUBJECT_ID as SUBJECT1_4864_0_, subject0_.TITLE as TITLE4864_0_ FROM SUBJECT subject0_ WHERE subject0_.SUBJECT_ID=?] - ----> System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.Person' directly or indirectly in database 'nhibernateOdbc' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Column 'Article.Longitude' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - - -]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - transaction.Commit()) Should Throw NHibernate.Exceptions.ConstraintViolationException. -Threw: NHibernate.Exceptions.GenericADOException]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NHibernate.HibernateException : The length of the string value exceeds the length configured in the mapping/parameter.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NHibernate.HibernateException : The length of the byte[] value exceeds the length configured in the mapping/parameter.]]> - - - - - NHibernate.HibernateException : The length of the byte[] value exceeds the length configured in the mapping/parameter.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.ArgumentException : Keyword not supported: 'driver'.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : NHibernate.Exceptions.GenericADOException : could not load an entity: [NHibernate.Test.NHSpecificTest.NH750.Drive#3][SQL: SELECT drive0_.[_id] as column1_6456_0_, drive0_.ClassFullName as ClassFul2_6456_0_ FROM Drive drive0_ WHERE drive0_.[_id]=?] - ----> System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.ArgumentException : Keyword not supported: 'driver'.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented -TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + But was: + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + But was: + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + 0 ] + Name:aParam - Value:10 +[SQL: select cast(?+animal0_.BodyWeight as INT) as col_0_0_ from Animal animal0_ group by cast(?+animal0_.BodyWeight as INT) having cast(?+animal0_.BodyWeight as INT)>0] + ----> System.Data.Odbc.OdbcException : ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Column 'Animal.BodyWeight' is invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause.]]> + + + + + + + + + + System.FormatException : Input string '2014-11-14 20:37:21.9687500 -06:00' was not in the correct format. + ----> System.InvalidCastException : Specified cast is not valid.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + 66 +[SQL: select parent0_.Id as Id2068_, parent0_.X as X2068_, parent0_.count_ as count3_2068_, parent0_.any_id as any4_2068_, parent0_.any_class as any5_2068_ from Parent parent0_ where parent0_.count_=?] + ----> System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'. +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> + + + + + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.ArgumentException : Keyword not supported: 'driver'.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : NHibernate.Exceptions.GenericADOException : could not load an entity: [NHibernate.Test.NHSpecificTest.NH1388.Subject#1][SQL: SELECT subject0_.SUBJECT_ID as SUBJECT1_4891_0_, subject0_.TITLE as TITLE4891_0_ FROM SUBJECT subject0_ WHERE subject0_.SUBJECT_ID=?] + ----> System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.Person' directly or indirectly in database 'nhibernateOdbc' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Column 'Article.Longitude' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + transaction.Commit()) Should Throw NHibernate.Exceptions.ConstraintViolationException. +Threw: NHibernate.Exceptions.GenericADOException]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NHibernate.HibernateException : The length of the string value exceeds the length configured in the mapping/parameter.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NHibernate.HibernateException : The length of the byte[] value exceeds the length configured in the mapping/parameter.]]> + + + + + NHibernate.HibernateException : The length of the byte[] value exceeds the length configured in the mapping/parameter.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.ArgumentException : Keyword not supported: 'driver'.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : NHibernate.Exceptions.GenericADOException : could not load an entity: [NHibernate.Test.NHSpecificTest.NH750.Drive#3][SQL: SELECT drive0_.[_id] as column1_6529_0_, drive0_.ClassFullName as ClassFul2_6529_0_ FROM Drive drive0_ WHERE drive0_.[_id]=?] + ----> System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.ArgumentException : Keyword not supported: 'driver'.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HY000] [Microsoft][SQL Native Client]Connection is busy with results for another command +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: False database cleaned: True connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented +TearDown : Test didn't clean up after itself. session closed: True database cleaned: False connection closed: True]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + System.Data.Odbc.OdbcException : ERROR [HYC00] [Microsoft][SQL Native Client]Optional feature not implemented]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.InvalidCastException : Invalid cast from 'System.DateTime' to 'System.TimeSpan'.]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 5e3f957d353cc5f43d555baab87d0c99f9922bc0 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 15 Nov 2014 18:41:40 +1300 Subject: [PATCH 27/30] Release notes and version number for 4.0.2.GA. --- build-common/common.xml | 2 +- releasenotes.txt | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/build-common/common.xml b/build-common/common.xml index 59a611c447b..4c25040f20c 100644 --- a/build-common/common.xml +++ b/build-common/common.xml @@ -60,7 +60,7 @@ effectively SP0). --> - + diff --git a/releasenotes.txt b/releasenotes.txt index a28ba423155..e1315982263 100644 --- a/releasenotes.txt +++ b/releasenotes.txt @@ -1,3 +1,22 @@ + +Build 4.0.2.GA +============================= + +** Bug + * [NH-2779] - Session.Get() can throw InvalidCastException when log-level is set to DEBUG + * [NH-2782] - Linq: selecting into a new array doesn't work + * [NH-2831] - NH cannot load mapping assembly from GAC + * [NH-3049] - Mapping by code to Field not working + * [NH-3222] - NHibernate Futures passes empty tuples to ResultSetTransformer + * [NH-3650] - ComponentAsId used more than once, cache first mapping and produces subsequently a sql select wrong + * [NH-3709] - Fix Reference to One Shot Delete and Inverse Collections + * [NH-3710] - Use of SetLockMode with DetachedCriteria causes null reference exception + +** Task + * [NH-3697] - Ignore Firebird in NHSpecificTest.NH1981 + * [NH-3698] - NHSpecificTest.NH1989 fails for some drivers + + Build 4.0.1.GA ============================= From 8a4f56aa605fbf5c7b91753e95baaad732f17b7b Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Sat, 18 Oct 2014 19:05:15 +1300 Subject: [PATCH 28/30] NH-3725 - Remove SharpTestsEx --- lib/net/SharpTestsEx.NUnit.dll | Bin 96768 -> 0 bytes lib/net/SharpTestsEx.NUnit.xml | 772 ------------------ lib/net/SharpTestsEx_License.txt | 31 - .../NHibernate.Test.VisualBasic.build | 1 - .../Lightweight/BytecodeProviderFixture.cs | 2 +- .../CfgTest/AccessorsSerializableTest.cs | 6 +- .../CfgTest/ConfigurationAddMappingEvents.cs | 20 +- .../CfgTest/ConfigurationSchemaFixture.cs | 2 +- .../CfgTest/CustomBytecodeProviderTest.cs | 10 +- .../Loquacious/LambdaConfigurationFixture.cs | 46 +- .../CfgTest/Loquacious/NamedQueryTests.cs | 14 +- .../Lambda/ExpressionProcessorFixture.cs | 6 +- .../Lambda/FunctionsIntegrationFixture.cs | 96 +-- .../Criteria/Lambda/IntegrationFixture.cs | 39 +- .../DialectTest/DialectFixture.cs | 4 +- ...ctoryDriveConnectionCommandProviderTest.cs | 6 +- .../DriverTest/FirebirdClientDriverFixture.cs | 12 +- .../DriverTest/ReflectionBasedDriverTest.cs | 14 +- .../DriverTest/Sql2008DateTime2Test.cs | 8 +- .../GenericMethodShouldBeProxied.cs | 54 +- .../InterfaceWithEqualsGethashcodeTests.cs | 2 +- .../LazyFieldInterceptorSerializable.cs | 5 +- .../MetodWithRefDictionaryTest.cs | 2 +- .../Events/DisposableListenersTest.cs | 2 +- .../EnumGeneric/EnumGenericFixture.cs | 4 +- .../GhostProperty/GhostPropertyFixture.cs | 18 +- .../Hql/Ast/BulkManipulation.cs | 16 +- .../Hql/Ast/LimitClauseFixture.cs | 6 +- .../Hql/Ast/QuerySubstitutionTest.cs | 8 +- .../Insertordering/InsertOrderingFixture.cs | 6 +- .../LazyProperty/LazyPropertyFixture.cs | 26 +- .../Linq/BooleanMethodExtensionExample.cs | 10 +- .../Linq/ByMethod/CastTests.cs | 20 +- .../Linq/ByMethod/DistinctTests.cs | 10 +- .../Linq/CustomExtensionsExample.cs | 9 +- src/NHibernate.Test/Linq/EagerLoadTests.cs | 7 +- src/NHibernate.Test/Linq/LinqTestCase.cs | 5 +- .../LinqToHqlGeneratorsRegistryFactoryTest.cs | 8 +- src/NHibernate.Test/Linq/MathTests.cs | 4 +- src/NHibernate.Test/Linq/ProjectionsTests.cs | 2 +- .../Linq/StatelessSessionQueringTest.cs | 4 +- .../Logging/Log4NetLoggerTest.cs | 38 +- .../Logging/LoggerProviderTest.cs | 6 +- .../ComponetsAccessorTests.cs | 2 +- .../ComponetsParentAccessorTests.cs | 8 +- .../PropertyToFieldAccessorTest.cs | 14 +- .../SafePoidTests.cs | 18 +- .../VersionOnBaseClassIntegrationTest.cs | 11 +- .../CustomizerHolderMergeTest.cs | 52 +- .../AllPropertiesRegistrationTests.cs | 191 ++--- .../BagOfNestedComponentsWithParentTest.cs | 24 +- .../BasicMappingOfSimpleClass.cs | 42 +- .../ClassWithComponentsTest.cs | 4 +- .../ColumnsNamingConvetions.cs | 12 +- .../ComponentAsIdTests.cs | 44 +- .../ExplicitMappingTests/ComposedIdTests.cs | 57 +- .../ClassMappingRegistrationTest.cs | 20 +- .../ComponentMappingRegistrationTest.cs | 12 +- .../JoinedSubclassMappingRegistration.cs | 8 +- .../ModelMapperAddMappingByTypeTests.cs | 4 +- .../SubclassMappingRegistration.cs | 8 +- .../UnionSubclassMappingRegistrationTest.cs | 8 +- .../DynamicComponentMappingTests.cs | 20 +- .../ExplicitMappingTests/IdBagMappingTest.cs | 6 +- .../MappingOfPrivateMembersOnRootEntity.cs | 29 +- .../ExplicitMappingTests/NaturalIdTests.cs | 14 +- .../NestedComponetsTests.cs | 58 +- .../ExplicitMappingTests/PoidTests.cs | 2 +- .../RootClassPropertiesSplitsTests.cs | 22 +- .../SubclassPropertiesSplitsTests.cs | 22 +- .../ExplicitMappingTests/VersionTests.cs | 4 +- .../ComponentMappingRegistrationTests.cs | 36 +- .../JoinedSubclassMappingStrategyTests.cs | 34 +- ...JoinedSubclassSequenceRegistrationTests.cs | 6 +- .../RootClassMappingStrategyTests.cs | 84 +- .../SplitPropertiesRegistrationTests.cs | 12 +- .../SubclassMappingStrategyTests.cs | 34 +- .../SubclassSequenceRegistrationTests.cs | 4 +- .../UnionSubclassMappingStrategyTests.cs | 34 +- .../UnionSubclassSequenceRegistrationTests.cs | 4 +- .../MappingByCode/ImportTests.cs | 10 +- .../IntegrationTests/NH2738/Fixture.cs | 6 +- .../AbstractPropertyContainerMapperTest.cs | 30 +- .../MappersTests/AnyMapperTest.cs | 76 +- .../CheckMixingPOIDStrategiesTests.cs | 24 +- .../ClassMapperWithJoinPropertiesTest.cs | 22 +- .../ClassMapperTests/ComponetAsIdTests.cs | 20 +- .../ClassMapperTests/ComposedIdTests.cs | 14 +- .../ClassMapperTests/SetPersisterTests.cs | 2 +- .../TablesSincronizationTests.cs | 10 +- .../MappersTests/CollectionIdMapperTests.cs | 36 +- .../MappersTests/ComponentAsIdTests.cs | 18 +- .../MappersTests/ComposedIdMapperTests.cs | 16 +- .../AnyPropertyOnDynamicCompoTests.cs | 6 +- .../BagPropertyOnDynamicCompoTests.cs | 6 +- .../ComponentPropertyOnDynamicCompoTests.cs | 6 +- .../DynCompAttributesSettingTest.cs | 10 +- ...DynComponentPropertyOnDynamicCompoTests.cs | 6 +- .../IdBagPropertyOnDynamicCompoTests.cs | 6 +- .../ListPropertyOnDynamicCompoTests.cs | 6 +- .../ManyToOnePropertyOnDynamicCompoTests.cs | 6 +- .../MapPropertyOnDynamicCompoTests.cs | 6 +- .../OneToOnePropertyOnDynamicCompoTests.cs | 6 +- .../SetPropertyOnDynamicCompoTests.cs | 6 +- .../SimplePropertyOnDynamicCompoTests.cs | 8 +- .../MappersTests/IdBagMapperTest.cs | 81 +- .../MappersTests/IdMapperTest.cs | 42 +- .../MappersTests/JoinMapperTests.cs | 63 +- .../SetPersisterTests.cs | 2 +- .../TablesSincronizationTests.cs | 10 +- .../MappersTests/ManyToOneMapperTest.cs | 82 +- .../MappersTests/NaturalIdMapperTest.cs | 2 +- .../MappersTests/OneToOneMapperTest.cs | 40 +- .../MappersTests/PropertyMapperTest.cs | 108 +-- .../SubclassMapperTests/SetPersisterTests.cs | 2 +- .../TablesSincronizationTests.cs | 10 +- .../SubclassMapperWithJoinPropertiesTest.cs | 18 +- .../SetPersisterTests.cs | 2 +- .../TablesSincronizationTests.cs | 10 +- .../MixAutomapping/ArrayCollectionTests.cs | 16 +- .../MixAutomapping/BagCollectionTests.cs | 12 +- .../MixAutomapping/CallCustomConditions.cs | 2 +- .../MixAutomapping/ComponentsTests.cs | 12 +- ...efaultClassHierarchyRepresentationTests.cs | 12 +- .../DictionaryCollectionTests.cs | 10 +- .../MixAutomapping/EntityTests.cs | 12 +- .../MixAutomapping/InheritedVersionTest.cs | 2 +- .../MixAutomapping/ManyToOneTest.cs | 8 +- .../MixAutomapping/OneToManyTests.cs | 18 +- .../MappingByCode/MixAutomapping/PoidTests.cs | 18 +- .../PolymorphicPropertiesMapping.cs | 10 +- .../PropertiesExclusionTests.cs | 16 +- .../MixAutomapping/RootEntityTests.cs | 8 +- .../MixAutomapping/SetCollectionTests.cs | 12 +- ...odelExplicitDeclarationsHolderMergeTest.cs | 58 +- ...atibilityWithCandidatePersistentMembers.cs | 2 +- .../GetFirstImplementorConcreteClassesTest.cs | 24 +- .../GetFirstImplementorTest.cs | 20 +- .../GetMemberFromInterfacesTest.cs | 14 +- .../GetMemberFromReflectedTest.cs | 30 +- .../GetPropertyOrFieldMatchingNameTest.cs | 91 +-- .../TypeExtensionsTests/TypeExtensionsTest.cs | 125 +-- .../MappingByCode/TypeNameUtilTests.cs | 30 +- .../DataReaderWrapperTest/Fixture.cs | 3 +- .../Dates/DateTimeOffsetFixture.cs | 16 +- .../Futures/FutureQueryFixture.cs | 211 +++-- .../Futures/LinqFutureFixture.cs | 4 +- .../NHSpecificTest/Logs/LogsFixture.cs | 4 +- .../NHSpecificTest/NH1270/Fixture.cs | 36 +- .../NHSpecificTest/NH1323/CheckViability.cs | 26 +- .../NHSpecificTest/NH1399/Fixture.cs | 4 +- .../NHSpecificTest/NH1421/Fixture.cs | 9 +- .../NHSpecificTest/NH1508/Fixture.cs | 9 +- .../NHSpecificTest/NH1836/Fixture.cs | 4 +- .../NHSpecificTest/NH1850/Fixture.cs | 20 +- .../TestCollectionInitializingDuringFlush.cs | 4 +- .../NH1965/ReattachWithCollectionTest.cs | 8 +- .../NHSpecificTest/NH2020/Fixture.cs | 2 +- .../NH2031/HqlModFuctionForMsSqlTest.cs | 2 +- .../NHSpecificTest/NH2041/Fixture.cs | 4 +- .../NHSpecificTest/NH2056/Fixture.cs | 8 +- .../NHSpecificTest/NH2057/Fixture.cs | 3 +- .../NHSpecificTest/NH2092/Fixture.cs | 6 +- .../NHSpecificTest/NH2094/Fixture.cs | 68 +- .../NHSpecificTest/NH2100/Fixture.cs | 24 +- .../NHSpecificTest/NH2102/Fixture.cs | 2 +- .../NHSpecificTest/NH2138/Fixture.cs | 4 +- .../NHSpecificTest/NH2147/DefaultBatchSize.cs | 12 +- .../NHSpecificTest/NH2166/Fixture.cs | 2 +- .../NH2188/AppDomainWithMultipleSearchPath.cs | 2 +- .../NHSpecificTest/NH2203/Fixture.cs | 4 +- .../NHSpecificTest/NH2207/SampleTest.cs | 2 +- .../NHSpecificTest/NH2228/Fixture.cs | 28 +- .../NHSpecificTest/NH2230/Fixture.cs | 16 +- .../NHSpecificTest/NH2234/Fixture.cs | 12 +- .../NHSpecificTest/NH2243/Fixture.cs | 2 +- .../NHSpecificTest/NH2245/Fixture.cs | 2 +- .../NHSpecificTest/NH2251/Fixture.cs | 16 +- .../NHSpecificTest/NH2266/Fixture.cs | 5 +- .../NHSpecificTest/NH2287/Fixture.cs | 2 +- .../NHSpecificTest/NH2288/Fixture.cs | 3 +- .../NHSpecificTest/NH2293/Fixture.cs | 2 +- .../NHSpecificTest/NH2294/Fixture.cs | 2 +- .../NHSpecificTest/NH2296/Fixture.cs | 2 +- .../NHSpecificTest/NH2303/Fixture.cs | 5 +- .../NHSpecificTest/NH2313/Fixture.cs | 3 +- .../NHSpecificTest/NH2317/Fixture.cs | 2 +- .../BulkUpdateWithCustomCompositeType.cs | 8 +- .../NHSpecificTest/NH2331/Nh2331Test.cs | 142 ++-- .../NHSpecificTest/NH2341/Fixture.cs | 2 +- .../NHSpecificTest/NH2366/Fixture.cs | 2 +- .../NHSpecificTest/NH2477/Fixture.cs | 2 +- .../NHSpecificTest/NH2488/Fixture.cs | 40 +- .../NHSpecificTest/NH2489/Fixture.cs | 87 +- .../NHSpecificTest/NH2490/Fixture.cs | 2 +- .../NHSpecificTest/NH2491/Fixture.cs | 2 +- .../NHSpecificTest/NH2505/Fixture.cs | 40 +- .../NHSpecificTest/NH2530/Fixture.cs | 2 +- .../NHSpecificTest/NH2565/Fixture.cs | 4 +- .../UsageOfCustomCollectionPersisterTests.cs | 10 +- .../NHSpecificTest/NH2569/Fixture.cs | 14 +- .../NHSpecificTest/NH2580/Fixture.cs | 4 +- .../NHSpecificTest/NH2603/Fixture.cs | 106 ++- .../NHSpecificTest/NH2632/Fixture.cs | 10 +- .../NHSpecificTest/NH2660And2661/Test.cs | 76 +- .../NHSpecificTest/NH2662/Fixture.cs | 91 +-- .../NHSpecificTest/NH2691/Fixture.cs | 4 +- .../NHSpecificTest/NH2697/SampleTest.cs | 12 +- .../NHSpecificTest/NH2705/Test.cs | 20 +- .../NHSpecificTest/NH2746/Fixture.cs | 2 +- .../NHSpecificTest/NH2761/Fixture.cs | 2 +- .../NHSpecificTest/NH2828/Fixture.cs | 6 +- .../NHSpecificTest/NH2852/Fixture.cs | 8 +- .../NHSpecificTest/NH2875/Fixture.cs | 2 +- .../NHSpecificTest/NH2898/Fixture.cs | 4 +- .../NHSpecificTest/NH2907/Fixture.cs | 4 +- .../NHSpecificTest/NH3149/Fixture.cs | 2 +- .../NHSpecificTest/NH3153/Fixture.cs | 4 +- .../NHSpecificTest/NH3590/Fixture.cs | 6 +- .../ProxyValidator/ShouldBeProxiableTests.cs | 20 +- src/NHibernate.Test/NHibernate.Test.build | 1 - src/NHibernate.Test/NHibernate.Test.csproj | 4 - .../NamedParameterSpecificationTest.cs | 8 +- .../PolymorphicGetAndLoadTest.cs | 87 +- .../QueryTest/DetachedQueryFixture.cs | 6 +- .../SqlCommandTest/SqlStringFixture.cs | 2 +- .../Fetching/StatelessSessionFetchingTest.cs | 120 +-- .../LazyCollectionFetchTests.cs | 54 +- .../Stateless/StatelessSessionFixture.cs | 12 +- .../StatelessWithRelationsFixture.cs | 4 +- .../Subselect/ClassSubselectFixture.cs | 18 +- .../SchemaExportTests/AutoQuoteFixture.cs | 12 +- .../ImplementationOfEqualityTests.cs | 36 +- .../TypesTest/BinaryBlobTypeFixture.cs | 2 +- .../TypesTest/CharClassFixture.cs | 6 +- .../TypesTest/DateTime2TypeFixture.cs | 96 +-- .../TypesTest/DateTimeTypeFixture.cs | 6 +- src/NHibernate.Test/TypesTest/DateTypeTest.cs | 12 +- .../TypesTest/PersistentEnumTypeFixture.cs | 6 +- .../TypesTest/TypeFactoryFixture.cs | 48 +- .../TypesTest/UriTypeFixture.cs | 10 +- .../TypesTest/XDocTypeFixture.cs | 24 +- .../TypesTest/XmlDocTypeFixture.cs | 18 +- .../AnyExtensionTests.cs | 6 +- .../FirstExtensionTests.cs | 6 +- .../FirstOrNullExtensionTests.cs | 6 +- .../UtilityTest/PropertiesHelperTest.cs | 12 +- .../UtilityTest/ReflectHelperGetProperty.cs | 14 +- .../ReflectionHelperIsMethodOfTests.cs | 22 +- .../UtilityTest/ReflectionHelperTest.cs | 18 +- 250 files changed, 2445 insertions(+), 3297 deletions(-) delete mode 100644 lib/net/SharpTestsEx.NUnit.dll delete mode 100644 lib/net/SharpTestsEx.NUnit.xml delete mode 100644 lib/net/SharpTestsEx_License.txt diff --git a/lib/net/SharpTestsEx.NUnit.dll b/lib/net/SharpTestsEx.NUnit.dll deleted file mode 100644 index 45fb62b3a7e85b03dcba94f42ffaabd5cda34091..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 96768 zcmcG%31AdO_CH=VM`toKIVK57NCFu!z?exwID~MB$RWrrAc6uCAY4KQX95BtF(BTc zpoplbhD8bE|`cMvn_Fh|H`iOG)t-Y0+Z_3o$}EMZ3EkBTQ`{3P(Gi z^av4^LKrIbnze`r5#Nj}Sx0e)vKukBpRVFV(2+hEd`{8-QX$g$|M*oyW`-ol9ZqrZ ze?yLF{O<)R{7BnztrP`~X}^VoLZAfJKM(Lw3kgwHQ?;Z9c>O}y3mTUdcH932g_u?r zjYVf5k!^#GT+kX^ZU6eC7-i9_`4KRZtpYZa55$rtd;^GV|F@9*ihpFAL%2ogULn?g zDnv4;3Xyw@5NRnwj0pe7$Q}_}$)*AN%~?3;x;dhu*JwAGxaF{nZUmJSp=A$m!K- zBleD+RaSq?zi02hWa!8T{W%Xm+|X|NO9e~szw(~0$HxAYJ^Q6e{>Rpg>OKA}?^km_ z8TQ^<=QVd_W@VN;1k4pERX{khLb!&#VPO;_jcB>J!ZiU$Nt$E-Xd&`LnL>Dv%dpI5 zw#;(37zrLU1>_GUp#geB=?-DUnX`@?kPwb#A!95R46#;-`I3whj}gg6G%T~6ksL&X zaTlrZhlR(~Pqv}2v2C~-cH5}#*tV?WGW)pH_P9h4>2Bnq?yxZQsT77If^v8rk=6)9 zc?dMGAu7R(E)%ys0NbbD9ic)Hipjrb8L}K9m~GnS66eA$I5QB1$qNhCK)LiKWpiP+ zB;`0G?ZCVxDc4au7Yf;nk@lR_+8H^CBYB~3QSvQG`I-kK2y%ov;G&(FS#Gc%^t(W; zJ<9D9NvaC#NNUK-u0YMIvidAnP!h^Ym!#vyNnne0gxFXol5HfhO}g*`6`5Zy1?rjl zNB}h!34u*y`3@TJjqf1J2_A`IhgzXOMHr}OnOW`<*CPcE4hU!DWRmQRfYIwSRCT8$ zm-Z6TGvS^*c2A}&;L;8XxN^7+ZV9+@lMuisVdO-Ni|-Hj6VZ#2F~8**^Ne_Iv`(`M z&s9~4Qq`A2L!=CWpfYEcJ4J8UkM_{S)-ZI)iuf4-rM*wX|(ZLgN)ONMg34rbts2jEeuJ494XQVqq>M%yBQ-o6; zPFLgxF3!4BNeGGz`_+95Wk8v0iA$F`A)T@%q|-P9ev+fpT>>{zfpIP%fa44b9&}o2?{s=l6DxU(b(CJ7+t@u5qxfrn=wWLe449#gh zlIaKyNlc307n~vk`KVnA$8iJqOK%LFRcRuBy9Kg}G^U3d3HCOT>oZD>BzPw*b5MLV z+jNJKIH_f8BI+2k-*5TqIrt{5(|mZB@BNEqx_WwyJKbG1ZMh))=)i4~=9cw|31KKFH@t+jc(iBEL# zt@eoirSfKRk~v1zo8u4K`v{cH;i?-+7kAw#Tu{lRcPa96n|0JuYDr<1qn4OMK?J1% zAj-ptYatu8kSw^MzVPY6J;<&bdgyDq;j$DZLS>EM&h8D(Mn?~gK}`9?)=tlGIGwSx zh-WMUh$Fik0yZS{cc;B$x3fBS!Z6U&O2$Y!j-)x9k@2|JolU?RGjTJ*m^lGy>@ONq z2{7Fcy{hfjQYP(Vr@-t-*H7piq+{ruXp#pwob{6cLb!Kx0myzdY;8Z?@-a_pf&J&i z?RVClhis^^$&|a8`i&vBLniuG0JmrwGte$ai|7T&WV;dC2UfZr(kzH>hf&<}7CLH4 zY77I65u)Btw@8h!{6r?4ErXmbW zH4Q3@g~8H5euAIfVh+jzpW+^=#`6UKyl6Qhp?>4ljv6~3lHi|de92jZdZUSwqn6Tf z_rM$_tm=L`5>(yW>Xs69-8y)VqQ`R*$Nu4glsVLxg^{u4_c7(L&)+n819K|19 z@4(+9`meEURH4OZ%A_mtk&h}qMc{DOpf5;ja)zk*Mx~%d$q>e7q#RT!@Qb86K*~Oq zf*Gl#8v;_EQ7Le$q+1_S?o}z&nrOI3$_AAJ{W64`8B$iMloU!ilTyNqU`zo)jBtRn z0NW76um*SzV36Q=hC>0{6U3MUYA?XH1Tp*p76TR%#P|i6AAOxVB-h&NlPI0~ZEO~T zW#~r^Q3YdQKh2df#$vuP7%iVh9wZ47#9z1+B3n~d+~u^wJc1)Eh4}~aY`?1+RqoXZqn1(KHqn*(B;CZqWCd1Ccw&iV&yt3{_ zVZkJ}8Pz6^h@Il4DHVJSw63JeMzMQ$pIHMcEH7PP0q;t#?(tJs;D@E!jlN92)dgYm=P;^0|9WG zhmLNh2NR0dL}}b?5l%}q%M@_ArCGTovD`MQw)*#MXi~H$HpDr2D$Bk^_vHJrZhx)I z{Hpwg9e8fZBmEgvfCZN4xbadw{26(%k3jWM4XT$GqQ0cwcas~9Md*++>$p?7t%F(W ztIbjykqGicE!nBUCGiM6J}YmfN`bM6XTM1L>#+ zZc<8dM~KVRDYlz|D1L|v8-oJfi=2@fJ6L3acpt{v&h+78kl_WaB(p8cC{4BLxXS4D zrhOgh9_--zK1L_<>X8!oe}0QTg6W!g zpMVdh!@W&8K{#yLcnR6qMC+Ya<)MBs3hTCloZM9|r4+0haNE!+mr)8P{G5XQABQ*( zzQ^5$e2*%>9CUxU%oDi+5v+&cD$HWd_8Gm;(nr2NjpXEbg(q?)xWTvQV7do&fmo6! zauw3Vd!(87kQ|t`_Z>n@K)T;xoro)LYpTw#CT-y?xWS05Mm*G?L<=KlB6h8gyHM+g zNDj3Xu$par4LBp$AjnbMj7BMDRn7<{XGg9jF+4*M;ZseoC)5)0!Ry2mTT9%~*i8MH zc^|gQ4jt==pK6xNM|PpkX)RCv<~k5dQq+~(RTw*tbXW1}#`1Jrlo|flRB_07boLCmO zo*O}rY(&6K=q5yduL<=h7ye!oYR)v>rpiR$d1jk(i`}p_aSjulG#G;!PfQ2kT5%5o zE$)w2N#UiNVe1J!Z1c%How;!h>iYp^E%tFxGbh~me^XO@5UI)+YShQq3DGpZj*7P8>lxA3eC-!)!`B|sllWQ|?ZnrPT5j8DDdTLO8hgX3 zPF_~hqYwrEB64XZnmhUGoHOB+^q5eM$&F7XxY2vQrt&J^*40MtGeu`v-=H`W)$@V?7k^R5L#+AZ*gwt&s1_iV$ z;Htx*srC(A;z!uqPWyzYai0*A%_sDz#Pmu^#f!-1sAX}r%$RKRMcJ0ZHtel(0y~07LBpMUA&EX^`)}xV!5LXF6TAta68fS>tVX;||R}i?lVPd6Rcm`D5e{DT>>p&#ym@K`jx-Uy6vjBXG5Nwp!m$Wqu)t80Z#*$%&Au=; zb=jvr^^k++5U)UI$3&gF`LfoO3iMZ7^Tpo7d6B1JeaCDcgzZ2q(;e;-a7Ug-)X&@X zoIe%2`?e{m;o;|1s^)Wi0vWEPyws^)I@l)QUW9p&%rpXIGpBk2hB;47G9`vSL)X#G z$tawn3{eY0-JJFPvac9WPg5h@pH*|=@ehvE<8W{2ZnUqw4jwe0E!I5)x-*0)QAU&& z*-n18#%;lTT1jm#0C{fJ<|qR*al=D8t=F(_Qu=C{+>L}<&k?Qj0*T{1hFjY>ujb=e zW!d%UM~_Mq&DT#c^*G(3oyd=;5(#_1x5ta-3jKi?9C%Xm9CH?5gwb{Xw;ho;I1=y8&hjK4 zC!i9?J0zb7_zQUWaKv8`;Tw4aCE-K>UFr{*!yVR>D7#)0G5q$&V z+o*E|7y+_vX7Z@9C198jV+=g!eh=D^1jk$Um~45D$oq<#k0&=q0S+=4`uGA4AY`Im z#=~b}_#$=?d}wlY-H0l!R)bi|QbTqwZq> zxR~0!A%wtuFW^w_=lg39q)|ONN=hB|pMaM|9zrDc4+IUA1d((JK~C5aLeC1DPlf;D z2syb49RZzleuhZwa|8{Pgq(DVeSsi!6aloUdty^t+~RalOSvsz2Kgnpy@tW}u6oQ4 zmH4j_QHD_x#M6Zhi+qC^9#&b;$Xig}Z;^$q{tgi(mXaWrE+PMk%lm_w^PiNH%S%bf zNtgd~d4Dv;|BIw?MNksN(}fLdQeLO%2mh5R|Amf$FJV3r`w1zSN&Jki`E2HJB4( zht`cnZ@Ac5lBy`U*{c-?lW;mN&CEhQKv_pVGWc9j7qZU@fn*;Ec7*(FAH`vx3m0xD zF>-_I3osH#SrUz;d*)P|jRqJR+c=PIBuWz-(H(0!OA57JjygjW52aF&h5&`q#?zPp z?R<~oC;wKu8jHG8nY`ekGLckAD22;Jag@o23zwTD`Ip;vT^Z6<1=HL&}AE;b#&{r58^nw2u>QrlT0FJ#knd?4cJCf40U9r zBuCE2g=T;}Glyq0lLASlhVWqGnISyKs2=*l7vHu+-@k2cGCtI z)o$7%#_gt%lDOSa650)2tacLw;C7?Vu~EBmsJ6lmp!QT@wvl?ACQvflBf?Fkfs!DT zE+=X>_LcZa;KNG12p5{0z@ILD9*ZtSYdA_Tp%XO3XZB6p5qUkNPtf#JKsjfl?KFROrr2CZCN3#EA{QA%`)G$}BbQXDG?HJT>0-+bg#^OB7C z$zw;P3^~ln2mB!E899$%j@r&3v5p80YuqqEqw#qjuDxMHtP2q^4t2#<7`1fa9HHZ| zH?9W9gtK5&tQ+XD?g*5h^dLlQh#>T;GUVvx@o1U= zqrl!sZ?KvLAsbHxugy=P9~)bQf;O?Ju?Hcek=}Trlm)-5_g{_mX17dlKHB72(BFsa zT8$~ZRTuga5@UT(+-0%82)!bP=ig|ZSW5Ln1P_bmWk*g!tYZ>(mT*;>{RfSXBHMpZ zsI%khJaJo5JX9EyX*mv`4Qb@FW6+dUkI_M$Z@w4(i|ep~lFr|LCVTrF20paWKn$`C8rO--5p}!7 zLW6UlH*^7s9UeM^+<_iOOsYCDiNYc2e6XvH3{hO|h~lC6!q^b-)}2DqoU~LzJ~hTU z#8^Zz&S4Ec6Y02%3Ugk>N=0;8)6-{93|h zjOnA(xUM53!0n8TM5qUj-=|BO7Ypda7|fY)UNANa5<;U9fQ0Qprz&0TDX{**e#Ka%vpm|bAi(!q(lvl|sk5LsiWC~h0>CsL5!|m(!?-=nb6}@s zLbIglj#}c0;5;I3M3gHskr)>H~09#wi5jhV6Yk)Wf~5Y?OKCnyfp9oBAY>{Ts*9ZG9# zvVV}azY>y~*iTy$JVe(|2bm`)Gl-9h(LhP)fOIi10U&R-yd<%ilr2_;knJ}+;t8w8 zUXH}~N!(%q%7Hc!h*qKxsr?B)COHezm0cLc?0Z5u`UMj03DwR)#Qus2rnhsMmakti zDbPGcD6@SL2c0zTUWO~yQGwVzPRVGH92nJ(5lU&b)-nYbuu4OcIE4aH|B7QDV~QocQLa~^SuQfSl?Sxv81?&7%{E0HjlvL z;xV4vaeQG$?KrZOxMwFeVMk;cQh8gm7LnCFo5C#v%^aI+%b6D6>7=%r#OGXxP+P@A zXkL%h;|jB>AfaSll~4-qUKisMYe0bMAMT3b*a}Kmi9i>XOBr8dHshB|;>?Zw!u~+R zp!W>X2K5w&)?!$2`NC{U`LOYevo)WI61k}H6zaxqIzP&w! zQfa;d5g0DQrU$WR569LZckCJpt|d9mwiw8w^-PmCw)Vt1n)gX_esa_OS^24?r-RDf zk?i7fcS0-_LQtB=l#?wA+P$LSO%nSYi2P^k2O) zPP;@++shTZ{>0{RJ8sOs{)GJ2aKLqpcCE*QEGGtp8z@@|`5Kd-_^6=nF&BV$81>r? z;KDS(8MzUWx{U~Q=XJsR&iFeIDm8Kw7>rtC3zb4D`t{9-bE}NqLa}CBqUzPu4r$&z zocpLVw27o(L)C2jv_3crI>uhB5A)O#Gux4Fb7rd#>zjm07D3O1O~P!8&s1v(PMAjvKpB2Pb2?dnM?cvRh@My(oHsnJ$c0 zWl4CX-+}U^94r?HGw84#6XVD2kV?lPRcey?aI+PjT;fT*#Bk^kQ^ff@**%D#E$aTF z;xtD=J<&KD2yKC7kvkDMYM0~w(JjqUTZ?PqalMsFuX_0$*>#kN0V^pxb{Z-XEArZU zq}0_RFgNhcIq@jSb%ZL2O^;&^(ExoI`!QE0K{!+7Kmz7%)VM_0748{!gr_)Ku^PO0 zRZDUsTVYn+#fXKwP#VSRmLYKDFdw#l%XAh^jpx9ef!M7<`*|FCBx6h)p&GW3Fiy^k z-349C%z3pMkH;kPEK`#fOy1cSanIF}<1he`Ut6I#SW^cIkDGp~BR`ogVjl86)=3Gz zUkN7i{R&*0_?{A#?}upLuR=;4=Eas^vs}ve{S$l-bG7eDP*dM`h3_ZAkwhgwlia#X z5h%A)tgZn8+)gao?QE2zmZ-|@6ocF8(!}j3xALj-J4yRJzgs+Uzq3l4-^pno7YAHvA}2rvnyvBkV+udq4?sMz&E_?9~dqP)+Rt8?j;n>!h6~gSG$~FX=7cxWVVBz0C9t z(&`N)ZdZJ^lK_)7_4>eY4)`ik{d4j$U&^L+n z4b%FF%=+-2iPrZp1Zq`WMnCeLt8`%npIE#^T~{>Gbsp&&p>+|Nb&a%ijc7*KWTopt z^115MYV9~hrK7xw=~GoY%uY-{U!_0NIDMK*f3$IWrAmLSar$(X{&?f`87h5yED&Px{1uWBy+r$No1CJwk7kK z-<7$hiOhK_~5=FZ=hd2JJ!^GW8pS|*WM z=6ROPKm4vtJaKE(mKKoA$yz3nS>_Z==5xO*b6pde)g*JOmPurmdA=p{`QMd!T@#rR zk~vMwBr?mav}C?u%H+1L#)pN-gKsIk2ojGQW_L*J3on^utAAZcx?ZMa?4j<$m36&> zh#G%)Bi494j4EBe-yRRwHz`+)bj{S|A~Nf$vdZOeW<0D>x?UvyMO-a_z;Hb^QquRjz%AH7?g;r3=mVx5oJmP0Do<>6)XdI)R@-&|MPcsFkPZ=3ZTs&H!|U0 zd$|Jed{+Hws0iNS%OY|6-YA?xd!rj6kM~Bi6TDVO zGW6c)>4>uDaxBkL5?n(U?2TSPO}iuXSzqL#+)aE%6TJWB+dTGT%YUU_068>{QM)PO zI-zA>qaUN_qzt6Pz&ZjwM+v{~G8jQVOv5up4z$#qb3Fp-BXLX zivp{*zpx8BY6>#P(2H4rY$9@V4r&AGkk9KpdZzDGRb~5a9&*fA$i*Vj7M%3%n|}UHr*FK@*f$9E zxf6QI6|WlypGE7X{7t;E@0w@jeh~Kou_pRp1avmU<;2fk#O_CTHkETeE+S0@_#p-y z)t#mS?5GMd0qc8ZA(iZV04f=K?gtH!VAd7x&1fsJf0}s`>uL&;`GKmg$Ar3K;*a2f z3ID=HnQ+XMMB0A>Ano?Pru<8Nxc(gUBlD2=&tQ%Gg23$9WTPQ)7ZWSN8~c^yqVEwO zI?TUu(Wjd!1%2;0E_{kJ_8+3*0Y4rwg)s0mv*tX34LH(n+7N#xqHMrkR3L^;d$xi2 zOdDV_PLfgzY`}r$|Emqynl^3FOCrk;*hmV*aB`JxAU@Lu6c{#83T(g!7XJ$y+QGj~ z>H;V3EF0q0VcBsh*@1&5YzOh0cA$=62c^IcJRtkO+JTP_ns(5;SKJ7>?W#JtjO_4% zhuQ`4ns%T>u!B-y2aeMI7j~T5oIh}KRol_EZ9=2P(<{4y<^vzL(M9`h>N)#TY}Z@g zZFEM`kn04u>U5C!IXkJON0YUr0v~R4Mle%uGG|Pp{Zw%|`5^;j@&jcwTy>PqbO-v1 zkp)j=B8__p;#m}LML{-#CcUNDyk)8Tz8dGQfF69L?RYi~K9L;cQwJ<^5#zd{F5eme zHmLz8PlNb)b0x`e#PZE7<~VefN-v0~+wU1|kQ`|nrzMO-Oe_Qu<4_P6H4e2ixyh*Z z0Ay6$4r=rG2xkz}A3e6IGhx^cqI>5_$e`bFDMFMdC>;<{$Mq=*GYY!II#O^HVnRLC zh|>uPs-;rdutMYhz&X#Cj+M8LabUlKwfQH&7CE(&aaFCKT4Z zm)YbyW5p2A)KtD7q?xuVzgRtvzBO`RK#CaPcODFY9T;s;Hc_yj~}VB17Rcw%t4m*1GP zPhWAg%v^^%>0NSxtu#KvPlQ-k1bBMh4Hq9iA{gn;-1nR9AM>nJkb;lL^&o=7#ou}e z^+a9Q;mMM<-tj>$w$m_2>xERVf10Baz`V@K{q$OHTll&e64mD%`VcQB`tg*$NWqh? zb|U&91`Qh}{Pa2G=n`n*`3f}TNiJgozLqEmgA&F{fc7V_T~4}X>|)}P7v@YSLe;y#^W@o#hcqV4FT za09@*j6PCKzUVE5z}6n>S8Z6}?4Spa+$xHYuD7#9N zqS^V(xLt;sHe2U2^LWUG$w=&oKXM&b`FzEWB*zJxY2hWNO9!H07}Kap#0DVh4YqZ>`_W3&u{ZNkEg#;+usek85@Ccvd|T6m{>Q zcbNA<_h?FIO?Y1FLIN#)s0n%SM>uSROT)EccLls5@bHxM)5B9z!XGxO!{)vhk4%Y> z<2_j0m?SXwJ9&Gb6`V&`Ei4%0qg~w zwxdkwdj~y^5O&?^%RELgona=kUwl!0;@vF&4O~t#mCLW6gJYfnKZLoh zAu;3$JhgY>$+3_0u+H~zqbEHMjB}25iF&v#)mnPu&vd!o;6ruJ8d2g`K7G*2*t1Ksv8vEw51U$B{|tPLSduJ=u!8;`)PF;8^%VNcrdHg^v0!As;sqEOTezTssQ3dK&tTFMPIBe;IBX z(!7Qmdodd78*g%`66ulY2y)g)2+_l`B>_iABQrqtB~*|;Pe9`$w!sp{#hGBHaS>06 znvRQG=ax`+0b&>siGVXCoi&fiLM=+Md7mp zP5$5acB&y+t*Ii2scNuvY*IQFniLw(X%F&NP7hs(^hG6Tj+~8*jv|GO)^-vv2JwLU ze1YvD6Kxa6z#GD987rb1M0tU+2oYYyHc%247<7p(MxYk4+J~(n7h?$SsTYBStyL#S zLQ8;j5x5M*cRTYfHTftKTGkBTX6CCk`6v=v-VEOz%vWdfQ6yBKz=!z@dfXQ9#c<@! zXgG&%im{7{$H?Vb3l1{xpJ&di@adKPcp$DOSzD6oCxV@wu@#wP4an9&NpJ>TVmLu$ zL{=ab`|FmllWqAYnfY&lHApQd$@#K^R@^!Wu9(;dw>ko+I4`shwfI z`!L9k+D8yZ9)v8_8uD=;O-G$zKn`T3#8#uxWx52;S_Ls2l=!o3pG?Z3w}0`$^XyD_ z1szJ>WWSpw5igB_PpKIMf&8p^pz}l64t4@A&{q zjg{`DocUlIaWEB!Q2&Lwy(e}V(v~Tp-n*msj@5f-kBig36R8)%2-CCk;)~=Ej;i5N zfh)9)uISz7ylyK>%ijZ6o0+sGo(xN^=VW&=eF~De9*9oBsy!OZ^58OEcaMTr=0hbu zhDiJ?t!mAJ*@Uss;-wq?AbQ{frCN~CjgG&)_5 z@cN*LJk{CWlRS*7RMN8t^{}FDg>IAut&wjt3kxl1LwAE2iTaK zRHMnUYSX)F95=^D6!~!!BZRuOjb8?xy%zUUnb+zv6Bh~#7nu9wl!9`vqjID0-ukIX zAb$RwByEy|WFD}fvbKTD`?#zuCU#vTRyG+t#7pI;y5V=19g*w7s>`ozv&o^S0S5Ec zW9vYT49}1+$fyQNLT9E+Y<+VI%VJoM8VzJTSJe$*f^t<=8#J))OZT(=bgIOxD|Jsq z_oF(*sR%ROUWYeAOk^X1=IW4%H-U&ce39(tM=pObB~cyTY?{G#kRP`xKi&dDY!d?d zf+@NDR>bXo%(i&rkA6b?OxfgX^~}O1&l$U|Ie{l^KilCseup=%SM8%?S{k5A<~~DQ zu#XJp7m1BpNg0BG*`Qa!5Y$+mh7`CxrK17r;(Su{j7akXxjsx4!xOKtg0dkOA@1u)Ng7EEIk zTsD**iM@*c6R&&wS&FTu=V|;UV2#hX>0tc6%T6a?(Ru8vz1vPF(1?DIold|uzPosz z19w8$sYYXLAK{xZ^x?7)9&H=3dy!$8t^~tb*duZu5`0-nd~e2W7yNBRv@{9)crcCc z{E#$kWg?xW&Az!AiW##DALcXdN@~vqh->WU;`?Q68DgKs~ zcW?{&A}!>*zJ+|xw~+7C7V@=8X<2zsYa!nSE#$kYg?w+ckk6gkvU2olA>a8eE%~RyY5fZU=o* z7P}+EFkiLRx0}Dilmy+;H=xIMmgZ@yZ_IoWPrN>ZR6a&S(xUlkm>CX6h4XIZyl~EX|SBHvrI(0<_lRGE;W5%=ldu)HS7`%vcqvG9!+aj1l_- z1je32K)>2RYd)*ZVcuoV<7n;dpe2Kzm{Hpv4!T-5b90Ukgc`MOo()yJ@z>f^)<8*E zH`B%5z$4F-V$!H4e6&{2h|7HeRA=OIOb@O3po`c2Xt)8z%&d4siU)6rNjUE}2phK<0 zXdaGlRM^^qn}0$89m?`C77N&@i+|ABbTVEVrHnaimY~w`fTwWUt;vyBsWdpE9ab*I zw}+8{#S(;!!J>eEF+fp}`;Q>i&oSFpJ8D~dk<>s*Xj^m%oe5E)e2{c5{w)F(*A-!I z0|+0EaJ;tnYrLYxXEDV5aZ6)0RSU|-R>dNVqBE*uR%~ol<;<#RNpL}IMkG3a?(~x2 zgsNz4ZlwCuu4U!)UrBJ_qWLw8qE)9>S1qcER?aU8j#)H){@fYEtCo(BTu@bg>hzvH zD^HnmN{=qRx^=HAujqABQ)P>)YvwMfGPRGZ!V?1&27mN#%;|&Z|HWrtd{uVp#MKXf z^4OYh)7oCYAmY8@i#~yS=AAz2zIUQ~9@^dKoJU6V{`+fhSFbp*@x!zK*4sb!?UP0? z`y~JN7mt27{e8xF$CjTgwnQh1@Z}eXi}z1=PcK{T%iJ_Rt^X-Mrk9SqBjXAG zwQbM5V0_WCg1X`#N4*%H-(gMJS1%1LKYmr8?q5!v*t_3b#r;2eedM5$kG>c>`GfC< zAK2Y?)ZRZ&yWqg#TdT8A?R(+&bB@M_5A@U(!G0Pea?oflF@$&n7{ik|J4uMCcosGr z@#CN^1|Ee$L z=8A}@#?eSZ(^;%*0DuS4wuA9$qJ`jDiqC{pi$y@hRSCZNi21?Nbuga(%>W=aC2Ax@ z&&E078Jtdv#zVy!pjIKf%nLVR2B1uAN5?+oQP3iqax3N#)!B` zlz_2EbByD_Mg^`$Ej6!WB(i3l0V#{X6fbNwlG8__AhS_mv$m-%W|+R3z+PMgmX%2E zI))2B6S`(_jw(SdOEtc^kW!6Q>ZnD9|0ECtyLL{!CKKWR=f4e zV-?8Uw)xCvs~QWI6L_EG&18pCuRIToJ(`!5$Vg3)3QDb8bp#rs@%>intc}}iV%7m@ zOL%}R+BeTU4o;*|i!@*d|3n@ihc+`E=I}`_J&vr+3@eSZ#>b%;*93lk>9?|-jY7}Wy6jntk*%4AXKIVH z_5))<)B1=H#>2qSOe>Ew#Kc)(k;b?=kwx=oO2>dInbddif`v6p`^nJ2%IZ!v!O9t! zsl|ddkzi$T*4(Q3GlP*?h*mF}KR>v*a{i*KGTCMPoT}iA`ITU+Ew2mCj8w&f)sdRu zj7W7&<=kp3V|C?%s+qysE_G#cWHVV#$R3=&s3thK21YDhSQVTLEnVw^mDMv@No_ZX z3oBb^%&D4jK`>Soom)A7?y|}n%pilaBGF)otUcK@H)ZgWg;g_Zs%G{kb7jh)xwB?f zMXRb&&R}oZb^;YD7M#hc!OEK8!bof`ivo9FB)5b?+Hc|%6 zt*(qN4URJl3wG&2I@g}`QS8D+mGgsOPXibdt*Wf4iU!BesjQaywuBla1V=|TcTI$| zqSD4zR?n`Iso*@bI#yE&?*vEBl78S3)E-z)u8EomNdjdQoG!hHjE-V;`neda$w51MM8Vte9Cv)OBG?(C9Q~BvJHfG$S=>xf?X=8w6RW)Q9$(gudexgT` z2C6nFld0Nj=0qbG$<(2hi{a%OR1+Fjm2AbBwT-K~a1k{G)Pc;5C+jAG#0*Y6yLvA8 zf+|^hIgNpIk7pH`e2Jlv##@LOFmBiYDRAS&KbpiYrp3)EBdAH`|%KTP8!nA9w+FBjOm&CNkh&)a}cgWfrp+9JYargIx*uP1}%9` z;TB&qP4It~-RK7jNjsK@0?)q%HY@~oC;t+?azV8t)@a@MT@U93A(Tl_Nz7;>D626XD&>3cDu6M6g6PF0-@aTh|bc$wp$bz=D; zO79S&_)dfwV&2K)PtFjRAT-3rlPUdcgkF(fOr?Ifm?VG9;j4K>%?jU`?-do{k}%31 zrm|cUUg0yuonfNB4yqx7C6sv1=PNrK;*rk8xwkWMet^&`o-h9%a^5Q^Im^3srqXp=-^~#J=ti7H6%=mZFwmRg z$sBIr@M#YBaM*@<{>t&UIsA}AS0BptV4oZFGsM?@-t1!tqc3SWsV}9h=}YzdQD5Tm zpSqu(r0bSV{dWa6ncCr3Qrw73aR+F9=r>caALs{8$5Lz#XfBb$v<6K}W3&b|;!J0> zS)%~w+phCv;KXJ+ez|N8I;?@+IFk7mP#)fTKZ)~w%K4J<>rzDfiSs4nv=t$bB<;y~ z8=6oDplsMx#;6a|Qt?X|L_3FR0le2v=pv?N;mhTOt_8|N&WVg}Wm-0Vv6pDiF=~z9 z7$NjNqqdlK5jw`G5c5hx(m~n_G0P#8$tZ|f51~S!_W182MxB8=iXx0RL>mHBjNj~7 z&S(as5WGUP2B0!*+g!%zcA&06S1@`C2*0>2u442$=L_R^dnw;%8m(p|o#dqwoVzDl zTcBb{y`E85rj_H|Inl;5>WWj&RPQxTs`qX<*Gg!eMz=BNHgNXFFNWODXeVd^pa+<9 zA9MD=cuDz=YVnWaM+DOm_06l}TJzZRYeHAy_ z-YYD#0i14p&-Ybj8Kcw09~nKW(LqMLHTsazI~sk=`u+hVu<7BERQ6-gHwwrnsg--( zL>nM-nO5K?I|tydK(rF34HWrI8wA<}tTPIjb{^9PiMC9OaK1qz$h4I}^d;yHjIL(R z!J;E`Zeq^C;$%kK+*D&jvExMgb}{Er(T&mHH0sWrpK-pSqC3-mW!jmd2h%c)3|AC) ztX@p(WKfBQi~daO1DYG?bf%4D+6Xb2X$wGGhOc%GX4+~^8^W|LpbY?RDAS(OwBbzq zBWTxwHk@hiXxbR2eFa*D93jRsO(u~oBgENEYn7DY+5$9@X(3IU!nD&tdkC~COq--> z)0tKS+LNHoVRQ|U8z{n@n>FW!j2_o0%AEVa`5HK*Ogp4$OPKZ_&<=vOjA^YsWalVx zG1Gc@h&Bo>iQ3Cp57p6VaVeuJMq|X~oNp=TJ6mjE+Re!K9lln$foacZ+O16c0JNV$ zyA23$>m^eeCWt$v6B@FxkLVVY#l4)bO)}XsRXoJ`%E6f`2~i6fplOdY?HthZKzovD z7cgy_*vYizpp{8Nly9}By~MQJLF*0LADQ;3roF+m-J13nNqzdA2*Rd zc6=WQGKVm_LX2QEo6(hG6r;--U4`9g;=G5^)nY88J&ab1@r*uav_?!|;R7UF=T_>h7dXmxgVmhOD7_ApG8U4!W27w<}fQDcX z(zij(VN}oPMlp}kNtpG!aaWnoNO|IBQO&3mTYU>&{Ed5JlZY}>p14)iFjAhlO)O^g zJj=XY;MGxRf4G7)+#zZi(F=}lJWpK3NZInRSk0()AEG@fu3@BXd0ecuq3zgKBALpv zC&YRi?Mbo0Mte$ZWHf}!utVI;NLl@~*u+Tbdj?M{0%B_DzKnplA@n@LeV3RgRkp3)y-5ywkY-Ua_vDNne%h-XuFBmKpcy$JVl z{PUC}oN^Q)aT4{IONs%hzam9RQ*!nPo^qen@OI!+ggJOn5;WJ#Q8SD7gOH%kPSWa17c)(&-`|x zAuA)fomiWdjqvWQWAG2b?ut$S4-l8) zU)iVm+lkgW1N;H;O^>nds9a;)NpVrmk0|LkJyc04qml0bU7ki(?LqhyhyM;yd}R5aG%2R$y^L^C-X3t? zmY0@JW!%)!v`y7Qw|r_d=O8?*;mQ1k;Q2a#CBlM&%Mm`^cT-2wI5T93_d^-UnE99F z=3pI>@}oiVoZNW4C&w#XlwN6z_i0T$l-{qyUpbx)Iho~3S`_P`BGdxjp6K$|Hd5qt z%}AEw;jW*$rFaIRAuh=v&YzKvwMI9h{x*-lJ8|C8;VtL?|DoxVliE=!PV-ZEh~v$N zJ33JMiwLO{)SK)jeXwM8ks%>{1J2U)ZvqqPO z9?M7(BUs8h@fB#PlnMWKyWjAQcczIsEc38@!&m7{7fD4#yDax@Up2-9^>4TP17FmJ z4*QlmGfi5`F<*nTl}O`!t2kdP5wfJL2W=sv-N}CcW@nDLT%$byR-m;Sk(69<52F>H zkpDiQM-)wx_SWJMqYa+!{_W0u@vBAy{4YBTL~aK%XM<-nP+QTR(QZk02E}qlWZ5^) z_Tnu@mw6ucOIHW+jYc~dc{-Am%RDc^&JH5TXty9K9mIA>7g=&#ZZL=SsfOe7_ESm&aP51nI2r@O=*(ZMSR0jR*2V5{xTC26aKf`{WG+8 z7aN)LuvF*)Mygi2i^nZA(bZiXuyOVjldub?>aX6_Q_Q!}8drtbrI2TO$`)5|@vcUT zQyu_1#7LE)kN8y~wzCg*XW}wX6(tsW)74KjFgnb>?l1cDd4_elnR#_-Sd%a!tG~et zo_oimJhlz!lF%svisk!dqVkc&Wg#Mn|);&TT(&%_# zrcp4h*gZK-Tlrja9ktb4pj!z_(xozo|}&lc@8nvy=%JwbHW=%VzQ?sLR8jjm3wc25+CGs~D-4JWtf)ML;Fw8C>^#&bYFXxi3{UB)HCH-NOS@I00AH=ry=yX4-CPmNV#A|o}T zTqeF@q{fLWL<6IBVr9wO*;k0o8eLQJLH3p6ia{ikIG;1F63Yh?BF^?XSBrjwO3a zp=Q25NjHhCGvnxHv6;~>&(@5=Nw zjHFP@x;*K2@iHUj`ORX)@VJJ}VizN&;SSNAkQNe_xuqbT17F+cOiq=&?>8r1?lEOub7jNu0_aIGlx40H=a==*drJ6O$~tj+=l*#+MA2Eq zN&al_d0H&9&{pR&Vk4v7o{us&JD(ND7*Y93J3LC9Gg<-KHJ+EnDn^HsDc>$}i=uhDWnBZbmCckB4oi}gxMVy@Ss_ZxtDXDACPwST zspVbr_lcKS19?6#`Oo5z)AjW1ECI3ad zr_rlfrzal}6%$py*R#$|{<|ojq|kd=7bU+XR%!HER#EcXB6O~zeV27j^1EW8Mn7lW zmHeLAtkGv#&nF)g`!#wUv=0Ry4&dJgk=*K<*nGt$t1ZT9jBQ#rv(;I91W6wCdpfL8MPp zXaUeaMR$#sv?}-hDCTIis?`ARF|o=*^;)sQ+y~jncQsCbPvAWe_ zJS?4Pp*pXWt1Wb?*C}^dXtmcRk6CEF*O2McO)0l|lVr$3_j*0Dzl9$2Cd-Ky+UfPm zg%;ZF^~ozNwBPHOn=SN?H%0ES&>?TC+;5@pylK)i!_+Q(>2k7#eE7V^BNoc`Wl7ge zle3*KTTZl4i7!`fvrtbTwlk_s&H=sxIo?7eeQo8v7Mkb_%3m!s+t*%}&oc8Z_7%xF z7Fy%$AU9d)E?*~kz(NoDLeewa%=e_PSoXKjtG=+TvC!MTQn}4SANk7UhZ-Gqe(u9- z|NL*a`{`Csdb--s9vgZd>$tA+C(cKG+Trgi@hAiT2zmV7*_ZJGV!*v#0z}(`NO!Goz|5kWXvX^`M$+ecu zEdOcpUWH`q?2bUhhr5isBD>mYp_J3IiBr>3hGiGq(8TP`;CzLpsPdgA-?Gq3Pk;G? z)<;qXNZ)*tv%+&TY#AW47#&U~nFD25)9%Xd4b)xJNW&mGnbAk`aacA;E@VWr=J7xW z7?JjB=U~gujGQe0VELX!8v^tVqr=G=Iivh%n4IpCoN8wrbxA-yb9#f*vw*B74ZZzC zWR``_^$(Rj7#)@*WthBFBa$*q9@2=U43kBS)`@@g7};*PT&Ph_&ynp$n6{*xmh-eR zQiiHcea`{)Wu)%mqvTADh;x*zWwgRGBj-7wRknPi8*fK#zZ89gw1}&2~C(5lF5hp%}&i{71d*<9=Lwj@X@K3U6ujgz7 z+HJ|)33Nb7k(BRTeDRXR9F~;tJULV&%6FbDVYEVw>G@>4^W z@}cZ6`=`op6ymZ^l?NE9vQM=v>zVT=IL$Kr9q4=ueGD|sLSFz?T1e!+>7Q<)jNH%s zGi2KfNe)?d++QW9F*=O$z3HDN4{1aiX3IHI;yf%#!yNgIMx(lAdp)F?z6 zE|BjsqIqPsbAdd_St6dvDGtaFTo)m!3@_bT@O7z9~Tav=riu%KnRq^ROh& zsNBx9b>hdKQ*)v+$h37rR!q%_Su%glnv+svqLgrMUCJVPJ##7zi{xf4lQLBJGr~-nB$N!ssyX0WOvATC`_VYo%uib9y%A?n|wcg^X5s9?q?I z)ya^eiI;NUNv)Tw6b~=bHF);(P2rnHL^dWbz)@ix3kyCid7_2&F-&}`z|GP zSmx!eNV`TJyNnP?sdlcF8+E=(y;pQtD__uP7SMI_h(^)g+_6b(QdBz-bmNx3?0 zqbyL!Q=E5G+Rd_?M&0vn2kNU)zr4HCZjs{{t?&%bdjx2;qKS!l&!%mXuPX%0wmNT< z?^@`iwA|v<4WIRp=VPF4dZ;| zi7cQ7EtB%yDGz8w`L@b}D@hLZDnf$MI#JQ*-OR1BS|Q#yy-O}*L^9iZ?vj^TC_nvf zxtb*IqfzvEe&zxZiXo3yR&zz8cpT#*p zb6EQQ7TTFNAps3be?X>QMN-M?89)V$=>Bk8`ZhUKBht4`&bQD6pcgbEeGkg?t4YdX zN%|g=lQklJ56Nv78kYXBWy`C1gkEEs(*CgQzFJ8k+9UD@rmYi8`%K7qM82odm3GS9KRtw04DrR8sSJ|(+p)GmK3P+x^$OSN-{9K>jYcsYMr z`VLue4N19#Y0t(_b}?K(IG}NH8R?gEvq%kXS7|Tu8iK(Xe1*Xpkhxf zWK^Qj<&4H_bO)p58a>Tut48lI+NaT1jDFC_T}ZYRT(2~AU^GahevIa8G@j9Vjj9># z)aWushcvp2k$=6C`3$4(8XaIXS);ERtv2f=L8H8)$J75H7j7WV4WbC>d3jW$iFuEwzbHSvQPC#my_Ej49KTValA^z+ zzaqD3G&=L~^xd*Aqjlo$zVBx4k^3~QqUfXaKgweoO$mIOzE^I#NlB^A{3iWR@JHk4A=S=U?Sag~SJ; z{LH_~VFTl|19H4V*dhNi^MG79Bu@LAT%r)u{w6=N(f%%vTD1PTf0vgHjput)u2l&6 z`scnW|1>O4drKZrh-q)ht4GFZZ_AwuiSJ7{JKvVyjj_{yRS5YGwtidIj*rvck=qp# zZOUu&-;txwiPPSd6BQCQ<^6Ntl~Z|dP5I?LIY%K;*QI~%d$Ru&%J-4Hv&-VP@5_xE zecokp_WSY?jcyJX``?#+dFSh+ zuS_Eis_Y-g{R)Y^?wg$-$cjokt-nH|H`BHz(6(vXxlB7U-Jb6og~T$Z^_pR)4N^$l z%(OKLw2hkfEYm(ppdHn;_n3AH?}M3T=&z7C&a^8NXzMjCcnX#8{RG+(O&h?pF1$x( z%IvF(3*)qpWOs$cl%8K^ zek32X(LR^41vQ*c9O}8T{ipInUXy$zcU7z`IwA)xC)!7ndd?9!StIH>pw%%g zxlOP8vyRB~6ylzGM9$QRdd?BKO>brbv@hgLg+xi8-g#fh2|S-y`HsqI3ZZUS$-WAS^FaGb4&yte%J;P#uMo!86?tFFS8TLziFz z$`J~Qsi1u;|6rqiC--RDBGA5*z4(5s@_jD{DI`{a_Pv~=QAwY#I?-EMQVc6HLx(ua zimUYBOYwv#uL`fT#m{FsDs-gKdtyqmJw6jW4pGgVi*2Eu=aLMPznnSina3WtbKc@7 zXeN(v8St)?JRQ#hc9rrkHgnE+;5A&#c>tB!}0fQ;X#gn%At~`LY1z<@0j`% zhyS*Pjt=BKsu729b3BW~91h9zrdJz#$*c?IvHgK~?NEvoq}L&WEJyj%-hPxPOPQ+L zgWW$$mugE&eg!yPI9p1RTbeG#iCSP&U8`of9<_{e3iwuH$Km^cd~av*pQtBNZ3hsAb|ieatZf{1OgfxE<&uf zMM+3DkeUl5J1Cag1S!?ldTH@gTeP84ue53pw%Ve_ifwJ_>1luVdgyDcwpL3o_E3A# zW8d$0%{-T#y|JF(`}>@KesADeGtZheYi8EWtXXq=woXw?GF_g_ARilN8_8|7Ut`V& zomjezXM>t^lhoH}{tgGNbC^%3ZRq;CSYrA6j=x9HA22nWp88-R%XJH204I?>S#5sX zoQ%%l*<|A6d^Eiu@0Xjcu9bAX+Hv%xuKhP=Glv?cx0#P3F3KVtJbysxzN34AhLo7C zJ|&d8-u?bVzz2Mxj?Qo^>>R{YC;=l-s#uSYuirhy5;-zkM85e6B$eQCV$>Ey~g`fe?-ct`DlN7tjrkO z^eN3#$9?;Bb!a+#OeFl2ol;}c>CAFs?cvvgKP@>-m(SUxaW+bSUHD~~j(^Wm zmRHMG>vIkLdGq_VZSW__r^dgXw)AUGTfHfHQqEg~k@*NLc64FLOT!zyA~X99p&t<68(}6~Pn5 z?duxc1+T$Rrbbi&+(JA>_;u+ixaC_3e--@a;O1^Eo^$cVvUB0i29E{mBHZ=;DV~e) zJJcI+w|E0?`@R>?2HesvR_Ed7<9TqG;}bW_)n8QuZe6d$t-nTmt*a3(zwWhK6w#Yn{CeOo#;-G7j9=fm82AmU(b|Cb4S3&x_l@cv zJP+VmhNl=Gruq_|d+!{;8}*J7@u@nhOalhg=ZO#F_o%q%C@$tY&^Mm zig7#tptT*i?Z9mZZaZ+DDr$AA33zg?_p8HrqIf3Y$+fP;P3bGu6g<=L%*0cS+nd<6 z0lo`(+~mYF6HhU|x-{47#@*&_y!WW1c;@0+fM=%F3x6;Cz3}hA?baQ5-+_1B_Ow2% zB7qO9+ti0u6mA3FS6Tak+Yj7+;PwNzAGl%l_rNf4!|E-#4S44b=)VUJ0e1+vL%cIR7=k<@tXD>oa^$5jpRlf#07lM?qii918Bnb8wCWpfwml+FF7 zQ$jxjp?eD|?62XDQjOx>n#I5zhM#w7YUEa9jofOiQM{+}lD%fe;er}D!+si+z1e2~ z%Y$zUtWiAoUL!fIllzZ#a{sYTZba?|etCYK+=bb#zBuDYNcZs>|5318eGC2^xv9aN zzg$oU%0C9`6mQ$qDc-Vq)8=iLmyk*_`liiWF?H%2NGmVE`-XV|-f_zd@SbB~V9kv3 z!U}t2Ms;BfykGS*K3c^@+t z;C;*n`;8f&9Z#MY7uE%MH?t0*r-M6HXy$fc$gM8GJ1Hzk(mhakNVNigzxwLLX?c{!S8-vSZKJ~O zoq4=4UwvTa%)Cd`e$YIkZWj1yK=k^V!-2;o?&IpKGrwDSvHc7bjaonpq=)rn%9ad?8|Ceite|! z*W^y9KwBCQ*i|z@{F4E%u9-DqlibqXB&XmH2iRW@2iRZokjiCfW4u{)IKbX|IKbY@ z`r0vJhLxPPYr>Gdch8C~o|YW4FB}LoEAHtwE8fI7i8~1`fg>WHW`yp}J_>&i zXs8pK<$i9n+|NBG_+tU?6*nv9;aGrtjs>_2d@R8I-e$$S9?iIA@pASN$meju3CZ&b z$>9mf;mH8+`JN2$KF7%bZ~LAM@HWSDl7~jg!zsw^_3Rw=YR&Y5W5VH>l=_(PIVOBg zNq$ZRxI=Y1!280d!E?&QQvu#fJ%d#C0P;4*o5FdgJ?5OxOx$S~obxr{d5`!E;$AT^ z7-W0P1MCU3NU2*S|7QZcaeOAgdmx9Uq=iB9EDVz8PP+r#3WMZR7$l#eKz_SLvT)U>^2lkt_my|qfTjyS0@(S=%!mrrGzap4Ii+RgOJ6uwdlscLtBW#7@ zt&P74&pFml&K)YT0Pi8k}vDTWic!L`)bM~xQOBUNzi=^0+ z#n#m#DQ=P!HwopYEbhQ|NGe?dlYqOk_W&*p?K6ceLyeauV zoyC3NU^e6CWmCf!X1`kVuCiD*N21DXJrdo7{hDIYNELx2^KL4u2s}BjrKm#vaNc0q z48hlA^K5fnHgEpcWK%LV*{s3(Y+786;D2qfQT)yD?+LdE+$69=V3)w8z&!%@3A|C@ z0fCIWSK{Jis`wdqZ1v2j5FyrnG9|YVJKAg?_@<-tB0n~o(P%?CH z_$c7g&@sWE5SkOl&)rCdP8fR<@YV1^Y2k$6EG_mqDfM$w>Lc>Cgd;+8Dx2R-cqyBw z(qGEvmlIyf=9%A@z-JHo4o94mL4Hf&WRTxdI2q)(6b_@06aqu3o(%G&_)Ef#aBuh} zN%1r|B%@~lAIv_ZcryBoVk_Mvp=adV3ui$8WOgO`^`0={-te2*Y}JkMKbaj2(VrKR z7H;wUbRqn(H-w&WZ#V|bTX`oG>$Eb&Q_hvZK<2`sCdBUmELJ>oSR--kglA2N`>FN7 zJeb`joEwF*QD_=N+)-^7OtWB`L)=Gg5lo9b46yswZ$vO1dv}MK$p}e|r?MmWFN= z${RyGJ$o!9bC3{g_Jr^`37WU^o(u7t7^mR>TI5uSXJQNGe)_2pzl?Dz#51!y?b1cx zn0hM2uVkDG@hcgpLOfYZ`WFFtTJ|;3+r&&5M>u92ZSreD$Qvr$RidyA$8;`+X(t|G!kepkAI~RW$@kmV~PEB&|G2D^JqOleF@}{6<7x znBR-YleF?At(T<63HOEz!)(cgh=mpoxP9D9n4dnLeMaiHGR%Gv3-b#ku`titHliOr znB5fk_>zxQT^zV`$&FP_fqR$yOI4F~=aM_&e`LvnRqp}*VfeqkF3dR;NAL;LVt{+XgnPq{l85Fn+hMbuXsiSN z$?OXI)tcjlEfTs(_;di?mR)DF|8~LOgE{G|HA5xDKbXBqcoITGN~}G?bC2*$3eSCl zzfs~Qh0g)_pUmdm`9at!UDyY|*uGC@TjUeCHUaD3@?(Ho=%-WvF~rM1)V5d0xPe#xSyerWn`$p0gN zi|ap&xVK=Bz0hV|RM;D_|BV?0AZ?Q4g@+~ohr{gqbF5F-XH_2#Qv)2493BOPWoT0$ z25s6c7516>In~F)Y^x{2Y^yE8xl3s3U7GG{%!baJ3A>2x|DpnR%YSne(->5A3uT&EN z`&BvM2UIoSEcHfpt$LThsp?MnC##PE&J(y4_y*y&5??8NIloQ(Ljn&8yj!(fHxwv~ zDaHjZ7uYKBkibEkp~C`?3mg$>1&OZ^*dVY?;E=#W0-qB2bdaTZLHsX@Uu7|_C9pzZ zgTR$pq-+!aQvzQQsIn!80$1XWJZQwt37jf$rNCB!?E(h{UMFx^;N1eB7WksT zKtB0Q6}VDhyTI!N-YxLBz^4U{2z*gsAS!VMt`yiV@H&CR0`C@hT;S6JUlbT9khlU@ z3Tzj6oxtG&k*D~Ni~niykBI+8@he=!fIJJyCocY};$JTQmEvy|f4lex#ebdnhXvj( z@VLOI1&#=OQJ^X!=YYVtz^MXP3TziRT*N#a7dSY9^uq#2@TG;id^Jh(CUCjHR)K>W zU(C461-1$t6gVvKxWEyCs)Uqrfy)K93LF$TT*6e23mg%sCQG^kmkVqaI4E#f;Ni&y zj5V2@M+Ckk7!{MW1XjjKvt0bG0tW>S3p_4xM4&2_SOS*|Y!x^ta9H4Rfg=J{na~Sd zF0fVLpuk~)#|4fEROLc1aJj%%frA2v1s)eTB2dMJUf^dx5*`;g zIGcVohcGU1crN{e^8{Zfeu2XRj|&_T7@yD3 zR)K>8hXo!NI3iHh3uQfJyL<&B91*BiN-eCESmJLLI4E#f;BkQ?0#&2X zH1&(O^I?@aZJT7oVV0=CC%LNV!92Pht zP+csc0$T-M9NiwhIeJ(0g=k*Ec?It&*jjK^!6yp7RB*Cjq~Jdb{#I~d;bnzGg*O#` zrtqP{M+?7MIJW5gqRWbgiauHNSkX6&-YTk?@N(9i37aNtpRi}b;R*LoI5DAq;)aR) zCq6%M%%oY9HcYy7(({wvniMLoExxq){lyOyf4jJ{q@$#_-OOUuj7FWXplpzL#H_mzFI>`P@&mYpp7ec3#Fxw zhqxn)Qv*3TMV6~VvcozazNi|5J=Hul5j(Az>Zl5QdwD9bGnC$OJqMwS5V{zlOR#UY zRFz;4bu#u(OV#=KLiKX&#;(9lY@?cnz0&FGLRGCU!Z)Gc1q-ejd$en@L%R+;wCk}m z+k!7nU#8|^udxpMhzqcHxKOo%`xbED3a;C+56B;m>cfs~Ke!HH7xu&O?T2p|-@879 zZ=>QAT;4|mxZRic5}@|~I&VTysox5G&4+(*>=VFi8b4eey(l}CLrFny2)_YPFizkV zF8pHwQzUB3chbbE%19LkY_q(T>)dQ zD`)}SIFUScy4wHwiTGJp_2r4A`LcwrE4UecoyrNp`~B+*zK76hlQhpIIAb<#QX}B} zN&8)RN%7oqOi@#|!2f9R6@WLF`~dK_lAlQEp9IbuPY#O#wM=yWwcK`1W{GYP`26I% zL32a=e!yGf4*{+#ApETO9}@Viz!wGnLtw0eG&2OAFL1NKK7lt0yj|cSfe#9NM&K_5 zz9BGg3i*@^Tp;igf!hUMEASHn9}@U=fj<=Zdx3$e0H;~!15URZ0IRK)fU~Ssps4}0)j8G$@Ye#` z>RhV{aGv!p!1>l1z~wkSVXGC^#egd<%o;JT+z9__>k_~VtV;nevfcx@#(E#%dh2q) zi>=Lo8?83L7ONd_vy}kciSq@vO5zlOtp;#Tz*d7e31F-1u;*{9>#d#Oe*>VcZnydY zKWz;Fe#W{A@P2DILLU%##QFd*4+?zP`XKyIS|0-Zx-|s&Q|mgwpW%#vrG75(l=Tr{ z{sR!_gRL9j|AoNkEq-f%1khG5Ssw@dm31>PzXr6`%hs)czrmc<#%~MW2KcJ=DZt-a zcL1KYJ_GnW>rTMmTb~8|15Os$_@%MC0bjE|5BMkRUcmpf?gu<$JqY+`>kELdTMq&L z#d-wruhzc;{>^$6@bA`F0N=142Yl1|8sL9fPXNAUeI4*0)>DAWej3oSp8>S(Zvh7E zX90uucLB5P?*V4p-v6`beEU~`OYN5dm)WlXuC#v(xZ3_5;I;N20Eg_?06${?C*VizKVwX4wJ)-_s0D!l z#*bvM0J853?gZQsJP)Tfb_LG|ygJwbculYf_&vdXoZ9#({QK2jQ0`az5Np5M56b=O zdQk3HgNVCd-3ZEI^=9zy;4r@OzZ3qygK}8C9y|ohTc8|58)R8 z`0e<-tOCGD*4@C2&uYLKkSHh*sX|cZqTiOF7gpmG(*lg7>o8JwsvQ{huEqFw6HW@< zrS4H*ME`qIeOvuIPB*=PlQpm5^pb7mSre=>tIDdi7FrEfleN*h+}dU(@m+M>aJTNY z97C4&lXsP z;lkR&`Gxg`ZH2!q%qp5zw6JJR(YB(VqK_3FD!Q-e;iB&qJzsRugpW=5^n|ZY`1^#w z#N3JJPFy^(Y2wEweq!Rui9ekfoK!LCqDh~cbbQjcCrvAEEZ$OlL-DP}pDX@K@r%X3 zE&fyS-;1r1aLKrmi6ys|+*R_`k{_46Sn`LGzm)u=Bs6*X2Pt>X5I&sN-D@o>d=Do$0rQt?`ani8L~Y|5r7*G#!*$`_|R zKIQo-uT2R|Et*;}^_;2mr?yVrKDB@9HB&z~^?|8xOl_>}ue_%6?#lA2wN>w~>Z^LT z>W5Wlsy0r0@3gjQS5E7j_OWRXPkU_I@oC?k_KRubroSxIK! zI**^TKNq%J0>3|EW96;{zdTZ|KB(eowH4|^7*7T<6dUm z_ZoMTaj!6LtGGdEtwyw`AS?{ZF$f!@aSZdF#6*zqyUhD8c~|&dE#mo`S=znU@EbJl zUX$Owrri6~CZWFx;pBUh+Ai<6nD<-E`zPc*h_<7{5197@@*YGR(tK_=_}eAl_$^>{ zjqn>b?mY-+{_ZpG1IB&OxJSed!dlY&zGU!6jr(QeK4#pn8uyrSpEUJ&+_>K`_!Gwc zrg6V*++U-;vE08_UzB{lZsha2sn5Tf_rIF=znge(8uu;ZDod9uXxwb$hT)Qb*jj)y z{*z#Lu-#{G(MA2;sTjQfOj3FNF`HEQ=6BbRTP@Mp!H1iOp%FbOu7u8)v$ zbBsIAxcRo0&t&6HHExx0A2M`bG4A8y2Gt9;?k67!X#O8J?ybiClyUDg?jhseZQOf} zd%tlXH10FTT^iJU&xadS&C&6Ao>o^C1~A!q0Fy50;G!q3Ul(1B=a`i};d|E6iQk9+ zWw_()Ul--$DZn!y&q6#WtS5^{>~9obWHm>d@vO!3uXc0vD|k*=rzVfsf1Ugq=pF!m zA#e}F%?}imehF?-V0r0LxW$2F=@GbJ#Pb-Q?^y+<--r8EJTJrlWx>5%`aLVZ>`C~) zjb{pYRZ1G$D@N?=DjpL*^K;?U-r%mHj|ElHZNY_=#ewF^JA+Ra=VXnamXo!x@`SZ} z8ousa`9Of_PMrRly|D5=_($xAr=JMyo;G4%QN17Uw*_}kD-P_bwq!<^k6B+n=3&KH zRVl_CtQe~*`Ivf6QR{|%_x3~4}Xi4-Z z`&V6EyB5FZn5^yS>QW8u{3TEP{AQvrnL?wQ*63gNTrtquh2OGlooi_I&pf6Ero^n( z+`zV9HM#!QIWEVQz1{eIQLqHc4PVoi#7~(LcL{&w)5Qa^qBD6_XMe(vYUt_kzc#II z>+BlnORQ^#aNR_ zZtv|_+1AzN&yN?bf6LOyP_66pQ}O3FonPN<=+BTb9a(7Amzika>f^ zPY5Tr;WtqIse1moia%HCz0XnWw!9y|5-SPzd-%D?xBQxEgYyHXUKrx&u*O8Dz|!!w%m6RciZb5$xkFJz8{=-(!7@Z}tM`C(c|gsBNB{X?qjw)z=K>+>W#TIi7N zD2h~`2w&0L+m&eR!LP9PC;Qqud)VWWi5|AEekDKTnmMQizx3*Bs;d+214;b6tZMQRAVc08UQ+acm$9a9e44Y#Yqwf2crp7C_3cA5>xE=n`;{$y zZS9HGon81XUSFH_@%FOe3-==(8KmG`nKq?m)~G6963{d~9lm!ICk26b!zKmY@2b5t zbdwY~m1PE06MG=^j!)G!^=$2B`l58vD$ILhVr$z#S8`N)nyZ>tBvMmpN^fBq8Xe;4 zhL{rFAxuR!t=tYJ?@wi}8ij%&G!+H09nG4B$`Ir1!Hy*Sk>-ekO5@Ztx|^i+8)Sw* ziJZzS14@&nmR878QRp!lIu|PGY>>OHj6Ui*te-szY9TX9FnAB zglLr170E{9MvV@u+u9-c-Kpx`LAsj88%(qXxVjGm?Nz;fS2_lRF;qk&Vc6H^fH!(= zNc8s(^tC7YQ`1@B*NeuS>?B^sTb~$wD%*_39=lNz@{uyc_uAdx-rLvJxkYW<-JeW! zn~bTJ2Gz1kqyukz5^YyRx^d3$_dg-P#KhJ!}FP-&~6c{nQhN8>KH{Mh>c% z-kyXg?iOEZke)LZDIZ?7tVh%8NqUs3MXZqwx#8$+T4K)t&G4;mC4l)3qAo}{qlQ{N(9;f8y)BX4Y%FT!xWui;Z_;nhZF@B>&vmq^bAEw6ix1unqgF-U$9+>T;{2c z&aGP$s3|nz#zdFc#wy_my&d(^*_G&U1Yw#*b7#-aT2III`|KdJB9XMt2kVvd8j-C@ z-^JCBLZnG%RJfkOFmq;ZqPpG54H_HzEzBt|SEih92s*SgG4T*~A)64Exb zS2l-@;4$Ij6wsG%Cs+r-W=M3b>S^zSu$y|M=ZO+HYcy(;CfMGz$lH3785lc3r0M9S z)@bX>Oy-2TrSprNlF1NFi>#p?t*+mV=T(p+eZR`msuz>@M3>r-XzN(l)3w_RN4s-G z;w9JI*`GwUGY?Sso!fd?5iVU?fJSKO)SkmMQ<%mvk<8SYLJXzk%;BBh8YH;6t$RyH zn^zh)<2nF!epQA*U`>(P;xZ8ETuXCgGH0Q3f|yD}Ute3Mw&w(y5du}vK%1hwZDV2w z`XjWqo`0&Qo?X3Av1mgX^5X^ix*yx8TV7X#H950Z>JVBkNV44-I^3m=HEmb3VeLqA ztZGj5Y)fv3#y86#=6zLHSLcrY&VCLQx)-A|w)b8o%BwMhN(9}Cw*G{pLo<=A?(OSt zOX@++H?As;_Xb*}Ee1&n^3cN@2Osyvr$HU1!*G+hgF=>4F|<)sy~8Cv zOHibj`X)o<92vY)0~irnj@qO?B_vI#hRQKp`pu~1*-Q!30$hwV{r0wjewcgiNT=5d zd}V=FPGZWLvdV)oq;uy$!gM-kDaTok8nsm9pxqTL2jMMSIhYl@Rm-~)yVd$$%w^Dt z*KJ+h+1H=+`haTLC`K^q9%iLm650jqhqO42VRlJBhe$JHg2~)F0Mn>3(cak&i=+`M zqouPuA&YRVC3J5ojMfI*`%M3&rNyVOx7Tl9vQpdxRr^36>&HVdSh%5KIxc&a;}`Q* z)tlF}id@^qWkcO$v;jqiP5pW~u|onz8DYi%_h?3icc=CB{U0M*!fo|O1+tc0$6G{etS*3%GJ&;hV+qz&~i{?eQC9&J$P2(Q@E(LLx za?-kqMr6!|vr-}pQCv}xCol}Z2;T-iH-POf2_Qzl=>#OMY6)gePvPe;E|oh=D09-zB})qAOa;)d>l;FC6Z=;Nv;?#OG_Vxe9r+mIF_w`} z2%OQ?ObOk}Bz;4_&RBhF7Sbv&H8^!D?6gp?UG>+ev}oVLk)Nhz*|J*J0INQg-mD+` ziBk!*c|Z-~ry)Z!qiN$a9QrYHl&PaJDxi*J)lt_5?2vvL0NBj*h~XF?f_7hIBBAPq zEKNT34p~}=X6pnyX-mamgJaZ443#b`bsSogn3HT7U=x$3pQ`8FO7td|sh!fD^hz5a z=uh@`o3wPPQZU{S=dw#HNBv5Fl(gUs8A^%Z82lR&Tg@5;4Ft}oV0~=scjTg9WJ0YQ zrZEw`RT#&&rmY7iOrOG3QHCbGJ84|d)w@M(4h~FeB^H>mPbQv-nex!1%YEAz(Jp*d#)oTQ!Lj}7Q9lM2l5u-zm>RH*=pUfEU zx23owXc%aN(~aSbN&VZr@m#laFT^VVXf157iO4EFRC`K)1pDEcDPJr2xVO` zDs$>-L$|@L;EtW&m?Uk+P%}vR!qAd1dG?D#Qu0wqHKieUVwohJn{QMZ9m5x-hnMu& zO+6dhdbVjh!j}P`(LAbP&UiICEeG$7W1}LvRqjj1>@JSxHF`7iEa9*NN2S5t#|GV6 ze5v@<)M)yFEzm-Wl4h*C*Tznw3mP$)qZc(F)`2%EBL#swn&+qm_g|%-}xp z6{|b04>!8gxfNl+KwFqC2LG(w#E(l^Zo}eaTBZ zv0AjMr$byy996-CGq4(aVE;9C_QSB>%`urXc@A3be#1v~at&sOYhGbNh-Y}zuC^{r zrLM-EuYr`aJhIfUO-HQvC%0>Fx1Jc%D(vk??8MbO)E2Y6+=*2^XU%v3x6OLF6M)HZ zJ5H*0t6p%yXxF9My!Fm5Sw~boSS(>=)zhYuX6YJ}2Nt1om+HZ~s?4O^HFXU0D&g)9 zVXd8;E$v(|){{e%Nv6b|F1=~*TaHmOCy}*7PaR*Gz&K0`54#*&xrhK83OqYJE-KlX z#MyvkuRgqyP&@QGOIPnz&7IxI{&sAFXdfm#=A@A~uTe>{)327Y>=w9{`!7;sJKB<% zB=*24UvivcN&p6=YW{rcv03S22d|ujTZL2sFeAi?Brrcv>&IAaMH^y zXuTeJmu=a+dA4e!7$sLS@x^4l!=p6mv-wWeio#@&VOg=EX2yH*%Fj_sF@8w7fL6h)#J<+xpsdgR)BSNQ=r%)?n&xR znpM~s>g`)W;czPMNq1BL^e(2c4Sm~iETJb!o$DGYs$s{DL{A5GufhVBPaW$3RWG^G zN>1UPTbbzT>Zuk0*p{b2mcJ2^DBN{CU zZX}t338!3*b%+Llr52>^y-UoMdUe)Mr`Gi1=nA)6o7kv(rP0WMi!o3lxrBju<>L?A*T29{5qKFvNum8V;3xpe`nBoI%|e5sBf8!9u!KI<*V`HL! z`^E&rS=exBsH=LTI+&%! zDQ|5lZ(Gtu+kt$vYb&dRd#Nt{irwUf_fZ>$%Q`3^*PKW@uU6}fD^OtdhRkgc%W$gA zKh9)erX!vNVd6+L#O3r%^1T3iNS-{L^TVJ0AsVAdP}Y4E!{xh0!$g zQYhx38qo53uQJWV^@GawqkOI(wc`3Slml6G#uTGq{ja_eh@tOrm_qmKaVYu~PKKzL<6kA9R?6gIc`b=XEIA58Y0Dc-sP>{ZBqjjK7t zJWer~-3@llqOETm=R3}Bx|!AXD>*WQb7)s4Opw@_Exmenz=gP7Z5S8KcCKTNN^-v0 z3iZ}I($~HLlG8W;X1Xo+<`I zXu>;|rB4f)cBPLI@C8lMdqJtZ7nI9;slx=Zv3CGfrHo@Ho!H4hh&dJ2(u-Npf;!HH z09$%5(H`S8baXHTs+|bqV20|PIAC@b>&EBJRehU6zJ@(o@j-KoO-&Zii*C0;8B*s# zy8KBfQg`owsCh8Tfx#+8e?PYT>fP~P)2F`6BEhHy3U(SS-O9WkwIMHJ6Npdx572sT z-)$friN@Y;+;z}vd+3Tdk;cWnm00C*b70mm6MbuYdoICrC^ZnJlZ9bP%Y8vodd7ir zIy(irnDW{$I|lV;>wp0ZxQ}4at{|b=Tz@;vKP*JAGbiM>!H#kKqOYL(xb;9@P+{*( zkwZDiv}ofFteHC8N-2w}-c1&otop7?ZJ*=Aed>uHz@2S= zCFKKZ4qSfocrILZZYrMP#4~&z++4VI#+^_4`7QWnUIKjDu$Pg<_kw!yRTIYYb05t` zz3cx?tXy1**^V!IByf9tiKM}tsBzs$JBiep5B$7$`9DcJrwepj5krmXLw>g*9{eF4 zONAPc{|BsH8QGUZa`-H6NgHpIgr9+b8lRK37R+6BzZHgM=f3Y{8Pp(Uqt zoJlHb@i9&aJorny0R8$;;;o}AVa#W%z>Cd8Ev$Aw*1mO@O{0q;Zvm zP!?*Oet#dn<|yxhS>QGe@uuNxkSgnZe9KV<@W~)>I}g4q@Q^pZOrWyr@x@0Kzylvc ztMJUkTZO#sfo~7KCPZq+S;y8jnYD8b@_58wjcZkz_lH`RcUHF<98@KQLi16uF9_l?N%u-+Y?f@)I6Q$2k<>2uU9** z#Yy=C_^y{P{h}4%7e}wsEh3IDer;7MU$+|^Ek!-DWNO|31F&3$XnW#2`h9%^9coyyjs}Wy!BsazUwaEWA zl+dY9Rp7|PYrAS5+Zc6oC*(ug1in>_88GrrTZI;g(?(WHF1umbz4JJ1F=}aM`V~?p z_8e?MAa#rRvNag4+_D2~>r)Q?6m8AQnw%F9-cSh&Wv5`-C=9o^4Ih&NpN!t=K zzAwzoC6$V8izV~yK{ex@#9M)OqNZl1q}@wxO5SIa>_)VQEwHq4I7+1Uc9PY!)Tl{a z1M@Sddl^#2Ru<^qY3rq>&yk6m2Q4i_D`*4->orX~WN5<|g3m4~cM?3Ahb<^2d$Gz; z7Y?-}E#})lzKQfQXoS)6JpF-tU6lCS#Nlk9)1=~$m#IZL>3DRiG+pjKeVL)vdZEZy z5p^du49DcFkPnXZDxZ3r^BNa3W(}zH%uh9)&E~GgcuXovw+|dRbD^Cz9h}a=qphtO zuC-;2qqXMItBGDJaT&$8iS4T@wDs)tHCoR!hI~3sVF0gr;^_MdZ@KW^Pu|>=|H>nM zD*TmeHod#JZsdk=Q8dqv=0tO{i=u^Afr2whJ2CCVwNnXaJZX!fW8u{>R1|Hs3sekD z=oVO@XicF2yB5tLshvDK5|L=JXb#-Lhk>Sh)VPls_hBnqr19DvG5D9@=79b;k{&7k zXhPnEE2UvZ;28>A(V;?Q0BP8Cj#@Ti4#gxUeR0=U>2MpWu?j35hour8jr7!jSsf$I zwqx)i;h}n+m7z+(Xx0p)uUc?<@P#b^%78C5d}+o@1nz7kYF^3CL06}uov6a6%kXI> zA4=3^+JTobQdV6xQAxn5tRV(75xNYjbZf~)#nMsLsVFjF4(O&Nz7I&|M6z`wUVO!4 z7$eXn+7!=0liCsVVMovhbqz$cyd%+}gY;F}jxXl=s>SCpI7&||YU-H7=?IcW{YP_h z5i*+%edq|im7X`|d8@TI{4f9h>9Vh!x#+6Uc*`n-yu#xxn{FgqS1m76}r*(M>p$h4wVlz=iq)_KL1uK-)+*hrDB!kpMIYLYy3qx13 zNlzd^B*O_Z`cqIheDX?3IjkTf;E|pGYr-Tm(+%52f+04)2Q2uO-f**@Uhi3a> zI6B}4IFbCpkF#zEZ$-&<1$lCxkS2E_v$Mm&YN-Egy&{waDMTWGkw~~$#G0vgCb4N` z3Mh0MxW9%cvCU+n4k{}WLw|`x2XE5?V9S~u4_c7|r{>vG-7XU;8Wol&J!vePt{Wp5 zhjORPFxKckI|BWOH~t5gVsBOIrq zLyfU0beFuNRQ1$iLyZv!rAfw8p|}xJqSwWwUFHO{ql0%8L;E?Lnx$!CtOCQqJ2Qmr z(;-xpMbRSBbAue2MbC*(YL9vcSg<|hC^=2WN)@9(+PW8$b^^KwLx02E{1NGtL9h7` zP|5kIV&$j=bRcRzoep(`AlOxyu!{g5d4N_xHS+O1iNoI2C|8F)SIF0nL>B()Cf7W(;8jgiIN4yLFY4X{{rXLu)*;j^R-&8N!L< ztw0I_61f%lT(%GBFNifCaVWqyf#$$arij6q=qTSZjEGfiPv16rqgJ1sO z=kecryFY*M{#^DINh{)b!(rE(o9lW*A=jIe<9f%8alLtYu6OL%h;$-1P2VdMjp%xY zB~+9@_ytN*JCHwfGa3y!VNCcbtPhBfZUi+)!RUHr&9M?v5E5tTNHm9W=tea2!N)-D z)Rqh^(!Yz?3!_E42T-*tszb%ml14PFkQg2tnj*#tWRRIJ8S) zRyAQR;<5#TRCoRnsA}E$>0|U5X=0j2qBcs@#xZd=F;QS3VaFE#INj?J~sOUY!_iUY!`NVC^F=VlpdL zQ9uQ+s|iM$m!S?2YE>?#4e}cnLx!Hg`#ACBI(Q<(cAtMEj%(`9>i8~95dWuF)&~dw zyE*;;dSTtK(8bOjOX+Ks1AAJ8OS2fYpiS85V$VAtjVD?Yoi7-uw#CLv(`!1V>tFUf{^4z{w6L*n^LvyWEan2!jb@hhs4eIHhCJ z8A_v=-^>WaVqx?Lys(MG5#EB9dD)bXkrPqJVl$Yg@8Si0C@>0*by zE_M)83*=I|*g+2S*Xw?DP*ei4<3>Fy42}tdqXLh4QICvqdMDHkCOw8DG>>L?1XHAF zek7QkKlpfX0jwWPsW3>yfQb%1LGVC75N1K;RZF zY1B;q;Ge0+!h^&3)iD(uRQPl}LTmuMZ`jx{2fyrry--W7i9hwF%XZg1{l>LxKV9{~ zEx#xZ*FJaI{d+(6%yn;03_kwT`d@B3a^FRty{r1XkN^JouiicK>Mfu8+P43^e$w(w zW4YDy9^JP2^Al%WdGh9+_ni3soiBX-SD~M^x6N+udTRL&b>N!G2jBDh)2jpP+GoD> zv-_U;;V&P$TU|P{>*iad;g0t%x$9)j-ar57jaND>wYdcsK;m+YCVo|CS66&XBHo7^ z1G^F(wQ-zYi6^%w;yfbU*>0$&<5Z7)_j-D~w@-p`DqeqYJFbsm#XS;ibOm#vl!GB^ zW{3@K6ZIQHt>@$qjSYk>8#C}KVmbSWO@g7(s@pFH4fY9i$ec(h5Y2Z2gjqBnLdPUq z&t{|fcAiuvX4f=Fd`3K9Wt~8Wgj6sRiJ@nOEG{!4;e5_-jWI67ItPfR6VLY&2QHeA zE~3rzXnrgUKj(!`i5^Vun9X43R2s_)*??nxTw{7k3nY0Vj5jD?J{E$0lO2-Wa_s`~ z(Pwi*S#%egnv09^c~S>l5J=*P!vFKAeWoqgc(k~hW87#Qw;}GBnhDc zgU*Vc$2kQoEeQ0yh>iS18o+}rD-^J8I}{2=&$A<35356z37O|^VXTbF)i8l97q>l6~Av4MbU!L*hy zaQHG*l@+o8MU8V_4XXrGao`3&9)#S{icmJ^e10%$M8*LaH!cWFGm>0?t z(N@7y3PZ@@u*+$V4w+*Tn!{9C%vMe+Tq}Brq;k3MQ;ES zO)wTgRW(G1R(ZXXCZ}}eptL=R2s3ltEhG^)TraT|va2C&qFoQQ2AZg&EU-4s)@!;y z-*jh&4``ZXUN>ea71DO$=;|A?XAeFtXuH75!<-<3MZ5wF?Hueh{TOD{5Md5tB*Lkv zGlS=B2(iQvU`I#&poFZeE;wMMk&|QwH}oDSHNptzo)QKNWEjsj9L@FB9UrB`dD2EsA1>qpMLw{xBqw_&dV*h(>Q>P|c zi^wv{sf7t#f-V`V%Vnz@9HEyJvc@cmCX%kKGJKh1z95E*D4cg3Ngu~%^(V-7w z#Nh6M*(uRluLbEwOz9BD1t;oE?g-eWz3Flyj%s+ejil?b=&H4(5;HGAUbJP zOrG-G2X`E@;V%pDLtF+Q!;U3B^eoUY^|5U0z}`UZNJ|4)_m%of2Z&-NMVTnpv24f) z5n@V-`9&brtMD=T*O6^3*`x?pQ`=)GW0SzRlo(u2GxBmvq7xXK>*bb%unBg1KC{9M zQ5FZ_x_hbqfEx|LAY636F751q!=Xz?5RO)R$BXXPLxw@Hkf;i6yYYps=uMLgU3%_( zUJYIorR$Fuxs0kN*cW9A)^(WKce3pS1|HDPPZ(>7(V7 zkF_SOxmGJ!bFd3;9gE(#x6qK*pdIOglNgd?)1hZ)%eH<#rTpH3$)Ozu!xd6Miwd5vRUDX(?%S_vHsenac6Y~cr$l&#;x z&O7@!!gHPXT>Tz$-l;GVp5wf;%J4qMc^{+SksG$IW{cJX!pA!AV=3VET+kG~4+?l4 z-2EQzei2Ev@W>W_jrhajpDq4e@z;qzB>qL>&k=vU_{WHUx%l(M-zfgEV=1l+#m}Wx zzBQY-`_aUPu6I^AMay_An~?wB_0TEWMMIHxwjMQtNbdS4g+BOG5qb+ethDVQ(IctR z7JDx{-6Ezr^}MyJsu=@fD>l=aanm_Vp9rB2SZ_LFW z&~n3`c0RJ}C|mOy(HSJssO-azaVmTSJ_>~y)na0Sh+*;?!)#I?9um;xjRA+JTEj9tKUmlQFBTiNQe1kZo>; zG-0h58%B0?r>sQCRP+#x*%(%GP~N7PmQE?xWY;ilPA_!Y^m%F9c37va(N3AJ2NBD5 z3tZi#ZghR@GrkVUh@5uEV$d98X|0FHV)_&wo2{tOxil1p3rm>}XmW)nmo)gbP-~35 zj^XPVG#9<7jI?Fp7s}W{QRuYRhi+#QoT{SYhi>Oa9jZH}>SZ=@dp1@9BGLRw5ar;V zpo|VZaMq&9Q}{5yzo85}`Dx65*y zBy_;=JtA+nJ8xX8gh7oKfH@u5VV#atTn?zOex_u=|$af7ZG_kiW=aUD*e`4&!SZtZOT!?}7ch5U#!C&=hWIb0@r z0{^AZgHHjE`R3qLSRLf5GRQgGJ18YM=*UUlhEv`Sr@YPH+FkV$EzG?G8`3sgFNs5Y#tL-^>;7?W_O23e+6g;&Y# z5q4)zmT=|?Yw@K45i(w>FLJO_h=oY36bAAwmFK@RsMO__x(r__iT7@eo0Vr=a*emU z9}nzz(7?o#y>b5FR=l_8oMi6~#@U7MTH&i{@d12NDxSn=vf}P9LiJ<0I!o4DLy&9& zCus956`JEz3d9XO{@@AIg^`Tq*%o`krMOj$+n(-ySGknmuUBp>K5sXZmNoT$JkQ;1 zspocD*a&Fccw5fpznoBW&&r4X_*l-V$@>m4M#qv(E2Y4j{KbBom)hGH9@^s0PT^6C*6g3E*rMg0qmYRe+L3}@V;AZRGR@;;oR^>)r1qm zYw_L$xEg-`JrVrFTimkJ4>7tu;nt%31p&1tG6*=0cr0+`32ENh;VmWJKiJA!8~CeK zjMair-dgCFlk@Iv5}|lFcm_-@{?MqjRjiBHy2cF3HZd8%( zY`47_HXAz2;V1pIibg!hKJq-J*D)&)ypZZ|_3Xrq!YPpK16*^}C-cfQHZwzHP?Z0XmF40+ - - - SharpTestsEx.NUnit - - - - - Assertion for . - - - - - Verifies that the given throws a specific . - - The specific expected . - The given to execute. - The . - The does not throws the expected . - - - - Verifies that the given throws a specific . - - The specific expected . - The given to execute. - A message to display if the assertion fails. This message can be seen in the unit test results. - The . - The does not throws the expected . - - - - Verifies that the given throws an . - - The given to execute. - The . - The does not throws an . - - - - Verifies that the given throws an . - - The given to execute. - A message to display if the assertion fails. This message can be seen in the unit test results. - The . - The does not throws the expected . - - - - Verifies that the given does not throw any . - - The given to execute. - - - - Verifies that the given does not throw any . - - The given to execute. - A message to display if the assertion fails. This message can be seen in the unit test results. - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Verifies that the specified object is null. The assertion fails if it is not null. - - Type of the actual value subject of the assertion. - - - - Represent a Assertion template where the real logic is delegated. - - Type of the actual value. - Type of the expected value. - - - - Initializes a new instance of the class. - - - - - Verifies that two specified generic type data are equal. The assertion fails if they are not equal. - - Type of the actual value. - Type of the expected value. - - The comparison is done ny the base . - - - - - Initializes a new instance of the class. - - The value to compare. - - - - Verifies that two specified instances are the same object instance.. - - Type of the actual value. - Type of the expected value. - - - - Initializes a new instance of the class. - - The value to compare. - - - - Extensions for constraint over object instances. - - - - - Verifies that actual is the same instance than . - - The extented. - The expected object instance. - Chainable And constraint - - - - Verifies that actual is an instance of . - - The expected. - The extented. - Chainable And constraint - - - - Verifies that actual instance is assignable from . - - The expected. - The extented. - Chainable And constraint - - - - Verifies that actual instance is assignable to . - - The expected. - The extented. - Chainable And constraint - - - - Verifies that actual instance is serializable using . - - The extented. - Chainable And constraint - - - - Verifies that actual instance is serializable using . - - The extented. - Chainable And constraint - - - - Useful class to avoid the creation of new Action. - - - This class can be used when the instance of the class under test is no available; - typically to test a constructor. - When you have an instance of the class under test the most appropite way to test an action - is the extension . - - - - Executing.This(() => new AClass(null)).Should().Throw(); - - - Executing.This(() => new AClass(null)).Should().Throw{ArgumentNullException}() - .And.ValueOf - .ParamName.Should().Be("obj"); - - - - - - Basic contract for a generic constraint. - - The type of the 'actual' value subject of the test. - - - - Verifies that the throws a specific . - - The specific subclass expected. - Chainable And constraint - - - - Verifies that the throws an . - - Chainable And constraint - - - - Verifies that the does not throw any . - - - - - etensions methods. - - - - - Find the first position where two sequence differ - - The type of the elements of the input sequences. - An to compare to second - An to compare to the first sequence. - The position of the first difference; otherwise -1 where the two sequences has the same sequence. - - - - Useful extensions to test s. - - - - - Returns a sequence of all Inner Exceptions. - - The root - A of all Inner Exceptions - - - - Returns a sequence of including the root and all Inner Exceptions. - - The root - A of including the root and all Inner Exceptions. - - - - Constraints for . - - - - - Verifies that the throws a specific . - - The specific subclass expected. - Chainable And constraint - - - - Verifies that the throws an. - - Chainable And constraint - - - - Verifies that the does not throw any . - - - - - The instance thrown. - - - - - var ex = (new Action(() => new AClass(null))).Should().Throw().Exception; - - - - - - - Chainable constraint for - - The specific subclass expected. - - - - The thrown. - - - Allow an readable chained way to begin a new assertion based on one of the properties - of the expected - - - (new Action(() => new AClass(null))) - .Should().Throw{ArgumentNullException}() - .And.ValueOf.ParamName - .Should().Be.EqualTo("obj"); - - - - - - - The instance thrown. - - - Allow an readable chained way to begin a new assertion based on the itself. - - - (new Action(() => new AClass(null))) - .Should().Throw() - .And.Exception.Should().Be.InstanceOf{ArgumentException}(); - - - - - - - Assertion information. - - The type of the value subject of the assertion. - - - - Subject of the assertion. - - - - - The assertion is negated ? - - - - - The title of the assertion ("message" in MsTests terminology) - - - - - Constraint over boolean values. - - - - - Constraints for boolean "Should Be" - - - - - Verifies that actual is true. - - - - - Verifies that actual is false. - - - - - Negate next constraint. - - - - - Constraint over object instances. - - - - - Constraints for object instance of a specific gine . - - The of the instance. - - - - The actual value - - - - - The actual value - - - - - Constraints for object instance "Should Be" - - - - - Verifies that actual is equal to . - - The expected instance - Chainable And constraint - - - - Verifies that the is null. - - Chainable And constraint - - - - Verifies that the actual is an instance of a specific type. - - The expected . - - A for the instance converted to - the specified type to start a chained assertion. - - - - - Constraint over instances. - - The concrete type of actual value. - - - - Constraints for instance ("Should Be") - - - - - - Verifies that actual is equal to . - - The expected instance - Chainable And constraint - - - - Verifies that actual is greater than . - - The expected instance - Chainable And constraint - - - - Verifies that actual is less than . - - The expected instance - Chainable And constraint - - - - Verifies that actual is greater than or equal to . - - The expected instance - Chainable And constraint - - - - Verifies that actual is less than or equal to . - - The expected instance - Chainable And constraint - - - - Verifies that actual is included in the range -. - - The less aceptable value. - The higher aceptable value. - Chainable And constraint - - - - Verifies that the instance is null. - - Chainable And constraint - - - - Verifies that the is empty. - - Chainable And constraint - - - - Verifies that the is null. - - Chainable And constraint - - - - Verifies that the is empty. - - Chainable And constraint - - - - Verifies that the instance is null. - - Chainable And constraint - - - - Collection information to build the failure message - - Type of the actual value. - Type of the expected value. - - - - The actual value under test. - - - - - The expected value of the test. - - - - - The name of the assertion - - - "be EqualTo" - - - - - The user custom message. - - - - - Extensions for any System.Object. - - - - - Allow access to a private field of a class instance. - - The of the field. - The class instance. - The field name. - The value of the field. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Should. - - - - - Looks up a localized string similar to Be. - - - - - Looks up a localized string similar to <Empty>. - - - - - Looks up a localized string similar to Can't access to a field of a null value.. - - - - - Looks up a localized string similar to The class {0} does not contain a field named {1}.. - - - - - Looks up a localized string similar to The class {0} does contain a field named {1} but its type is {2} and not {3}.. - - - - - Looks up a localized string similar to Can't check serialization for (null) value.. - - - - - Looks up a localized string similar to Expected: {0}. - - - - - Looks up a localized string similar to Differences :. - - - - - Looks up a localized string similar to Values differ at position {0}.. - - - - - Looks up a localized string similar to Not expected exception message:. - - - - - Looks up a localized string similar to Strings differ at position {0}.. - - - - - Looks up a localized string similar to Found : {0}. - - - - - Looks up a localized string similar to Not. - - - - - Looks up a localized string similar to (null). - - - - - Looks up a localized string similar to Be Assignable From. - - - - - Looks up a localized string similar to Be Assignable To. - - - - - Looks up a localized string similar to Be Binary Serializable. - - - - - Looks up a localized string similar to Be Empty. - - - - - Looks up a localized string similar to Be Equal To. - - - - - Looks up a localized string similar to Be Greater Than. - - - - - Looks up a localized string similar to Be Greater than Or Equal to. - - - - - Looks up a localized string similar to Be in Range. - - - - - Looks up a localized string similar to Be Instance Of. - - - - - Looks up a localized string similar to Be Less Than. - - - - - Looks up a localized string similar to Be Less than Or Equal to. - - - - - Looks up a localized string similar to Be Null. - - - - - Looks up a localized string similar to Be Ordered. - - - - - Looks up a localized string similar to Be Ordered ascending. - - - - - Looks up a localized string similar to Be Ordered By ({0}). - - - - - Looks up a localized string similar to Be Same instance As. - - - - - Looks up a localized string similar to Be SubClass Of. - - - - - Looks up a localized string similar to Be Subset Of. - - - - - Looks up a localized string similar to Be Xml Serializable. - - - - - Looks up a localized string similar to Contain. - - - - - Looks up a localized string similar to Not throw. - - - - - Looks up a localized string similar to Have Attribute. - - - - - Looks up a localized string similar to Have Same Sequence As. - - - - - Looks up a localized string similar to Have Same Values As. - - - - - Looks up a localized string similar to Have Unique Values. - - - - - Looks up a localized string similar to Have Value. - - - - - Looks up a localized string similar to Throw. - - - - - Looks up a localized string similar to Throws an exception. - - - - diff --git a/lib/net/SharpTestsEx_License.txt b/lib/net/SharpTestsEx_License.txt deleted file mode 100644 index da3dc935e5c..00000000000 --- a/lib/net/SharpTestsEx_License.txt +++ /dev/null @@ -1,31 +0,0 @@ -Microsoft Public License (Ms-PL) - -This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. - -1. Definitions - -The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. - -A "contribution" is the original software, or any additions or changes to the software. - -A "contributor" is any person that distributes its contribution under this license. - -"Licensed patents" are a contributor's patent claims that read directly on its contribution. - -2. Grant of Rights - -(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. - -(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. - -3. Conditions and Limitations - -(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. - -(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. - -(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. - -(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. - -(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. \ No newline at end of file diff --git a/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.build b/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.build index 78668b557c5..393e45848cb 100644 --- a/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.build +++ b/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.build @@ -25,7 +25,6 @@ - diff --git a/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs b/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs index 4d35bbbdb56..35d7295c299 100644 --- a/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs +++ b/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs @@ -15,7 +15,7 @@ public void NotConfiguredProxyFactoryFactory() { var bcp = new BytecodeProviderImpl(); IProxyFactoryFactory p = bcp.ProxyFactoryFactory; - p.Should().Be.InstanceOf(); + Assert.That(p, Is.InstanceOf()); } [Test] diff --git a/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs b/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs index 5202bccc2b5..e09db5cfbbe 100644 --- a/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs +++ b/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs @@ -13,7 +13,7 @@ public class AccessorsSerializableTest [Test, TestCaseSource("accessors")] public void AllAccessorsAreMarkedAsSerializable(System.Type concreteAccessor) { - concreteAccessor.Should().Have.Attribute(); + Assert.That(concreteAccessor, Has.Attribute()); } private static System.Type[] setters = typeof(ISetter).Assembly.GetTypes().Where(t => t.Namespace == typeof(ISetter).Namespace && t.GetInterfaces().Contains(typeof(ISetter))).ToArray(); @@ -21,7 +21,7 @@ public void AllAccessorsAreMarkedAsSerializable(System.Type concreteAccessor) [Test, TestCaseSource("setters")] public void AllSettersAreMarkedAsSerializable(System.Type concreteAccessor) { - concreteAccessor.Should().Have.Attribute(); + Assert.That(concreteAccessor, Has.Attribute()); } private static System.Type[] getters = typeof(IGetter).Assembly.GetTypes().Where(t => t.Namespace == typeof(IGetter).Namespace && t.GetInterfaces().Contains(typeof(IGetter))).ToArray(); @@ -29,7 +29,7 @@ public void AllSettersAreMarkedAsSerializable(System.Type concreteAccessor) [Test, TestCaseSource("getters")] public void AllGettersAreMarkedAsSerializable(System.Type concreteAccessor) { - concreteAccessor.Should().Have.Attribute(); + Assert.That(concreteAccessor, Has.Attribute()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs b/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs index 0ce9b2da27c..6eb619e5c95 100644 --- a/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs +++ b/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs @@ -45,15 +45,15 @@ public void WhenSubscribedToBeforeBindThenRaiseEventForEachMapping() var listOfCalls = new List(); var configuration = new Configuration(); configuration.DataBaseIntegration(x => x.Dialect()); - configuration.BeforeBindMapping += (sender, args) => { sender.Should().Be.SameInstanceAs(configuration); listOfCalls.Add(args); }; + configuration.BeforeBindMapping += (sender, args) => { Assert.That(sender, Is.SameAs(configuration)); listOfCalls.Add(args); }; configuration.AddXmlString(ProductLineMapping); configuration.AddXmlString(ModelMapping); - listOfCalls.Count.Should().Be(2); - listOfCalls.Select(x => x.FileName).All(x => x.Satisfy(filename => filename != null)); - listOfCalls.Select(x => x.Mapping).All(x => x.Satisfy(mappingDoc => mappingDoc != null)); - listOfCalls.Select(x => x.Dialect).All(x => x.Satisfy(dialect => dialect.GetType() == typeof(MsSql2008Dialect))); + Assert.That(listOfCalls.Count, Is.EqualTo(2)); + Assert.That(listOfCalls.Select(x => x.FileName).All(x => x != null), Is.True); + Assert.That(listOfCalls.Select(x => x.Mapping).All(x => x != null), Is.True); + Assert.That(listOfCalls.Select(x => x.Dialect).All(x => x.GetType() == typeof (MsSql2008Dialect)), Is.True); } [Test] @@ -62,15 +62,15 @@ public void WhenSubscribedToAfterBindThenRaiseEventForEachMapping() var listOfCalls = new List(); var configuration = new Configuration(); configuration.DataBaseIntegration(x => x.Dialect()); - configuration.AfterBindMapping += (sender, args) => { sender.Should().Be.SameInstanceAs(configuration); listOfCalls.Add(args); }; + configuration.AfterBindMapping += (sender, args) => { Assert.That(sender, Is.SameAs(configuration)); listOfCalls.Add(args); }; configuration.AddXmlString(ProductLineMapping); configuration.AddXmlString(ModelMapping); - listOfCalls.Count.Should().Be(2); - listOfCalls.Select(x => x.FileName).All(x => x.Satisfy(filename => filename != null)); - listOfCalls.Select(x => x.Mapping).All(x => x.Satisfy(mappingDoc => mappingDoc != null)); - listOfCalls.Select(x => x.Dialect).All(x => x.Satisfy(dialect => dialect.GetType() == typeof(MsSql2008Dialect))); + Assert.That(listOfCalls.Count, Is.EqualTo(2)); + Assert.That(listOfCalls.Select(x => x.FileName).All(x => x != null), Is.True); + Assert.That(listOfCalls.Select(x => x.Mapping).All(x => x != null), Is.True); + Assert.That(listOfCalls.Select(x => x.Dialect).All(x => x.GetType() == typeof(MsSql2008Dialect)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs b/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs index d318fb4bda1..fbaabb6c1fe 100644 --- a/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs +++ b/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs @@ -29,7 +29,7 @@ public void InvalidConfig() public void FromAppConfigTest() { IHibernateConfiguration hc = ConfigurationManager.GetSection("hibernate-configuration") as IHibernateConfiguration; - hc.ByteCodeProviderType.Should().Be("lcg"); + Assert.That(hc.ByteCodeProviderType, Is.EqualTo("lcg")); Assert.IsTrue(hc.UseReflectionOptimizer); Assert.AreEqual("NHibernate.Test", hc.SessionFactory.Name); } diff --git a/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs b/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs index 44315a518c8..a3c6be54418 100644 --- a/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs +++ b/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs @@ -34,29 +34,29 @@ public override IReflectionOptimizer GetReflectionOptimizer(System.Type clazz, I public void WhenNoShortCutUsedThenCanBuildBytecodeProvider() { var properties = new Dictionary { { Environment.PropertyBytecodeProvider, typeof(MyByteCodeProvider).AssemblyQualifiedName } }; - Executing.This(() => Environment.BuildBytecodeProvider(properties)).Should().NotThrow(); + Assert.That(() => Environment.BuildBytecodeProvider(properties), Throws.Nothing); } [Test] public void WhenNoShortCutUsedThenCanBuildInstanceOfConfiguredBytecodeProvider() { var properties = new Dictionary { { Environment.PropertyBytecodeProvider, typeof(MyByteCodeProvider).AssemblyQualifiedName } }; - Environment.BuildBytecodeProvider(properties).Should().Be.InstanceOf(); + Assert.That(Environment.BuildBytecodeProvider(properties), Is.InstanceOf()); } [Test] public void WhenInvalidThenThrow() { var properties = new Dictionary { { Environment.PropertyBytecodeProvider, typeof(InvalidByteCodeProvider).AssemblyQualifiedName } }; - Executing.This(() => Environment.BuildBytecodeProvider(properties)).Should().Throw(); + Assert.That(() => Environment.BuildBytecodeProvider(properties), Throws.TypeOf()); } [Test] public void WhenNoDefaultCtorThenThrow() { var properties = new Dictionary { { Environment.PropertyBytecodeProvider, typeof(InvalidNoCtorByteCodeProvider).AssemblyQualifiedName } }; - Executing.This(() => Environment.BuildBytecodeProvider(properties)).Should().Throw() - .And.Exception.InnerException.Message.Should().Contain("constructor was not found"); + Assert.That(() => Environment.BuildBytecodeProvider(properties), Throws.TypeOf() + .And.InnerException.Message.ContainsSubstring("constructor was not found")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs b/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs index d6147be3933..40a72b1c4b8 100644 --- a/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs +++ b/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs @@ -39,29 +39,29 @@ public void FullConfiguration() p.ProxyFactoryFactory(); }); configure.Mappings(m=> - { - m.DefaultCatalog = "MyCatalog"; - m.DefaultSchema = "MySche"; - }); + { + m.DefaultCatalog = "MyCatalog"; + m.DefaultSchema = "MySche"; + }); configure.DataBaseIntegration(db => - { - db.Dialect(); - db.KeywordsAutoImport = Hbm2DDLKeyWords.AutoQuote; - db.Batcher(); - db.BatchSize = 15; - db.ConnectionProvider(); - db.Driver(); - db.ConnectionReleaseMode = ConnectionReleaseMode.AfterTransaction; - db.IsolationLevel = IsolationLevel.ReadCommitted; - db.ConnectionString = "The connection string"; - db.AutoCommentSql = true; - db.ExceptionConverter(); - db.PrepareCommands = true; - db.Timeout = 10; - db.MaximumDepthOfOuterJoinFetching = 11; - db.HqlToSqlSubstitutions = "true 1, false 0, yes 'Y', no 'N'"; - db.SchemaAction = SchemaAutoAction.Validate; - }); + { + db.Dialect(); + db.KeywordsAutoImport = Hbm2DDLKeyWords.AutoQuote; + db.Batcher(); + db.BatchSize = 15; + db.ConnectionProvider(); + db.Driver(); + db.ConnectionReleaseMode = ConnectionReleaseMode.AfterTransaction; + db.IsolationLevel = IsolationLevel.ReadCommitted; + db.ConnectionString = "The connection string"; + db.AutoCommentSql = true; + db.ExceptionConverter(); + db.PrepareCommands = true; + db.Timeout = 10; + db.MaximumDepthOfOuterJoinFetching = 11; + db.HqlToSqlSubstitutions = "true 1, false 0, yes 'Y', no 'N'"; + db.SchemaAction = SchemaAutoAction.Validate; + }); Assert.That(configure.Properties[Environment.SessionFactoryName], Is.EqualTo("SomeName")); Assert.That(configure.Properties[Environment.CacheProvider], @@ -102,7 +102,7 @@ public void FullConfiguration() Assert.That(configure.Properties[Environment.MaxFetchDepth], Is.EqualTo("11")); Assert.That(configure.Properties[Environment.QuerySubstitutions], Is.EqualTo("true 1, false 0, yes 'Y', no 'N'")); Assert.That(configure.Properties[Environment.Hbm2ddlAuto], Is.EqualTo("validate")); - configure.Properties[Environment.LinqToHqlGeneratorsRegistry].Should().Be(typeof(DefaultLinqToHqlGeneratorsRegistry).AssemblyQualifiedName); + Assert.That(configure.Properties[Environment.LinqToHqlGeneratorsRegistry], Is.EqualTo(typeof(DefaultLinqToHqlGeneratorsRegistry).AssemblyQualifiedName)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs b/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs index 0e7ff97a812..d526081de47 100644 --- a/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs +++ b/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs @@ -16,9 +16,9 @@ public void AddSimpleNamedQuery() b.Query = "from System.Object o"; }); - configure.NamedQueries.Should().Have.Count.EqualTo(1); - configure.NamedQueries.Keys.Single().Should().Be("aQuery"); - configure.NamedQueries.Values.Single().Query.Should().Be("from System.Object o"); + Assert.That(configure.NamedQueries, Has.Count.EqualTo(1)); + Assert.That(configure.NamedQueries.Keys.Single(), Is.EqualTo("aQuery")); + Assert.That(configure.NamedQueries.Values.Single().Query, Is.EqualTo("from System.Object o")); } [Test] @@ -31,7 +31,7 @@ public void WhenSetInvalidFetchSizeThenLeaveDefault() b.FetchSize = 0; }); - configure.NamedQueries.Values.Single().FetchSize.Should().Be(-1); + Assert.That(configure.NamedQueries.Values.Single().FetchSize, Is.EqualTo(-1)); } [Test] @@ -44,7 +44,7 @@ public void WhenSetValidFetchSizeThenSetValue() b.FetchSize = 15; }); - configure.NamedQueries.Values.Single().FetchSize.Should().Be(15); + Assert.That(configure.NamedQueries.Values.Single().FetchSize, Is.EqualTo(15)); } [Test] @@ -57,7 +57,7 @@ public void WhenSetInvalidTimeoutThenLeaveDefault() b.Timeout = 0; }); - configure.NamedQueries.Values.Single().Timeout.Should().Be(-1); + Assert.That(configure.NamedQueries.Values.Single().Timeout, Is.EqualTo(-1)); } [Test] @@ -70,7 +70,7 @@ public void WhenSetValidTimeoutThenSetValue() b.Timeout = 123; }); - configure.NamedQueries.Values.Single().Timeout.Should().Be(123); + Assert.That(configure.NamedQueries.Values.Single().Timeout, Is.EqualTo(123)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs b/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs index 5897f0aa645..cc0b2ab4ce3 100644 --- a/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs +++ b/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs @@ -335,7 +335,7 @@ public void TestSignatureNonGeneric() { MethodInfo thisMethod = GetType().GetMethod("NonGenericMethod"); - ExpressionProcessor.Signature(thisMethod).Should().Be("NHibernate.Test.Criteria.Lambda.ExpressionProcessorFixture:Void NonGenericMethod(System.String)"); + Assert.That(ExpressionProcessor.Signature(thisMethod), Is.EqualTo("NHibernate.Test.Criteria.Lambda.ExpressionProcessorFixture:Void NonGenericMethod(System.String)")); } [Test] @@ -343,7 +343,7 @@ public void TestSignatureGeneric() { MethodInfo thisMethod = GetType().GetMethod("GenericMethod"); - ExpressionProcessor.Signature(thisMethod).Should().Be("NHibernate.Test.Criteria.Lambda.ExpressionProcessorFixture:T GenericMethod[T](T)"); + Assert.That(ExpressionProcessor.Signature(thisMethod), Is.EqualTo("NHibernate.Test.Criteria.Lambda.ExpressionProcessorFixture:T GenericMethod[T](T)")); } [Test] @@ -352,7 +352,7 @@ public void TestSignatureQualifiedGeneric() Expression> expression = () => this.GenericMethod("test"); MethodInfo genericMethodWithQualifiedType = (expression.Body as MethodCallExpression).Method; - ExpressionProcessor.Signature(genericMethodWithQualifiedType).Should().Be("NHibernate.Test.Criteria.Lambda.ExpressionProcessorFixture:T GenericMethod[T](T)"); + Assert.That(ExpressionProcessor.Signature(genericMethodWithQualifiedType), Is.EqualTo("NHibernate.Test.Criteria.Lambda.ExpressionProcessorFixture:T GenericMethod[T](T)")); } } diff --git a/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs b/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs index f888671293c..14ddeff05ac 100644 --- a/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs +++ b/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs @@ -52,8 +52,8 @@ public void YearPartEqual() .Where(p => p.BirthDate.YearPart() == 2008) .List(); - persons.Count.Should().Be(1); - persons[0].Name.Should().Be("p2"); + Assert.That(persons.Count, Is.EqualTo(1)); + Assert.That(persons[0].Name, Is.EqualTo("p2")); } } @@ -68,9 +68,9 @@ public void YearPartIsIn() .OrderBy(p => p.Name).Asc .List(); - persons.Count.Should().Be(2); - persons[0].Name.Should().Be("p1"); - persons[1].Name.Should().Be("p2"); + Assert.That(persons.Count, Is.EqualTo(2)); + Assert.That(persons[0].Name, Is.EqualTo("p1")); + Assert.That(persons[1].Name, Is.EqualTo("p2")); } } @@ -85,8 +85,8 @@ public void YearPartSingleOrDefault() .Select(p => p.BirthDate.YearPart()) .SingleOrDefault(); - yearOfBirth.GetType().Should().Be(typeof (int)); - yearOfBirth.Should().Be(2008); + Assert.That(yearOfBirth.GetType(), Is.EqualTo(typeof (int))); + Assert.That(yearOfBirth, Is.EqualTo(2008)); } } @@ -100,8 +100,8 @@ public void SelectAvgYearPart() .SelectList(list => list.SelectAvg(p => p.BirthDate.YearPart())) .SingleOrDefault(); - avgYear.GetType().Should().Be(typeof (double)); - string.Format("{0:0}", avgYear).Should().Be("2008"); + Assert.That(avgYear.GetType(), Is.EqualTo(typeof (double))); + Assert.That(string.Format("{0:0}", avgYear), Is.EqualTo("2008")); } } @@ -116,8 +116,8 @@ public void SqrtSingleOrDefault() .Select(p => Math.Round(p.Age.Sqrt(), 2)) .SingleOrDefault(); - sqrtOfAge.Should().Be.InstanceOf(); - string.Format("{0:0.00}", sqrtOfAge).Should().Be((9.49).ToString()); + Assert.That(sqrtOfAge, Is.InstanceOf()); + Assert.That(string.Format("{0:0.00}", sqrtOfAge), Is.EqualTo((9.49).ToString())); } } @@ -129,11 +129,11 @@ public void RoundDoubleWithOneArgument() using (s.BeginTransaction()) { var roundedValue = s.QueryOver() - .Where(p => p.Name == "p1") - .Select(p => Math.Round(p.Age.Sqrt())) - .SingleOrDefault(); + .Where(p => p.Name == "p1") + .Select(p => Math.Round(p.Age.Sqrt())) + .SingleOrDefault(); - roundedValue.Should().Be.InstanceOf(); + Assert.That(roundedValue, Is.InstanceOf()); Assert.That(roundedValue, Is.EqualTo(9)); } } @@ -145,11 +145,11 @@ public void RoundDecimalWithOneArgument() using (s.BeginTransaction()) { var roundedValue = s.QueryOver() - .Where(p => p.Name == "p1") - .Select(p => Math.Round((decimal) p.Age.Sqrt())) - .SingleOrDefault(); + .Where(p => p.Name == "p1") + .Select(p => Math.Round((decimal) p.Age.Sqrt())) + .SingleOrDefault(); - roundedValue.Should().Be.InstanceOf(); + Assert.That(roundedValue, Is.InstanceOf()); Assert.That(roundedValue, Is.EqualTo(9)); } } @@ -165,7 +165,7 @@ public void RoundDoubleWithTwoArguments() .Select(p => Math.Round(p.Age.Sqrt() , 3)) .SingleOrDefault(); - roundedValue.Should().Be.InstanceOf(); + Assert.That(roundedValue, Is.InstanceOf()); Assert.That(roundedValue, Is.EqualTo(9.487).Within(0.000001)); } } @@ -177,11 +177,11 @@ public void RoundDecimalWithTwoArguments() using (s.BeginTransaction()) { var roundedValue = s.QueryOver() - .Where(p => p.Name == "p1") - .Select(p => Math.Round((decimal) p.Age.Sqrt(), 3)) - .SingleOrDefault(); + .Where(p => p.Name == "p1") + .Select(p => Math.Round((decimal) p.Age.Sqrt(), 3)) + .SingleOrDefault(); - roundedValue.Should().Be.InstanceOf(); + Assert.That(roundedValue, Is.InstanceOf()); Assert.That(roundedValue, Is.EqualTo(9.487).Within(0.000001)); } } @@ -197,8 +197,8 @@ public void FunctionsToLowerToUpper() .Select(p => p.Name.Lower(), p => p.Name.Upper()) .SingleOrDefault(); - names[0].Should().Be("pp3"); - names[1].Should().Be("PP3"); + Assert.That(names[0], Is.EqualTo("pp3")); + Assert.That(names[1], Is.EqualTo("PP3")); } } @@ -213,7 +213,7 @@ public void Concat() .Select(p => Projections.Concat(p.Name, ", ", p.Name)) .SingleOrDefault(); - name.Should().Be("p1, p1"); + Assert.That(name, Is.EqualTo("p1, p1")); } } @@ -227,8 +227,8 @@ public void MonthPartEqualsDayPart() .Where(p => p.BirthDate.MonthPart() == p.BirthDate.DayPart()) .List(); - persons.Count.Should().Be(1); - persons[0].Name.Should().Be("p2"); + Assert.That(persons.Count, Is.EqualTo(1)); + Assert.That(persons[0].Name, Is.EqualTo("p2")); } } @@ -242,10 +242,10 @@ public void OrderByYearPart() .OrderBy(p => p.BirthDate.YearPart()).Desc .List(); - persons.Count.Should().Be(3); - persons[0].Name.Should().Be("p1"); - persons[1].Name.Should().Be("p2"); - persons[2].Name.Should().Be("pP3"); + Assert.That(persons.Count, Is.EqualTo(3)); + Assert.That(persons[0].Name, Is.EqualTo("p1")); + Assert.That(persons[1].Name, Is.EqualTo("p2")); + Assert.That(persons[2].Name, Is.EqualTo("pP3")); } } @@ -259,8 +259,8 @@ public void YearEqual() .Where(p => p.BirthDate.Year == 2008) .List(); - persons.Count.Should().Be(1); - persons[0].Name.Should().Be("p2"); + Assert.That(persons.Count, Is.EqualTo(1)); + Assert.That(persons[0].Name, Is.EqualTo("p2")); } } @@ -275,9 +275,9 @@ public void YearIsIn() .OrderBy(p => p.Name).Asc .List(); - persons.Count.Should().Be(2); - persons[0].Name.Should().Be("p1"); - persons[1].Name.Should().Be("p2"); + Assert.That(persons.Count, Is.EqualTo(2)); + Assert.That(persons[0].Name, Is.EqualTo("p1")); + Assert.That(persons[1].Name, Is.EqualTo("p2")); } } @@ -292,8 +292,8 @@ public void YearSingleOrDefault() .Select(p => p.BirthDate.Year) .SingleOrDefault(); - yearOfBirth.GetType().Should().Be(typeof(int)); - yearOfBirth.Should().Be(2008); + Assert.That(yearOfBirth.GetType(), Is.EqualTo(typeof(int))); + Assert.That(yearOfBirth, Is.EqualTo(2008)); } } @@ -307,8 +307,8 @@ public void SelectAvgYear() .SelectList(list => list.SelectAvg(p => p.BirthDate.Year)) .SingleOrDefault(); - avgYear.GetType().Should().Be(typeof(double)); - string.Format("{0:0}", avgYear).Should().Be("2008"); + Assert.That(avgYear.GetType(), Is.EqualTo(typeof(double))); + Assert.That(string.Format("{0:0}", avgYear), Is.EqualTo("2008")); } } @@ -322,10 +322,10 @@ public void OrderByYear() .OrderBy(p => p.BirthDate.Year).Desc .List(); - persons.Count.Should().Be(3); - persons[0].Name.Should().Be("p1"); - persons[1].Name.Should().Be("p2"); - persons[2].Name.Should().Be("pP3"); + Assert.That(persons.Count, Is.EqualTo(3)); + Assert.That(persons[0].Name, Is.EqualTo("p1")); + Assert.That(persons[1].Name, Is.EqualTo("p2")); + Assert.That(persons[2].Name, Is.EqualTo("pP3")); } } @@ -339,8 +339,8 @@ public void MonthEqualsDay() .Where(p => p.BirthDate.Month == p.BirthDate.Day) .List(); - persons.Count.Should().Be(1); - persons[0].Name.Should().Be("p2"); + Assert.That(persons.Count, Is.EqualTo(1)); + Assert.That(persons[0].Name, Is.EqualTo("p2")); } } } diff --git a/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs b/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs index af24a9d3072..d4586697cfb 100644 --- a/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs +++ b/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs @@ -106,22 +106,19 @@ public void OnClause() .WhereRestrictionOn(p => p.Name).IsNotNull .List(); - children.Should().Have.Count.EqualTo(1); + Assert.That(children, Has.Count.EqualTo(1)); } using (ISession s = OpenSession()) { Child childAlias = null; Person parentAlias = null; - var parentNames = - s.QueryOver(() => childAlias) - .Left.JoinAlias(c => c.Parent, () => parentAlias, p => p.Name == childAlias.Nickname) - .Select(c => parentAlias.Name) - .List(); + var parentNames = s.QueryOver(() => childAlias) + .Left.JoinAlias(c => c.Parent, () => parentAlias, p => p.Name == childAlias.Nickname) + .Select(c => parentAlias.Name) + .List(); - parentNames - .Where(n => !string.IsNullOrEmpty(n)) - .Should().Have.Count.EqualTo(1); + Assert.That(parentNames.Count(n => !string.IsNullOrEmpty(n)), Is.EqualTo(1)); } using (ISession s = OpenSession()) @@ -134,7 +131,7 @@ public void OnClause() .WhereRestrictionOn(c => c.Nickname).IsNotNull .List(); - people.Should().Have.Count.EqualTo(1); + Assert.That(people, Has.Count.EqualTo(1)); } using (ISession s = OpenSession()) @@ -147,9 +144,7 @@ public void OnClause() .Select(p => childAlias.Nickname) .List(); - childNames - .Where(n => !string.IsNullOrEmpty(n)) - .Should().Have.Count.EqualTo(1); + Assert.That(childNames.Count(n => !string.IsNullOrEmpty(n)), Is.EqualTo(1)); } } @@ -331,15 +326,15 @@ public void FunctionsOrder() using (ISession s = OpenSession()) using (s.BeginTransaction()) { - var persons = - s.QueryOver() - .OrderBy(p => p.BirthDate.Year).Desc - .List(); - - persons.Count.Should().Be(3); - persons[0].Name.Should().Be("p1"); - persons[1].Name.Should().Be("p2"); - persons[2].Name.Should().Be("p3"); + var persons = + s.QueryOver() + .OrderBy(p => p.BirthDate.Year).Desc + .List(); + + Assert.That(persons.Count, Is.EqualTo(3)); + Assert.That(persons[0].Name, Is.EqualTo("p1")); + Assert.That(persons[1].Name, Is.EqualTo("p2")); + Assert.That(persons[2].Name, Is.EqualTo("p3")); } } diff --git a/src/NHibernate.Test/DialectTest/DialectFixture.cs b/src/NHibernate.Test/DialectTest/DialectFixture.cs index d0c25cff3b3..cccc59f3f77 100644 --- a/src/NHibernate.Test/DialectTest/DialectFixture.cs +++ b/src/NHibernate.Test/DialectTest/DialectFixture.cs @@ -65,8 +65,8 @@ public void IsQuotedFalse() [Test] public void WhenNullOrEmptyIsQuotedFalse() { - d.IsQuoted(null).Should().Be.False(); - d.IsQuoted("").Should().Be.False(); + Assert.That(d.IsQuoted(null), Is.False); + Assert.That(d.IsQuoted(""), Is.False); } [Test] diff --git a/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs b/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs index 79c85cf7ada..fcc8d26126f 100644 --- a/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs +++ b/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs @@ -11,7 +11,7 @@ public class DbProviderFactoryDriveConnectionCommandProviderTest [Test] public void WhenCreatedWithNullDbFactoryThenThrows() { - Executing.This(() => new DbProviderFactoryDriveConnectionCommandProvider(null)).Should().Throw(); + Assert.That(() => new DbProviderFactoryDriveConnectionCommandProvider(null), Throws.TypeOf()); } [Test] @@ -21,7 +21,7 @@ public void WhenCreatedWithDbFactoryThenCanReturnConnection() var provider = new DbProviderFactoryDriveConnectionCommandProvider(factory); using(var connection =provider.CreateConnection()) { - connection.Should().Not.Be.Null(); + Assert.That(connection, Is.Not.Null); } } @@ -32,7 +32,7 @@ public void WhenCreatedWithDbFactoryThenCanReturnCommand() var provider = new DbProviderFactoryDriveConnectionCommandProvider(factory); using (var command = provider.CreateCommand()) { - command.Should().Not.Be.Null(); + Assert.That(command, Is.Not.Null); } } } diff --git a/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs b/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs index 6a476996d12..d5e6fde13d5 100644 --- a/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs +++ b/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs @@ -70,7 +70,7 @@ public void AdjustCommand_StringParametersWithinConditionalSelect_ThenParameterI _driver.AdjustCommand(cmd); var expectedCommandTxt = "select (case when col = @p0 then cast(@p1 as VARCHAR(255)) else cast(@p2 as VARCHAR(255)) end) from table"; - cmd.CommandText.Should().Be(expectedCommandTxt); + Assert.That(cmd.CommandText, Is.EqualTo(expectedCommandTxt)); } [Test] @@ -82,7 +82,7 @@ public void AdjustCommand_IntParametersWithinConditionalSelect_ThenParameterIsWr _driver.AdjustCommand(cmd); var expectedCommandTxt = "select (case when col = @p0 then cast(@p1 as INTEGER) else cast(@p2 as INTEGER) end) from table"; - cmd.CommandText.Should().Be(expectedCommandTxt); + Assert.That(cmd.CommandText, Is.EqualTo(expectedCommandTxt)); } [Test] @@ -94,7 +94,7 @@ public void AdjustCommand_ParameterWithinSelectConcat_ParameterIsCasted() _driver.AdjustCommand(cmd); var expected = "select col || cast(@p0 as VARCHAR(255)) || col from table"; - cmd.CommandText.Should().Be(expected); + Assert.That(cmd.CommandText, Is.EqualTo(expected)); } [Test] @@ -106,7 +106,7 @@ public void AdjustCommand_ParameterWithinSelectAddFunction_ParameterIsCasted() _driver.AdjustCommand(cmd); var expected = "select col + cast(@p0 as VARCHAR(255)) from table"; - cmd.CommandText.Should().Be(expected); + Assert.That(cmd.CommandText, Is.EqualTo(expected)); } [Test] @@ -118,7 +118,7 @@ public void AdjustCommand_InsertWithParamsInSelect_ParameterIsCasted() _driver.AdjustCommand(cmd); var expected = "insert into table1 (col1, col2) select col1, cast(@p0 as INTEGER) from table2"; - cmd.CommandText.Should().Be(expected); + Assert.That(cmd.CommandText, Is.EqualTo(expected)); } private void MakeDriver() @@ -142,7 +142,7 @@ private IDbConnection MakeConnection() private void VerifyCountOfEstablishedConnectionsIs(int expectedCount) { var physicalConnections = GetEstablishedConnections(); - physicalConnections.Should().Be(expectedCount); + Assert.That(physicalConnections, Is.EqualTo(expectedCount)); } private int GetEstablishedConnections() diff --git a/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs b/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs index a0de6ce6ca0..a6179357457 100644 --- a/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs +++ b/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs @@ -60,13 +60,13 @@ public override string NamedPrefix [Test] public void WhenCreatedWithGoodDbProviderThenNotThrows() { - Executing.This(()=> new MyDriverWithWrongClassesAndGoodDbProviderFactory()).Should().NotThrow(); + Assert.That(() => new MyDriverWithWrongClassesAndGoodDbProviderFactory(), Throws.Nothing); } [Test] public void WhenCreatedWithNullAssemblyAndGoodDbProviderThenNotThrows() { - Executing.This(() => new MyDriverWithWrongClassesAndGoodDbProviderFactory(null)).Should().NotThrow(); + Assert.That(() => new MyDriverWithWrongClassesAndGoodDbProviderFactory(null), Throws.Nothing); } [Test] @@ -75,7 +75,7 @@ public void WhenCreatedWithDbFactoryThenCanReturnConnection() var provider = new MyDriverWithWrongClassesAndGoodDbProviderFactory(); using (var connection = provider.CreateConnection()) { - connection.Should().Not.Be.Null(); + Assert.That(connection, Is.Not.Null); } } @@ -85,14 +85,14 @@ public void WhenCreatedWithDbFactoryThenCanReturnCommand() var provider = new MyDriverWithWrongClassesAndGoodDbProviderFactory(); using (var command = provider.CreateCommand()) { - command.Should().Not.Be.Null(); + Assert.That(command, Is.Not.Null); } } [Test] public void WhenCreatedWithNoDbProviderThenNotThrows() { - Executing.This(() => new MyDriverWithNoDbProviderFactory()).Should().NotThrow(); + Assert.That(() => new MyDriverWithNoDbProviderFactory(), Throws.Nothing); } [Test] @@ -101,7 +101,7 @@ public void WhenCreatedWithNoDbFactoryThenCanReturnConnection() var provider = new MyDriverWithNoDbProviderFactory(); using (var connection = provider.CreateConnection()) { - connection.Should().Not.Be.Null(); + Assert.That(connection, Is.Not.Null); } } @@ -111,7 +111,7 @@ public void WhenCreatedNoWithDbFactoryThenCanReturnCommand() var provider = new MyDriverWithNoDbProviderFactory(); using (var command = provider.CreateCommand()) { - command.Should().Not.Be.Null(); + Assert.That(command, Is.Not.Null); } } } diff --git a/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs b/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs index ebfd17cd3c9..2d25f9ae8c2 100644 --- a/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs +++ b/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs @@ -46,8 +46,8 @@ public void Crud() using (ITransaction t = s.BeginTransaction()) { savedId = s.Save(new EntityForMs2008 - { - DateTimeProp = expectedMoment, + { + DateTimeProp = expectedMoment, TimeSpanProp = expectedLapse, }); t.Commit(); @@ -57,8 +57,8 @@ public void Crud() using (ITransaction t = s.BeginTransaction()) { var m = s.Get(savedId); - m.DateTimeProp.Should().Be(expectedMoment); - m.TimeSpanProp.Should().Be(expectedLapse); + Assert.That(m.DateTimeProp, Is.EqualTo(expectedMoment)); + Assert.That(m.TimeSpanProp, Is.EqualTo(expectedLapse)); t.Commit(); } diff --git a/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs b/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs index d8cf02434b6..aa2440e1629 100644 --- a/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs +++ b/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs @@ -12,8 +12,8 @@ public void CanProxyBasicGenericMethod() { var factory = new ProxyFactory(); var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyClass()), null); - c.BasicGenericMethod().Should().Be(5); - c.BasicGenericMethod().Should().Be("blha"); + Assert.That(c.BasicGenericMethod(), Is.EqualTo(5)); + Assert.That(c.BasicGenericMethod(), Is.EqualTo("blha")); } [Test] @@ -21,7 +21,7 @@ public void CanProxyMethodWithGenericBaseClassConstraint() { var factory = new ProxyFactory(); var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyClass()), null); - c.MethodWithGenericBaseClassConstraint, int>().Should().Be(typeof(MyGenericClass)); + Assert.That(c.MethodWithGenericBaseClassConstraint, int>(), Is.EqualTo(typeof(MyGenericClass))); } [Test] @@ -29,7 +29,7 @@ public void CanProxySelfCastingMethod() { var factory = new ProxyFactory(); var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyClass()), null); - c.As().Should().Not.Be.Null(); + Assert.That(c.As(), Is.Not.Null); } [Test] @@ -37,7 +37,7 @@ public void CanProxyMethodWithDefaultConstructorConstraint() { var factory = new ProxyFactory(); var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyClass()), null); - c.MethodWithConstructorConstraint().Should().Not.Be.Null(); + Assert.That(c.MethodWithConstructorConstraint(), Is.Not.Null); } [Test] @@ -45,7 +45,7 @@ public void CanProxyGenericMethodWithInterfaceConstraint() { var factory = new ProxyFactory(); var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyClass()), null); - c.MethodWithInterfaceConstraint(new MyDerivedClass()).Should().Be(typeof(IMyInterface)); + Assert.That(c.MethodWithInterfaceConstraint(new MyDerivedClass()), Is.EqualTo(typeof(IMyInterface))); } [Test] @@ -53,7 +53,7 @@ public void CanProxyGenericMethodWithReferenceTypeAndInterfaceConstraint() { var factory = new ProxyFactory(); var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyDerivedClass()), null); - c.MethodWithReferenceTypeAndInterfaceConstraint().Should().Not.Be.Null(); + Assert.That(c.MethodWithReferenceTypeAndInterfaceConstraint(), Is.Not.Null); } [Test] @@ -61,7 +61,7 @@ public void CanProxySelfCastingMethodWithGenericConstaint() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.As>().Should().Not.Be.Null(); + Assert.That(c.As>(), Is.Not.Null); } [Test] @@ -69,7 +69,7 @@ public void CanProxySelfCastingMethodWithGenericConstaintBase() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsBase>().Should().Not.Be.Null(); + Assert.That(c.AsBase>(), Is.Not.Null); } [Test] @@ -77,7 +77,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceConstaint() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterface>().Should().Not.Be.Null(); + Assert.That(c.AsInterface>(), Is.Not.Null); } [Test] @@ -85,7 +85,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceBaseConstaint() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterfaceBase>().Should().Not.Be.Null(); + Assert.That(c.AsInterfaceBase>(), Is.Not.Null); } [Test] @@ -93,7 +93,7 @@ public void CanProxySelfCastingMethodWithGenericConstaint2() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.As2>().Should().Not.Be.Null(); + Assert.That(c.As2>(), Is.Not.Null); } [Test] @@ -101,7 +101,7 @@ public void CanProxySelfCastingMethodWithGenericConstaintBase2() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsBase2>().Should().Not.Be.Null(); + Assert.That(c.AsBase2>(), Is.Not.Null); } [Test] @@ -109,7 +109,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceConstaint2() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterface2>().Should().Not.Be.Null(); + Assert.That(c.AsInterface2>(), Is.Not.Null); } [Test] @@ -117,7 +117,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceBaseConstaint2() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterfaceBase2>().Should().Not.Be.Null(); + Assert.That(c.AsInterfaceBase2>(), Is.Not.Null); } [Test] @@ -125,7 +125,7 @@ public void CanProxySelfCastingMethodWithGenericConstaint3() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.As3, object>().Should().Not.Be.Null(); + Assert.That(c.As3, object>(), Is.Not.Null); } [Test] @@ -133,7 +133,7 @@ public void CanProxySelfCastingMethodWithGenericConstaintBase3() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsBase3, object>().Should().Not.Be.Null(); + Assert.That(c.AsBase3, object>(), Is.Not.Null); } [Test] @@ -141,7 +141,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceConstaint3() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterface3, object>().Should().Not.Be.Null(); + Assert.That(c.AsInterface3, object>(), Is.Not.Null); } [Test] @@ -149,7 +149,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceBaseConstaint3() { var factory = new ProxyFactory(); var c = (MyGenericClass) factory.CreateProxy(typeof (MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterfaceBase3, object>().Should().Not.Be.Null(); + Assert.That(c.AsInterfaceBase3, object>(), Is.Not.Null); } [Test] @@ -157,7 +157,7 @@ public void CanProxySelfCastingMethodWithGenericConstaint4() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.As4>().Should().Not.Be.Null(); + Assert.That(c.As4>(), Is.Not.Null); } [Test] @@ -165,7 +165,7 @@ public void CanProxySelfCastingMethodWithGenericConstaintBase4() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsBase4>().Should().Not.Be.Null(); + Assert.That(c.AsBase4>(), Is.Not.Null); } [Test] @@ -173,7 +173,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceConstaint4() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterface4>().Should().Not.Be.Null(); + Assert.That(c.AsInterface4>(), Is.Not.Null); } [Test] @@ -181,7 +181,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceBaseConstaint4() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterfaceBase4>().Should().Not.Be.Null(); + Assert.That(c.AsInterfaceBase4>(), Is.Not.Null); } [Test] @@ -189,7 +189,7 @@ public void CanProxySelfCastingMethodWithGenericConstaint5() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.As5>().Should().Not.Be.Null(); + Assert.That(c.As5>(), Is.Not.Null); } [Test] @@ -197,7 +197,7 @@ public void CanProxySelfCastingMethodWithGenericConstaintBase5() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsBase5>().Should().Not.Be.Null(); + Assert.That(c.AsBase5>(), Is.Not.Null); } [Test] @@ -205,7 +205,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceConstaint5() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterface5>().Should().Not.Be.Null(); + Assert.That(c.AsInterface5>(), Is.Not.Null); } [Test] @@ -213,7 +213,7 @@ public void CanProxySelfCastingMethodWithGenericInterfaceBaseConstaint5() { var factory = new ProxyFactory(); var c = (MyGenericClass)factory.CreateProxy(typeof(MyGenericClass), new PassThroughInterceptor(new MyGenericClass()), null); - c.AsInterfaceBase5>().Should().Not.Be.Null(); + Assert.That(c.AsInterfaceBase5>(), Is.Not.Null); } [Test] diff --git a/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs b/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs index d27291c37cc..cd678c4f0d4 100644 --- a/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs +++ b/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs @@ -38,7 +38,7 @@ public void WhenProxyAnInterfaceShouldInterceptEquals() var interceptor = new InterceptedMethodsExposer(); var proxy = proxyFactory.CreateProxy(typeof(IHasSomething), interceptor, null); proxy.Equals(null); - interceptor.InterceptedMethods.Should().Contain("Equals"); + Assert.That(interceptor.InterceptedMethods, Contains.Item("Equals")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs b/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs index 1d03caddfd0..829dc277a3a 100644 --- a/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs +++ b/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs @@ -18,7 +18,7 @@ public class MyClass [Test] public void LazyFieldInterceptorMarkedAsSerializable() { - typeof(DefaultDynamicLazyFieldInterceptor).Should().Have.Attribute(); + Assert.That(typeof(DefaultDynamicLazyFieldInterceptor), Has.Attribute()); } [Test] @@ -30,8 +30,7 @@ public void LazyFieldInterceptorIsBinarySerializable() var fieldInterceptionProxy = (IFieldInterceptorAccessor)pf.GetFieldInterceptionProxy(new MyClass()); fieldInterceptionProxy.FieldInterceptor = new DefaultFieldInterceptor(null, null, null, "MyClass", typeof(MyClass)); - fieldInterceptionProxy.Should().Be.BinarySerializable(); + Assert.That(fieldInterceptionProxy, Is.BinarySerializable); } - } } \ No newline at end of file diff --git a/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs b/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs index 7e27b94429e..051130a2cce 100644 --- a/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs +++ b/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs @@ -23,7 +23,7 @@ public void Proxy() var dictionary = new Dictionary(); var myParam = dictionary; c.Method(ref myParam); - myParam.Should().Not.Be.SameInstanceAs(dictionary); + Assert.That(myParam, Is.Not.SameAs(dictionary)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Events/DisposableListenersTest.cs b/src/NHibernate.Test/Events/DisposableListenersTest.cs index 8d457f1e339..682b153488f 100644 --- a/src/NHibernate.Test/Events/DisposableListenersTest.cs +++ b/src/NHibernate.Test/Events/DisposableListenersTest.cs @@ -29,7 +29,7 @@ public void WhenCloseSessionFactoryThenCallDisposeOfListener() cfg.AppendListeners(ListenerType.PostUpdate, new[]{myDisposableListener}); var sf = cfg.BuildSessionFactory(); sf.Close(); - myDisposableListener.DisposeCalled.Should().Be.True(); + Assert.That(myDisposableListener.DisposeCalled, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs b/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs index 83edb7be3c2..5473435110c 100644 --- a/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs +++ b/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs @@ -36,7 +36,7 @@ public void MapsToEnum() int index = -1; for (int i = 0; i < persister.PropertyNames.Length; i++) { - if (persister.PropertyNames[i].Equals("NullableValue")) + if (persister.PropertyNames[i] == "NullableValue") { index = i; break; @@ -45,7 +45,7 @@ public void MapsToEnum() if (index == -1) Assert.Fail("Property NullableValue not found."); - persister.PropertyTypes[index].Should().Be.AssignableTo(); + Assert.That(persister.PropertyTypes[index], Is.AssignableTo()); } } diff --git a/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs b/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs index a89b0159f15..d4661745654 100644 --- a/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs +++ b/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs @@ -128,13 +128,13 @@ public void WillLoadGhostAssociationOnAccess() { order = s.Get(1); var logMessage = ls.GetWholeLog(); - logMessage.Should().Not.Contain("FROM Payment"); + Assert.That(logMessage, Is.Not.StringContaining("FROM Payment")); } - order.Satisfy(o => !NHibernateUtil.IsPropertyInitialized(o, "Payment")); + Assert.That(NHibernateUtil.IsPropertyInitialized(order, "Payment"), Is.False); // trigger on-access lazy load var x = order.Payment; - order.Satisfy(o => NHibernateUtil.IsPropertyInitialized(o, "Payment")); + Assert.That(NHibernateUtil.IsPropertyInitialized(order, "Payment"), Is.True); } } @@ -148,19 +148,19 @@ public void WhenGetThenLoadOnlyNoLazyPlainProperties() { order = s.Get(1); var logMessage = ls.GetWholeLog(); - logMessage.Should().Not.Contain("ALazyProperty"); - logMessage.Should().Contain("NoLazyProperty"); + Assert.That(logMessage, Is.Not.StringContaining("ALazyProperty")); + Assert.That(logMessage, Is.StringContaining("NoLazyProperty")); } - order.Satisfy(o => NHibernateUtil.IsPropertyInitialized(o, "NoLazyProperty")); - order.Satisfy(o => !NHibernateUtil.IsPropertyInitialized(o, "ALazyProperty")); + Assert.That(NHibernateUtil.IsPropertyInitialized(order, "NoLazyProperty"), Is.True); + Assert.That(NHibernateUtil.IsPropertyInitialized(order, "ALazyProperty"), Is.False); using (var ls = new SqlLogSpy()) { var x = order.ALazyProperty; var logMessage = ls.GetWholeLog(); - logMessage.Should().Contain("ALazyProperty"); + Assert.That(logMessage, Is.StringContaining("ALazyProperty")); } - order.Satisfy(o => NHibernateUtil.IsPropertyInitialized(o, "ALazyProperty")); + Assert.That(NHibernateUtil.IsPropertyInitialized(order, "ALazyProperty"), Is.True); } } } diff --git a/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs b/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs index b2a164252ea..7853a34e054 100644 --- a/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs +++ b/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs @@ -350,8 +350,8 @@ public void UpdateWithWhereExistsSubquery() s = OpenSession(); t = s.BeginTransaction(); string updateQryString = "update Human h " + "set h.description = 'updated' " + "where exists (" - + " select f.id " + " from h.friends f " + " where f.name.last = 'Public' " - + ")"; + + " select f.id " + " from h.friends f " + " where f.name.last = 'Public' " + + ")"; int count = s.CreateQuery(updateQryString).ExecuteUpdate(); Assert.That(count, Is.EqualTo(1)); s.Delete(doll); @@ -376,15 +376,15 @@ public void UpdateWithWhereExistsSubquery() t = s.BeginTransaction(); // one-to-many test updateQryString = "update SimpleEntityWithAssociation e set e.Name = 'updated' where " - + "exists(select a.id from e.AssociatedEntities a " + "where a.Name = 'one-to-many-association')"; + + "exists(select a.id from e.AssociatedEntities a " + "where a.Name = 'one-to-many-association')"; count = s.CreateQuery(updateQryString).ExecuteUpdate(); Assert.That(count, Is.EqualTo(1)); // many-to-many test if (Dialect.SupportsSubqueryOnMutatingTable) { updateQryString = "update SimpleEntityWithAssociation e set e.Name = 'updated' where " - + "exists(select a.id from e.ManyToManyAssociatedEntities a " - + "where a.Name = 'many-to-many-association')"; + + "exists(select a.id from e.ManyToManyAssociatedEntities a " + + "where a.Name = 'many-to-many-association')"; count = s.CreateQuery(updateQryString).ExecuteUpdate(); Assert.That(count, Is.EqualTo(1)); } @@ -653,7 +653,7 @@ public void UpdateMultiplePropertyOnAnimal() .SetDouble("w1", 3) .ExecuteUpdate(); - count.Should().Be(1); + Assert.That(count, Is.EqualTo(1)); t.Commit(); } @@ -661,8 +661,8 @@ public void UpdateMultiplePropertyOnAnimal() using (s.BeginTransaction()) { var tadpole = s.Get(data.Polliwog.Id); - tadpole.Description.Should().Be("Tadpole"); - tadpole.BodyWeight.Should().Be(3); + Assert.That(tadpole.Description, Is.EqualTo("Tadpole")); + Assert.That(tadpole.BodyWeight, Is.EqualTo(3)); } data.Cleanup(); diff --git a/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs b/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs index c0b20d4de24..eadeb277b62 100644 --- a/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs +++ b/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs @@ -97,7 +97,7 @@ public void SkipTakeWithParameter() .SetInt32("pSkip", 1) .SetInt32("pTake", 3).List().Select(h => h.BodyWeight).ToArray(); var expected = new[] {6f, 10f, 15f}; - actual.Should().Have.SameSequenceAs(expected); + Assert.That(actual, Is.EquivalentTo(expected)); txn.Commit(); s.Close(); @@ -114,7 +114,7 @@ public void SkipTakeWithParameterList() .SetInt32("pSkip", 1) .SetInt32("pTake", 4).List().Select(h => h.BodyWeight).ToArray(); var expected = new[] {10f, 15f}; - actual.Should().Have.SameSequenceAs(expected); + Assert.That(actual, Is.EquivalentTo(expected)); txn.Commit(); s.Close(); @@ -128,7 +128,7 @@ public void SkipWithParameter() float[] actual = s.CreateQuery("from Human h order by h.bodyWeight skip :jump").SetInt32("jump", 2).List().Select(h => h.BodyWeight).ToArray(); var expected = new[] {10f, 15f, 20f}; - actual.Should().Have.SameSequenceAs(expected); + Assert.That(actual, Is.EquivalentTo(expected)); txn.Commit(); s.Close(); diff --git a/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs b/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs index f6684737e59..4e471d012df 100644 --- a/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs +++ b/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs @@ -19,7 +19,7 @@ public void WhenSubstitutionsConfiguredThenUseItInTranslation() { const string query = "from SimpleClass s where s.IntValue > pizza"; var sql = GetSql(query, new Dictionary{{"pizza","1"}}); - sql.Should().Not.Contain("pizza"); + Assert.That(sql, Is.Not.StringContaining("pizza")); } [Test] @@ -32,7 +32,7 @@ public void WhenExecutedThroughSessionThenUseSubstitutions() { s.CreateQuery(query).List(); string sql = sqlLogSpy.Appender.GetEvents()[0].RenderedMessage; - sql.Should().Not.Contain("pizza"); + Assert.That(sql, Is.Not.StringContaining("pizza")); } } } @@ -42,7 +42,7 @@ public void WhenSubstitutionsWithStringConfiguredThenUseItInTranslation() { const string query = "from SimpleClass s where s.Description > calda"; var sql = GetSql(query, new Dictionary { { "calda", "'bobrock'" } }); - sql.Should().Not.Contain("pizza").And.Contain("'bobrock'"); + Assert.That(sql, Is.Not.StringContaining("pizza").And.Contains("'bobrock'")); } [Test] @@ -55,7 +55,7 @@ public void WhenExecutedThroughSessionThenUseSubstitutionsWithString() { s.CreateQuery(query).List(); string sql = sqlLogSpy.Appender.GetEvents()[0].RenderedMessage; - sql.Should().Not.Contain("pizza").And.Contain("'bobrock'"); + Assert.That(sql, Is.Not.StringContaining("pizza").And.Contains("'bobrock'")); } } } diff --git a/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs b/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs index 42ecbe38c43..5da94051892 100644 --- a/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs +++ b/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs @@ -37,11 +37,11 @@ protected override bool AppliesTo(Dialect.Dialect dialect) protected override void Configure(Configuration configuration) { configuration.DataBaseIntegration(x => - { + { x.BatchSize = batchSize; x.OrderInserts = true; x.Batcher(); - }); + }); } [Test] @@ -63,7 +63,7 @@ public void BatchOrdering() } int expectedBatchesPerEntity = (instancesPerEach / batchSize) + ((instancesPerEach % batchSize) == 0 ? 0 : 1); - StatsBatcher.BatchSizes.Count.Should().Be(expectedBatchesPerEntity * typesOfEntities); + Assert.That(StatsBatcher.BatchSizes.Count, Is.EqualTo(expectedBatchesPerEntity * typesOfEntities)); using (ISession s = OpenSession()) { diff --git a/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs b/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs index 1b55126b7c6..3afe34147c7 100644 --- a/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs +++ b/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs @@ -61,15 +61,15 @@ public void PropertyLoadedNotInitialized() { var book = s.Load(1); - Assert.False(NHibernateUtil.IsPropertyInitialized(book, "Id")); - Assert.False(NHibernateUtil.IsPropertyInitialized(book, "Name")); - Assert.False(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText")); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "Id"), Is.False); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "Name"), Is.False); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText"), Is.False); NHibernateUtil.Initialize(book); - Assert.True(NHibernateUtil.IsPropertyInitialized(book, "Id")); - Assert.True(NHibernateUtil.IsPropertyInitialized(book, "Name")); - Assert.False(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText")); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "Id"), Is.True); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "Name"), Is.True); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText"), Is.False); } } @@ -86,9 +86,9 @@ public void PropertyLoadedNotInitializedWhenUsingGet() { var book = s.Get(1); - Assert.True(NHibernateUtil.IsPropertyInitialized(book, "Id")); - Assert.True(NHibernateUtil.IsPropertyInitialized(book, "Name")); - Assert.False(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText")); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "Id"), Is.True); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "Name"), Is.True); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText"), Is.False); } } @@ -99,8 +99,8 @@ public void CanGetValueForLazyProperty() { var book = s.Get(1); - Assert.AreEqual("a lot of text ...", book.ALotOfText); - Assert.True(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText")); + Assert.That(book.ALotOfText, Is.EqualTo("a lot of text ...")); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText"), Is.True); } } @@ -111,8 +111,8 @@ public void CanGetValueForNonLazyProperty() { var book = s.Get(1); - Assert.AreEqual("some name", book.Name); - Assert.False(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText")); + Assert.That(book.Name, Is.EqualTo("some name")); + Assert.That(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText"), Is.False); } } diff --git a/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs b/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs index 6f9bbaad2f9..3ebe4901a1e 100644 --- a/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs +++ b/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs @@ -32,8 +32,8 @@ public FreetextGenerator() } public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, - ReadOnlyCollection arguments, HqlTreeBuilder treeBuilder, - IHqlExpressionVisitor visitor) + ReadOnlyCollection arguments, HqlTreeBuilder treeBuilder, + IHqlExpressionVisitor visitor) { IEnumerable args = arguments.Select(a => visitor.Visit(a)) .Cast(); @@ -50,7 +50,7 @@ public class MyLinqToHqlGeneratorsRegistry : DefaultLinqToHqlGeneratorsRegistry public MyLinqToHqlGeneratorsRegistry() { RegisterGenerator(ReflectionHelper.GetMethodDefinition(() => BooleanLinqExtensions.FreeText(null, null)), - new FreetextGenerator()); + new FreetextGenerator()); } } @@ -63,8 +63,8 @@ protected override void Configure(Configuration configuration) public void CanUseMyCustomExtension() { List contacts = (from c in db.Customers where c.ContactName.FreeText("Thomas") select c).ToList(); - contacts.Count.Should().Be.GreaterThan(0); - contacts.Select(customer => customer.ContactName).All(c => c.Satisfy(customer => customer.Contains("Thomas"))); + Assert.That(contacts.Count, Is.GreaterThan(0)); + Assert.That(contacts.Select(c => c.ContactName).All(c => c.Contains("Thomas")), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Linq/ByMethod/CastTests.cs b/src/NHibernate.Test/Linq/ByMethod/CastTests.cs index 1572d30739c..1f34dfd06fe 100644 --- a/src/NHibernate.Test/Linq/ByMethod/CastTests.cs +++ b/src/NHibernate.Test/Linq/ByMethod/CastTests.cs @@ -11,19 +11,19 @@ public class CastTests : LinqTestCase [Test] public void CastCount() { - session.Query() - .Cast() - .Count().Should().Be(1); + Assert.That(session.Query() + .Cast() + .Count(), Is.EqualTo(1)); } [Test] public void CastWithWhere() { var pregnatMammal = (from a - in session.Query().Cast() - where a.Pregnant - select a).FirstOrDefault(); - pregnatMammal.Should().Not.Be.Null(); + in session.Query().Cast() + where a.Pregnant + select a).FirstOrDefault(); + Assert.That(pregnatMammal, Is.Not.Null); } [Test] @@ -31,7 +31,7 @@ public void CastDowncast() { var query = session.Query().Cast(); // the list contains at least one Cat then should Throws - query.Executing(q=> q.ToList()).Throws(); + Assert.That(() => query.ToList(), Throws.Exception); } [Test] @@ -39,7 +39,7 @@ public void OrderByAfterCast() { // NH-2657 var query = session.Query().Cast().OrderBy(a=> a.BodyWeight); - query.Executing(q => q.ToList()).NotThrows(); + Assert.That(() => query.ToList(), Throws.Nothing); } [Test, Ignore("Not fixed yet. The method OfType does not work as expected.")] @@ -47,7 +47,7 @@ public void CastDowncastUsingOfType() { var query = session.Query().OfType().Cast(); // the list contains at least one Cat then should Throws - query.Executing(q => q.ToList()).Throws(); + Assert.That(() => query.ToList(), Throws.Exception); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs b/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs index 6761d9bd2ea..d30aaa945f2 100644 --- a/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs +++ b/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs @@ -30,7 +30,7 @@ public void DistinctOnAnonymousTypeProjection() .Distinct() .ToArray(); - result.Length.Should().Be.EqualTo(388); + Assert.That(result.Length, Is.EqualTo(388)); } [Test] @@ -46,7 +46,7 @@ public void DistinctOnComplexAnonymousTypeProjection() .Distinct() .ToArray(); - result.Length.Should().Be.EqualTo(774); + Assert.That(result.Length, Is.EqualTo(774)); } [Test] @@ -61,7 +61,7 @@ public void DistinctOnTypeProjection() .Distinct() .ToArray(); - result.Length.Should().Be.EqualTo(388); + Assert.That(result.Length, Is.EqualTo(388)); } [Test] @@ -77,7 +77,7 @@ public void DistinctOnTypeProjectionTwoProperty() .Distinct() .ToArray(); - result.Length.Should().Be.EqualTo(774); + Assert.That(result.Length, Is.EqualTo(774)); } [Test] @@ -95,7 +95,7 @@ public void DistinctOnTypeProjectionWithHqlMethodIsOk() .Distinct() .ToArray(); - result.Length.Should().Be.EqualTo(824); + Assert.That(result.Length, Is.EqualTo(824)); } [Test] diff --git a/src/NHibernate.Test/Linq/CustomExtensionsExample.cs b/src/NHibernate.Test/Linq/CustomExtensionsExample.cs index 355ee0683fb..ef683a72107 100644 --- a/src/NHibernate.Test/Linq/CustomExtensionsExample.cs +++ b/src/NHibernate.Test/Linq/CustomExtensionsExample.cs @@ -5,6 +5,7 @@ using System.Text.RegularExpressions; using NHibernate.Cfg; using NHibernate.Cfg.Loquacious; +using NHibernate.DomainModel.Northwind.Entities; using NHibernate.Hql.Ast; using NHibernate.Linq; using NHibernate.Linq.Functions; @@ -31,7 +32,7 @@ public class MyLinqToHqlGeneratorsRegistry: DefaultLinqToHqlGeneratorsRegistry public MyLinqToHqlGeneratorsRegistry():base() { RegisterGenerator(ReflectionHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)), - new IsLikeGenerator()); + new IsLikeGenerator()); } } @@ -46,7 +47,7 @@ public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor) { return treeBuilder.Like(visitor.Visit(arguments[0]).AsExpression(), - visitor.Visit(arguments[1]).AsExpression()); + visitor.Visit(arguments[1]).AsExpression()); } } @@ -61,8 +62,8 @@ protected override void Configure(NHibernate.Cfg.Configuration configuration) public void CanUseMyCustomExtension() { var contacts = (from c in db.Customers where c.ContactName.IsLike("%Thomas%") select c).ToList(); - contacts.Count.Should().Be.GreaterThan(0); - contacts.Select(customer => customer.ContactName).All(c => c.Satisfy(customer => customer.Contains("Thomas"))); + Assert.That(contacts.Count, Is.GreaterThan(0)); + Assert.That(contacts.All(c => c.ContactName.Contains("Thomas")), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Linq/EagerLoadTests.cs b/src/NHibernate.Test/Linq/EagerLoadTests.cs index 48905e0068b..d5d30ef8000 100644 --- a/src/NHibernate.Test/Linq/EagerLoadTests.cs +++ b/src/NHibernate.Test/Linq/EagerLoadTests.cs @@ -60,16 +60,15 @@ public void NestedRelationshipsCanBeEagerLoaded() public void WhenFetchSuperclassCollectionThenNotThrows() { // NH-2277 - session.Executing(s => s.Query().Fetch(x => x.Children).ToList()).NotThrows(); + Assert.That(() => session.Query().Fetch(x => x.Children).ToList(), Throws.Nothing); session.Close(); } [Test] public void FetchWithWhere() { - // NH-2381 NH-2362 - (from p - in session.Query().Fetch(a => a.Supplier) + // NH-2381 NH-2362 + (from p in session.Query().Fetch(a => a.Supplier) where p.ProductId == 1 select p).ToList(); } diff --git a/src/NHibernate.Test/Linq/LinqTestCase.cs b/src/NHibernate.Test/Linq/LinqTestCase.cs index e98075488fe..0b79e8136b3 100755 --- a/src/NHibernate.Test/Linq/LinqTestCase.cs +++ b/src/NHibernate.Test/Linq/LinqTestCase.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using NHibernate.DomainModel.Northwind.Entities; +using NUnit.Framework; using SharpTestsEx; namespace NHibernate.Test.Linq @@ -64,9 +65,9 @@ protected override void OnTearDown() } } - public void AssertByIds(IEnumerable entities, TId[] expectedIds, Converter entityIdGetter) + public static void AssertByIds(IEnumerable entities, TId[] expectedIds, Converter entityIdGetter) { - entities.Select(x => entityIdGetter(x)).Should().Have.SameValuesAs(expectedIds); + Assert.That(entities.Select(x => entityIdGetter(x)), Is.EquivalentTo(expectedIds)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs b/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs index 5201010fd29..a470ef8f0c1 100644 --- a/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs +++ b/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs @@ -14,8 +14,8 @@ public class LinqToHqlGeneratorsRegistryFactoryTest public void WhenNotDefinedThenReturnDefaultRegistry() { var registry = LinqToHqlGeneratorsRegistryFactory.CreateGeneratorsRegistry(new Dictionary()); - registry.Should().Not.Be.Null(); - registry.Should().Be.OfType(); + Assert.That(registry, Is.Not.Null); + Assert.That(registry, Is.TypeOf()); } [Test] @@ -23,8 +23,8 @@ public void WhenDefinedThenReturnCustomtRegistry() { var properties = new Dictionary { { Environment.LinqToHqlGeneratorsRegistry, typeof(MyLinqToHqlGeneratorsRegistry).AssemblyQualifiedName } }; var registry = LinqToHqlGeneratorsRegistryFactory.CreateGeneratorsRegistry(properties); - registry.Should().Not.Be.Null(); - registry.Should().Be.OfType(); + Assert.That(registry, Is.Not.Null); + Assert.That(registry, Is.TypeOf()); } private class MyLinqToHqlGeneratorsRegistry : ILinqToHqlGeneratorsRegistry diff --git a/src/NHibernate.Test/Linq/MathTests.cs b/src/NHibernate.Test/Linq/MathTests.cs index 69c79fd7e12..b078c7f0f5f 100644 --- a/src/NHibernate.Test/Linq/MathTests.cs +++ b/src/NHibernate.Test/Linq/MathTests.cs @@ -33,7 +33,7 @@ public void SignAllPositiveTest() var signs = (from o in db.OrderLines select Math.Sign(o.UnitPrice)).ToList(); - Assert.True(signs.All(x => x == 1)); + Assert.That(signs.All(x => x == 1), Is.True); } [Test] @@ -43,7 +43,7 @@ public void SignAllNegativeTest() var signs = (from o in db.OrderLines select Math.Sign(0m - o.UnitPrice)).ToList(); - Assert.True(signs.All(x => x == -1)); + Assert.That(signs.All(x => x == -1), Is.True); } [Test] diff --git a/src/NHibernate.Test/Linq/ProjectionsTests.cs b/src/NHibernate.Test/Linq/ProjectionsTests.cs index 2e9a5ccea3c..e069c43a7f2 100644 --- a/src/NHibernate.Test/Linq/ProjectionsTests.cs +++ b/src/NHibernate.Test/Linq/ProjectionsTests.cs @@ -205,7 +205,7 @@ public void CanUseConstantStringInProjection() var firstUser = query.First(); Assert.IsNotNull(firstUser); - firstUser.Category.Should().Be("something"); + Assert.That(firstUser.Category, Is.EqualTo("something")); } [Test] diff --git a/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs b/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs index 0ac4708b050..e7f483a9e9a 100644 --- a/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs +++ b/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs @@ -15,7 +15,7 @@ public void WhenQueryThroughStatelessSessionThenDoesNotThrows() using (var statelessSession = Sfi.OpenStatelessSession()) { var query = statelessSession.Query(); - query.Executing(q => q.ToList()).NotThrows(); + Assert.That(() => query.ToList(), Throws.Nothing); } } @@ -26,7 +26,7 @@ public void AggregateWithStartsWith() { StringBuilder query = (from c in statelessSession.Query() where c.CustomerId.StartsWith("A") select c.CustomerId) .Aggregate(new StringBuilder(), (sb, id) => sb.Append(id).Append(",")); - query.ToString().Should().Be("ALFKI,ANATR,ANTON,AROUT,"); + Assert.That(query.ToString(), Is.EqualTo("ALFKI,ANATR,ANTON,AROUT,")); } } } diff --git a/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs b/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs index da3562b0515..d9020209add 100644 --- a/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs +++ b/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs @@ -285,25 +285,25 @@ public void CallingMethods() logger.Fatal(null); logger.Fatal(null, null); - logMock.debug.Should().Be(1); - logMock.debugException.Should().Be(1); - logMock.debugFormat.Should().Be(1); - logMock.info.Should().Be(1); - logMock.infoException.Should().Be(1); - logMock.infoFormat.Should().Be(1); - logMock.warn.Should().Be(1); - logMock.warnException.Should().Be(1); - logMock.warnFormat.Should().Be(1); - logMock.error.Should().Be(1); - logMock.errorException.Should().Be(1); - logMock.errorFormat.Should().Be(1); - logMock.fatal.Should().Be(1); - logMock.fatalException.Should().Be(1); - logMock.isDebugEnabled.Should().Be.GreaterThan(1); - logMock.isInfoEnabled.Should().Be.GreaterThan(1); - logMock.isWarnEnabled.Should().Be.GreaterThan(1); - logMock.isErrorEnabled.Should().Be.GreaterThan(1); - logMock.isFatalEnabled.Should().Be.GreaterThan(1); + Assert.That(logMock.debug, Is.EqualTo(1)); + Assert.That(logMock.debugException, Is.EqualTo(1)); + Assert.That(logMock.debugFormat, Is.EqualTo(1)); + Assert.That(logMock.info, Is.EqualTo(1)); + Assert.That(logMock.infoException, Is.EqualTo(1)); + Assert.That(logMock.infoFormat, Is.EqualTo(1)); + Assert.That(logMock.warn, Is.EqualTo(1)); + Assert.That(logMock.warnException, Is.EqualTo(1)); + Assert.That(logMock.warnFormat, Is.EqualTo(1)); + Assert.That(logMock.error, Is.EqualTo(1)); + Assert.That(logMock.errorException, Is.EqualTo(1)); + Assert.That(logMock.errorFormat, Is.EqualTo(1)); + Assert.That(logMock.fatal, Is.EqualTo(1)); + Assert.That(logMock.fatalException, Is.EqualTo(1)); + Assert.That(logMock.isDebugEnabled, Is.GreaterThan(1)); + Assert.That(logMock.isInfoEnabled, Is.GreaterThan(1)); + Assert.That(logMock.isWarnEnabled, Is.GreaterThan(1)); + Assert.That(logMock.isErrorEnabled, Is.GreaterThan(1)); + Assert.That(logMock.isFatalEnabled, Is.GreaterThan(1)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/Logging/LoggerProviderTest.cs b/src/NHibernate.Test/Logging/LoggerProviderTest.cs index 299ebbfa5d3..e7a68e82d68 100644 --- a/src/NHibernate.Test/Logging/LoggerProviderTest.cs +++ b/src/NHibernate.Test/Logging/LoggerProviderTest.cs @@ -8,14 +8,14 @@ public class LoggerProviderTest [Test] public void LoggerProviderCanCreateLoggers() { - LoggerProvider.LoggerFor("pizza").Should().Not.Be.Null(); - LoggerProvider.LoggerFor(typeof (LoggerProviderTest)).Should().Not.Be.Null(); + Assert.That(LoggerProvider.LoggerFor("pizza"), Is.Not.Null); + Assert.That(LoggerProvider.LoggerFor(typeof (LoggerProviderTest)), Is.Not.Null); } [Test] public void WhenNotConfiguredAndLog4NetExistsThenUseLog4NetFactory() { - LoggerProvider.LoggerFor("pizza").Should().Be.InstanceOf(); + Assert.That(LoggerProvider.LoggerFor("pizza"), Is.InstanceOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs index 1a697db52f1..5d947e614a0 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs @@ -45,7 +45,7 @@ public void WhenMapComoponetWithNestBidirectionalComponentThenMapParentAccessor( var hbmClass = mapping.RootClasses[0]; var hbmMyCompo = hbmClass.Properties.OfType().Single(); - hbmMyCompo.Access.Should().Contain("camelcase"); + Assert.That(hbmMyCompo.Access, Is.StringContaining("camelcase")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs index 4be73872b5f..b688f9840ee 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs @@ -69,7 +69,7 @@ public void WhenMapComoponetWithNestBidirectionalComponentThenMapParentAccessor( var hbmMyCompo = hbmClass.Properties.OfType().Single(); var hbmMyNestedCompo = hbmMyCompo.Properties.OfType().Single(); - hbmMyNestedCompo.Parent.access.Should().Contain("camelcase"); + Assert.That(hbmMyNestedCompo.Parent.access, Is.StringContaining("camelcase")); } [Test] @@ -83,7 +83,7 @@ public void WhenCollectionOfComoponetsWithNestBidirectionalComponentThenMapParen var hbmMyCompo = (HbmCompositeElement)hbmBag.ElementRelationship; var hbmMyNestedCompo = hbmMyCompo.Properties.OfType().Single(); - hbmMyNestedCompo.Parent.access.Should().Contain("camelcase"); + Assert.That(hbmMyNestedCompo.Parent.access, Is.StringContaining("camelcase")); } [Test, Ignore("No fixed yet. When the parent is an entity it should be managed explicitly as explicitly is managed the relation (Parent instead many-to-one)")] @@ -93,7 +93,7 @@ public void WhenMapComoponetWithParentThenMapParentAccessor() var hbmClass = mapping.RootClasses[0]; var hbmMyCompo = hbmClass.Properties.OfType().Single(); - hbmMyCompo.Parent.access.Should().Contain("camelcase"); + Assert.That(hbmMyCompo.Parent.access, Is.StringContaining("camelcase")); } [Test, Ignore("No fixed yet. When the parent is an entity it should be managed explicitly as explicitly is managed the relation (Parent instead many-to-one)")] @@ -105,7 +105,7 @@ public void WhenCollectionOfComoponetsWithParentThenMapParentAccessor() var hbmBag = hbmClass.Properties.OfType().Single(); var hbmMyCompo = (HbmCompositeElement)hbmBag.ElementRelationship; - hbmMyCompo.Parent.access.Should().Contain("camelcase"); + Assert.That(hbmMyCompo.Parent.access, Is.StringContaining("camelcase")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs index 57f708bc2eb..7114d452cc0 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs @@ -56,7 +56,7 @@ public void WhenFieldAccessToField() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "aField"); - hbmProperty.Access.Should().Be("field"); + Assert.That(hbmProperty.Access, Is.EqualTo("field")); } [Test] @@ -67,7 +67,7 @@ public void WhenAutoPropertyNoAccessor() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "AProp"); - hbmProperty.Access.Should().Be.NullOrEmpty(); + Assert.That(hbmProperty.Access, Is.Null.Or.Empty); } [Test] @@ -78,7 +78,7 @@ public void WhenPropertyWithSameBackFieldNoMatch() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "SameTypeOfBackField"); - hbmProperty.Access.Should().Be.NullOrEmpty(); + Assert.That(hbmProperty.Access, Is.Null.Or.Empty); } [Test] @@ -89,7 +89,7 @@ public void WhenReadOnlyPropertyWithSameBackFieldNoMatch() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "ReadOnlyWithSameBackField"); - hbmProperty.Access.Should().Not.Contain("field"); + Assert.That(hbmProperty.Access, Is.Not.StringContaining("field")); } [Test] @@ -102,7 +102,7 @@ public void WhenPropertyWithoutFieldNoMatch() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "PropertyWithoutField"); - hbmProperty.Access.Should().Not.Contain("field"); + Assert.That(hbmProperty.Access, Is.Not.StringContaining("field")); } [Test] @@ -113,7 +113,7 @@ public void WhenPropertyWithDifferentBackFieldMatch() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "WithDifferentBackField"); - hbmProperty.Access.Should().Contain("field"); + Assert.That(hbmProperty.Access, Is.StringContaining("field")); } [Test] @@ -124,7 +124,7 @@ public void WhenSetOnlyPropertyNoMatch() var hbmClass = hbmMapping.RootClasses[0]; var hbmProperty = hbmClass.Properties.Single(x => x.Name == "SetOnlyProperty"); - hbmProperty.Access.Should().Not.Contain("field"); + Assert.That(hbmProperty.Access, Is.Not.StringContaining("field")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs index 3d02323ec0a..6051e1dcf3d 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs @@ -30,10 +30,10 @@ public void WhenClassWithoutPoidNorGeeneratorThenApplyGuid() var hbmClass = hbmMapping.RootClasses[0]; var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.generator.Should().Not.Be.Null(); - hbmId.generator.@class.Should().Be("guid"); - hbmId.type1.Should().Be("Guid"); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.generator, Is.Not.Null); + Assert.That(hbmId.generator.@class, Is.EqualTo("guid")); + Assert.That(hbmId.type1, Is.EqualTo("Guid")); } [Test] @@ -45,10 +45,10 @@ public void WhenClassWithoutPoidWithGeneratorThenApplyDefinedGenerator() var hbmClass = hbmMapping.RootClasses[0]; var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.generator.Should().Not.Be.Null(); - hbmId.generator.@class.Should().Be("native"); - hbmId.type1.Should().Be(Generators.Native.DefaultReturnType.GetNhTypeName()); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.generator, Is.Not.Null); + Assert.That(hbmId.generator.@class, Is.EqualTo("native")); + Assert.That(hbmId.type1, Is.EqualTo(Generators.Native.DefaultReturnType.GetNhTypeName())); } [Test] @@ -59,7 +59,7 @@ public void WhenPoidNoSetterThenApplyNosetter() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Id.access.Should().Be("nosetter.camelcase-underscore"); + Assert.That(hbmClass.Id.access, Is.EqualTo("nosetter.camelcase-underscore")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs index 9f4834f1231..774398a1715 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs @@ -33,8 +33,8 @@ public void WhenPropertyVersionFromBaseEntityThenFindItAsVersion() var hbmClass = hbmMapping.RootClasses[0]; var hbmVersion = hbmClass.Version; - hbmVersion.Should().Not.Be.Null(); - hbmVersion.name.Should().Be("Version"); + Assert.That(hbmVersion, Is.Not.Null); + Assert.That(hbmVersion.name, Is.EqualTo("Version")); } [Test] @@ -54,10 +54,9 @@ public void WhenVersionFromBaseEntityThenShouldntMapVersionAsProperty() var hbmClass = hbmMapping.RootClasses[0]; var hbmVersion = hbmClass.Version; - hbmVersion.Should().Not.Be.Null(); - hbmVersion.name.Should().Be("Version"); - - hbmClass.Properties.Should("because one is the POID and the other is the version").Be.Empty(); + Assert.That(hbmVersion, Is.Not.Null); + Assert.That(hbmVersion.name, Is.EqualTo("Version")); + Assert.That(hbmClass.Properties, Is.Empty, "because one is the POID and the other is the version"); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs b/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs index 142563d2853..0e12f6f3a8e 100644 --- a/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs +++ b/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs @@ -18,7 +18,7 @@ private class MyClass public void WhenMergeWithNullThenNotThrow() { var emptyHolder = new CustomizersHolder(); - emptyHolder.Executing(x=> x.Merge(null)).NotThrows(); + Assert.That(() => emptyHolder.Merge(null), Throws.Nothing); } [Test] @@ -32,7 +32,7 @@ public void MergeShouldMergeAnyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IAnyMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -46,7 +46,7 @@ public void MergeShouldMergeBagPropertiesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IBagPropertiesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -60,7 +60,7 @@ public void MergeShouldMergeIdBagPropertiesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IIdBagPropertiesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -74,7 +74,7 @@ public void MergeShouldMergeCollectionPropertiesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IBagPropertiesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -88,7 +88,7 @@ public void MergeShouldMergeElementMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IElementMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -102,7 +102,7 @@ public void MergeShouldMergeManyToManyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IManyToManyMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -116,7 +116,7 @@ public void MergeShouldMergeManyToAnyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IManyToAnyMapper) null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -130,7 +130,7 @@ public void MergeShouldMergeOneToManyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IOneToManyMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -144,7 +144,7 @@ public void MergeShouldMergeComponentAttributesMapperOnProperty() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IComponentAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -158,7 +158,7 @@ public void MergeShouldMergeListPropertiesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IListPropertiesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -172,7 +172,7 @@ public void MergeShouldMergeManyToOneMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IManyToOneMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -186,7 +186,7 @@ public void MergeShouldMergeMapPropertiesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IMapPropertiesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -200,7 +200,7 @@ public void MergeShouldMergeMapKeyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IMapKeyMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -214,7 +214,7 @@ public void MergeShouldMergeMapKeyManyToManyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IMapKeyManyToManyMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -228,7 +228,7 @@ public void MergeShouldMergeOneToOneMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IOneToOneMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -242,7 +242,7 @@ public void MergeShouldMergePropertyMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IPropertyMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -256,7 +256,7 @@ public void MergeShouldMergeSetPropertiesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (ISetPropertiesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -270,7 +270,7 @@ public void MergeShouldMergeJoinedSubclassAttributesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(typeof(MyClass), (IJoinedSubclassAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -284,7 +284,7 @@ public void MergeShouldMergeClassMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(typeof(MyClass), (IClassMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -298,7 +298,7 @@ public void MergeShouldMergeSubclassMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(typeof(MyClass), (ISubclassMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -312,7 +312,7 @@ public void MergeShouldMergeJoinAttributesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(typeof(MyClass), (IJoinAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -326,7 +326,7 @@ public void MergeShouldMergeUnionSubclassAttributesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(typeof(MyClass), (IUnionSubclassAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -340,7 +340,7 @@ public void MergeShouldMergeComponentAttributesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(typeof(MyClass), (IComponentAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -354,7 +354,7 @@ public void MergeShouldMergeDynamicComponentAttributesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IDynamicComponentAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -368,7 +368,7 @@ public void MergeShouldMergeComponentAsIdAttributesMapper() emptyHolder.Merge(holder); emptyHolder.InvokeCustomizers(propertyPath, (IComponentAsIdAttributesMapper)null); - called.Should().Be.True(); + Assert.That(called, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs index 3fedd3bf9b8..2dd98a36c2e 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs @@ -123,35 +123,35 @@ public void WhenMapPropertiesInTheBaseJumpedClassThenMapInInherited() inspector.IsRootEntity((type, declared) => type == typeof(Inherited)); var mapper = new ModelMapper(inspector); mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Property(x => x.Simple, map => map.Access(Accessor.Field)); - mc.Property(x => x.ComplexType, map => map.Access(Accessor.Field)); - mc.Bag(x => x.Bag, y => y.Access(Accessor.Field)); - mc.IdBag(x => x.IdBag, y => y.Access(Accessor.Field)); - mc.List(x => x.List, y => y.Access(Accessor.Field)); - mc.Set(x => x.Set, y => y.Access(Accessor.Field)); - mc.Map(x => x.Map, y => y.Access(Accessor.Field)); + { + mc.Id(x => x.Id); + mc.Property(x => x.Simple, map => map.Access(Accessor.Field)); + mc.Property(x => x.ComplexType, map => map.Access(Accessor.Field)); + mc.Bag(x => x.Bag, y => y.Access(Accessor.Field)); + mc.IdBag(x => x.IdBag, y => y.Access(Accessor.Field)); + mc.List(x => x.List, y => y.Access(Accessor.Field)); + mc.Set(x => x.Set, y => y.Access(Accessor.Field)); + mc.Map(x => x.Map, y => y.Access(Accessor.Field)); mc.OneToOne(x => x.OneToOne, y => y.Access(Accessor.Field)); mc.ManyToOne(x => x.ManyToOne, y => y.Access(Accessor.Field)); mc.Any(x => x.Any, typeof(int), y => y.Access(Accessor.Field)); mc.Component(x => x.DynamicCompo, new { A = 2 }, y => y.Access(Accessor.Field)); mc.Component(x => x.Compo, y => - { - y.Access(Accessor.Field); - y.Property(c => c.Something); - }); - }); + { + y.Access(Accessor.Field); + y.Property(c => c.Something); + }); + }); mapper.Class(mc =>{}); var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); var hbmClass = mappings.RootClasses[0]; - mappings.JoinedSubclasses.Should().Be.Empty(); - hbmClass.Properties.Select(p => p.Name).Should().Have.SameValuesAs("Simple", "ComplexType", "Bag", "IdBag", "List", "Set", "Map", "Compo", "OneToOne", "ManyToOne", "Any", "DynamicCompo"); - hbmClass.Properties.Select(p => p.Access).All(x => x.Satisfy(access => access.Contains("field."))); + Assert.That(mappings.JoinedSubclasses, Is.Empty); + Assert.That(hbmClass.Properties.Select(p => p.Name), Is.EquivalentTo(new [] {"Simple", "ComplexType", "Bag", "IdBag", "List", "Set", "Map", "Compo", "OneToOne", "ManyToOne", "Any", "DynamicCompo"})); + Assert.That(hbmClass.Properties.Select(p => p.Access).All(x => x.StartsWith("field.")), Is.True); } - [Test] + [Test] public void WhenMapPropertiesInTheBaseJumpedClassUsingMemberNameThenMapInInherited() { // ignoring MyClass and using Inherited, as root-class, I will try to map all properties using the base class. @@ -161,117 +161,109 @@ public void WhenMapPropertiesInTheBaseJumpedClassUsingMemberNameThenMapInInherit inspector.IsRootEntity((type, declared) => type == typeof(Inherited)); var mapper = new ModelMapper(inspector); mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Property("Simple", map => map.Access(Accessor.Field)); - mc.Property("ComplexType", map => map.Access(Accessor.Field)); - mc.Bag("Bag", y => y.Access(Accessor.Field)); - mc.IdBag("IdBag", y => y.Access(Accessor.Field)); - mc.List("List", y => y.Access(Accessor.Field)); - mc.Set("Set", y => y.Access(Accessor.Field)); - mc.Map("Map", y => y.Access(Accessor.Field)); - mc.OneToOne("OneToOne", y => y.Access(Accessor.Field)); - mc.ManyToOne("ManyToOne", y => y.Access(Accessor.Field)); - mc.Any("Any", typeof (int), y => y.Access(Accessor.Field)); - mc.Component("DynamicCompo", new {A = 2}, y => y.Access(Accessor.Field)); - mc.Component("Compo", y => - { - y.Access(Accessor.Field); - y.Property(c => c.Something); - }); - }); + { + mc.Id(x => x.Id); + mc.Property("Simple", map => map.Access(Accessor.Field)); + mc.Property("ComplexType", map => map.Access(Accessor.Field)); + mc.Bag("Bag", y => y.Access(Accessor.Field)); + mc.IdBag("IdBag", y => y.Access(Accessor.Field)); + mc.List("List", y => y.Access(Accessor.Field)); + mc.Set("Set", y => y.Access(Accessor.Field)); + mc.Map("Map", y => y.Access(Accessor.Field)); + mc.OneToOne("OneToOne", y => y.Access(Accessor.Field)); + mc.ManyToOne("ManyToOne", y => y.Access(Accessor.Field)); + mc.Any("Any", typeof (int), y => y.Access(Accessor.Field)); + mc.Component("DynamicCompo", new {A = 2}, y => y.Access(Accessor.Field)); + mc.Component("Compo", y => + { + y.Access(Accessor.Field); + y.Property(c => c.Something); + }); + }); mapper.Class(mc => { }); HbmMapping mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); HbmClass hbmClass = mappings.RootClasses[0]; - mappings.JoinedSubclasses.Should().Be.Empty(); - hbmClass.Properties.Select(p => p.Name).Should().Have.SameValuesAs("Simple", "ComplexType", "Bag", "IdBag", "List", "Set", "Map", "Compo", "OneToOne", "ManyToOne", "Any", - "DynamicCompo"); - hbmClass.Properties.Select(p => p.Access).All(x => x.Satisfy(access => access.Contains("field."))); + Assert.That(mappings.JoinedSubclasses, Is.Empty); + Assert.That(hbmClass.Properties.Select(p => p.Name), Is.EquivalentTo(new [] {"Simple", "ComplexType", "Bag", "IdBag", "List", "Set", "Map", "Compo", "OneToOne", "ManyToOne", "Any", "DynamicCompo"})); + Assert.That(hbmClass.Properties.Select(p => p.Access).All(a => a.StartsWith("field.")), Is.True); } [Test] public void WhenMapBagWithWrongElementTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Bag("Bag", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Bag("Bag", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapIdBagWithWrongElementTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.IdBag("IdBag", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.IdBag("IdBag", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapSetWithWrongElementTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Set("Set", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Set("Set", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapListWithWrongElementTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Set("Set", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Set("Set", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapDictionaryWithWrongKeyTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Map("Map", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Map("Map", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapDictionaryWithWrongValueTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Map("Map", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Map("Map", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapComponentWithWrongElementTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Component("Compo", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Component("Compo", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } @@ -279,36 +271,33 @@ public void WhenMapComponentWithWrongElementTypeThenThrows() public void WhenMapOneToOneWithWrongTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.OneToOne("OneToOne", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.OneToOne("OneToOne", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapManyToOneWithWrongTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.ManyToOne("ManyToOne", y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.ManyToOne("ManyToOne", y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } [Test] public void WhenMapAnyWithWrongTypeThenThrows() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Any("Any", typeof(int),y => y.Access(Accessor.Field)); - })).Should().Throw(); + Assert.That(() => mapper.Class(mc => + { + mc.Id(x => x.Id); + mc.Any("Any", typeof(int),y => y.Access(Accessor.Field)); + }), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs index cd530dd8a19..bb2aaf3cd86 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs @@ -102,32 +102,32 @@ private void VerifyMapping(HbmMapping mapping, bool hasParent, params string[] p HbmClass rc = mapping.RootClasses.First(r => r.Name.Contains("Person")); var relation = rc.Properties.First(p => p.Name == "Addresses"); var collection = (HbmBag)relation; - collection.ElementRelationship.Should().Be.OfType(); + Assert.That(collection.ElementRelationship, Is.TypeOf()); var elementRelation = (HbmCompositeElement)collection.ElementRelationship; - elementRelation.Class.Should().Contain("Address"); + Assert.That(elementRelation.Class, Is.StringContaining("Address")); // This test was modified because when the "owner" is an entity it can be mapped as many-to-one or as parent and without an explicit // definition of the property representing the bidiretional-relation we can't know is the mapping element (many-to-one or parent) - elementRelation.Properties.Should().Have.Count.EqualTo(properties.Length); - elementRelation.Properties.Select(p => p.Name).Should().Have.SameValuesAs(properties); + Assert.That(elementRelation.Properties.Count(), Is.EqualTo(properties.Length)); + Assert.That(elementRelation.Properties.Select(p => p.Name), Is.EquivalentTo(properties)); if (hasParent) { - elementRelation.Parent.Should().Not.Be.Null(); - elementRelation.Parent.name.Should().Be.EqualTo("Owner"); + Assert.That(elementRelation.Parent, Is.Not.Null); + Assert.That(elementRelation.Parent.name, Is.EqualTo("Owner")); } else { - elementRelation.Parent.Should().Be.Null(); + Assert.That(elementRelation.Parent, Is.Null); } // Nested var propertyNestedRelation = elementRelation.Properties.FirstOrDefault(p => p.Name == "Number"); - propertyNestedRelation.Should().Not.Be.Null().And.Be.OfType(); + Assert.That(propertyNestedRelation, Is.Not.Null.And.TypeOf()); var nestedRelation = (HbmNestedCompositeElement) propertyNestedRelation; - nestedRelation.Class.Should().Contain("Number"); - nestedRelation.Properties.Should().Have.Count.EqualTo(1); - nestedRelation.Parent.Should().Not.Be.Null(); - nestedRelation.Parent.name.Should().Be.EqualTo("OwnerAddress"); + Assert.That(nestedRelation.Class, Is.StringContaining("Number")); + Assert.That(nestedRelation.Properties.Count(), Is.EqualTo(1)); + Assert.That(nestedRelation.Parent, Is.Not.Null); + Assert.That(nestedRelation.Parent.name, Is.EqualTo("OwnerAddress")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs index 942df9e3864..aca7d9c7ffd 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs @@ -57,17 +57,17 @@ public void WhenMapClassWithoutIdThenApplyTypeOfGeneratorDef() { var mapper = new ModelMapper(); mapper.Class(ca => ca.Id(null, map => - { - map.Column("MyClassId"); - map.Generator(Generators.HighLow, gmap => gmap.Params(new { max_low = 100 })); - })); + { + map.Column("MyClassId"); + map.Generator(Generators.HighLow, gmap => gmap.Params(new { max_low = 100 })); + })); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.column1.Should().Be("MyClassId"); - hbmId.type1.Should().Be(NHibernateUtil.Int32.Name); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.column1, Is.EqualTo("MyClassId")); + Assert.That(hbmId.type1, Is.EqualTo(NHibernateUtil.Int32.Name)); } [Test] @@ -80,11 +80,11 @@ public void WhenMapClassWithoutIdAndWithoutGeneratorThenTypeShouldHaveValue() })); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.column1.Should().Be("MyClassId"); - hbmId.type1.Should().Not.Be.Null(); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.column1, Is.EqualTo("MyClassId")); + Assert.That(hbmId.type1, Is.Not.Null); } [Test] @@ -136,18 +136,18 @@ public void WhenDuplicateClassDoesNotDuplicateMapping() private void ModelIsWellFormed(HbmMapping hbmMapping) { var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.name.Should().Be("Id"); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.name, Is.EqualTo("Id")); var hbmGenerator = hbmId.generator; - hbmGenerator.Should().Not.Be.Null(); - hbmGenerator.@class.Should().Be("hilo"); - hbmGenerator.param[0].name.Should().Be("max_low"); - hbmGenerator.param[0].GetText().Should().Be("100"); + Assert.That(hbmGenerator, Is.Not.Null); + Assert.That(hbmGenerator.@class, Is.EqualTo("hilo")); + Assert.That(hbmGenerator.param[0].name, Is.EqualTo("max_low")); + Assert.That(hbmGenerator.param[0].GetText(), Is.EqualTo("100")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.name.Should().Be("Something"); - hbmProperty.length.Should().Be("150"); + Assert.That(hbmProperty.name, Is.EqualTo("Something")); + Assert.That(hbmProperty.length, Is.EqualTo("150")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs index 7fe9afa04c5..db110d09794 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs @@ -54,8 +54,8 @@ public void ComponentMappingJustOnceDemo() var hbmClass = hbmMapping.RootClasses[0]; var hbmComponents = hbmClass.Properties.OfType(); - hbmComponents.Should().Have.Count.EqualTo(2); - hbmComponents.Select(x => x.Name).Should().Have.SameValuesAs("Name","Address"); + Assert.That(hbmComponents.Count(), Is.EqualTo(2)); + Assert.That(hbmComponents.Select(x => x.Name), Is.EquivalentTo(new [] {"Name", "Address"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs index 929f0ddd4e7..af1aa1a035d 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs @@ -32,11 +32,11 @@ public void MapClassWithConventions() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.column1.Should().Be("MYCLASSID"); + Assert.That(hbmId.column1, Is.EqualTo("MYCLASSID")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.column.Should().Be("SOMETHING"); + Assert.That(hbmProperty.column, Is.EqualTo("SOMETHING")); } [Test] @@ -57,11 +57,11 @@ public void MapClassWithHardConventions() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.column1.Should().Be("MYCLASSID"); + Assert.That(hbmId.column1, Is.EqualTo("MYCLASSID")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.column.Should().Be("SOMETHING"); + Assert.That(hbmProperty.column, Is.EqualTo("SOMETHING")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs index d976324c61f..c60ef8fc55c 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs @@ -51,9 +51,9 @@ public void WhenPropertyUsedAsComposedIdThenRegister() var mapper = new ModelMapper(inspector); mapper.Class(map => map.ComponentAsId(x => x.Id)); - inspector.IsPersistentId(For.Property(x => x.Id)).Should().Be.True(); - inspector.IsPersistentProperty(For.Property(x => x.Id)).Should().Be.True(); - inspector.IsComponent(typeof(IMyCompo)).Should().Be.True(); + Assert.That(inspector.IsPersistentId(For.Property(x => x.Id)), Is.True); + Assert.That(inspector.IsPersistentProperty(For.Property(x => x.Id)), Is.True); + Assert.That(inspector.IsComponent(typeof(IMyCompo)), Is.True); } [Test] @@ -61,18 +61,18 @@ public void WhenMapComponentAsIdThenMapItAndItsProperties() { var mapper = new ModelMapper(); mapper.Class(map => map.ComponentAsId(x => x.Id, idmap => - { - idmap.Property(y => y.Code); - idmap.Property(y => y.Name); - })); + { + idmap.Property(y => y.Code); + idmap.Property(y => y.Name); + })); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; var keyProperties = hbmCompositId.Items.OfType(); - keyProperties.Should().Have.Count.EqualTo(2); - keyProperties.Select(x => x.Name).Should().Have.SameValuesAs("Code", "Name"); - hbmCompositId.name.Should().Be(For.Property(x => x.Id).Name); + Assert.That(keyProperties.Count(), Is.EqualTo(2)); + Assert.That(keyProperties.Select(x => x.Name), Is.EquivalentTo(new [] {"Code", "Name"})); + Assert.That(hbmCompositId.name, Is.EqualTo(For.Property(x => x.Id).Name)); } [Test] @@ -88,8 +88,8 @@ public void WhenMapComponentAsIdAttributesThenMapAttributes() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; - hbmCompositId.access.Should().Contain("field"); - hbmCompositId.@class.Should().Contain("MyComponent"); + Assert.That(hbmCompositId.access, Is.StringContaining("field")); + Assert.That(hbmCompositId.@class, Is.StringContaining("MyComponent")); } [Test] @@ -97,19 +97,19 @@ public void WhenMapComponentUsedAsComponentAsIdThenMapItAndItsProperties() { var mapper = new ModelMapper(); mapper.Component(x => - { + { x.Property(y => y.Code, pm => pm.Length(10)); x.Property(y => y.Name); - }); + }); mapper.Class(map => map.ComponentAsId(x => x.Id)); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; var keyProperties = hbmCompositId.Items.OfType(); - keyProperties.Should().Have.Count.EqualTo(2); - keyProperties.Select(x => x.Name).Should().Have.SameValuesAs("Code", "Name"); - keyProperties.Where(x => x.Name == "Code").Single().length.Should().Be("10"); + Assert.That(keyProperties.Count(), Is.EqualTo(2)); + Assert.That(keyProperties.Select(x => x.Name), Is.EquivalentTo(new [] {"Code", "Name"})); + Assert.That(keyProperties.Single(x => x.Name == "Code").length, Is.EqualTo("10")); } [Test] @@ -131,7 +131,7 @@ public void WhenMapCustomizedComponentUsedAsComponentAsIdWithCustomizationThenUs var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; var keyProperties = hbmCompositId.Items.OfType(); - keyProperties.Select(x => x.length).Should().Have.SameValuesAs("15", "25"); + Assert.That(keyProperties.Select(x => x.length), Is.EquivalentTo(new [] {"15", "25"})); } [Test] @@ -148,8 +148,8 @@ public void WhenMapAttributesOfCustomizedComponentUsedAsComponentAsIdWithCustomi var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; - hbmCompositId.access.Should().Contain("field"); - hbmCompositId.@class.Should().Contain("MyComponent"); + Assert.That(hbmCompositId.access, Is.StringContaining("field")); + Assert.That(hbmCompositId.@class, Is.StringContaining("MyComponent")); } [Test] @@ -166,8 +166,8 @@ public void WhenMapAttributesOfCustomizedComponentUsedAsComponentAsIdWithCustomi var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; - hbmCompositId.access.Should().Contain("nosetter"); - hbmCompositId.@class.Should().Contain("MyComponent"); + Assert.That(hbmCompositId.access, Is.StringContaining("nosetter")); + Assert.That(hbmCompositId.@class, Is.StringContaining("MyComponent")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs index b731ea91b4c..0ade96cd566 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs @@ -36,18 +36,18 @@ public void WhenPropertyUsedAsComposedIdThenRegister() var mapper = new ModelMapper(inspector); mapper.Class(map => map.ComposedId(cm=> - { + { cm.Property(x => x.Code); cm.ManyToOne(x => x.Relation); - }) - ); + }) + ); - inspector.IsMemberOfComposedId(For.Property(x => x.Code)).Should().Be.True(); - inspector.IsMemberOfComposedId(For.Property(x => x.Relation)).Should().Be.True(); - inspector.IsPersistentProperty(For.Property(x => x.Code)).Should().Be.True(); - inspector.IsPersistentProperty(For.Property(x => x.Relation)).Should().Be.True(); - inspector.IsPersistentId(For.Property(x => x.Code)).Should().Be.False(); - inspector.IsPersistentId(For.Property(x => x.Relation)).Should().Be.False(); + Assert.That(inspector.IsMemberOfComposedId(For.Property(x => x.Code)), Is.True); + Assert.That(inspector.IsMemberOfComposedId(For.Property(x => x.Relation)), Is.True); + Assert.That(inspector.IsPersistentProperty(For.Property(x => x.Code)), Is.True); + Assert.That(inspector.IsPersistentProperty(For.Property(x => x.Relation)), Is.True); + Assert.That(inspector.IsPersistentId(For.Property(x => x.Code)), Is.False); + Assert.That(inspector.IsPersistentId(For.Property(x => x.Relation)), Is.False); } [Test] @@ -64,8 +64,8 @@ public void WhenPropertyUsedAsComposedIdThenNotUsedAsSimpleProperties() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositId = hbmClass.CompositeId; - hbmCompositId.Items.Should().Have.Count.EqualTo(2); - hbmClass.Properties.Should().Be.Empty(); + Assert.That(hbmCompositId.Items, Has.Length.EqualTo(2)); + Assert.That(hbmClass.Properties, Is.Empty); } [Test] @@ -73,21 +73,21 @@ public void WhenPropertyUsedAsComposedIdAndPropertiesThenNotUsedAsSimpleProperti { var mapper = new ModelMapper(); mapper.Class(map => - { - map.ComposedId(cm => - { - cm.Property(x => x.Code); - cm.ManyToOne(x => x.Relation); - }); - map.Property(x => x.Code); - map.ManyToOne(x => x.Relation); - } + { + map.ComposedId(cm => + { + cm.Property(x => x.Code); + cm.ManyToOne(x => x.Relation); + }); + map.Property(x => x.Code); + map.ManyToOne(x => x.Relation); + } ); HbmMapping hbmMapping = mapper.CompileMappingFor(new[] {typeof (MyClass)}); HbmClass hbmClass = hbmMapping.RootClasses[0]; HbmCompositeId hbmCompositId = hbmClass.CompositeId; - hbmCompositId.Items.Should().Have.Count.EqualTo(2); - hbmClass.Properties.Should().Be.Empty(); + Assert.That(hbmCompositId.Items, Has.Length.EqualTo(2)); + Assert.That(hbmClass.Properties, Is.Empty); } [Test] @@ -102,10 +102,10 @@ public void WhenPropertyUsedAsComposedIdAndPropertiesAndNaturalIdThenMapOnlyAsCo cm.ManyToOne(x => x.Relation); }); map.NaturalId(nm => - { + { nm.Property(x => x.Code); nm.ManyToOne(x => x.Relation); - }); + }); map.Property(x => x.Code); map.ManyToOne(x => x.Relation); } @@ -113,9 +113,9 @@ public void WhenPropertyUsedAsComposedIdAndPropertiesAndNaturalIdThenMapOnlyAsCo HbmMapping hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); HbmClass hbmClass = hbmMapping.RootClasses[0]; HbmCompositeId hbmCompositId = hbmClass.CompositeId; - hbmCompositId.Items.Should().Have.Count.EqualTo(2); - hbmClass.naturalid.Should().Be.Null(); - hbmClass.Properties.Should().Be.Empty(); + Assert.That(hbmCompositId.Items, Has.Length.EqualTo(2)); + Assert.That(hbmClass.naturalid, Is.Null); + Assert.That(hbmClass.Properties, Is.Empty); } [Test] @@ -133,8 +133,7 @@ public void WhenSuperclassPropertyUsedAsComposedIdThenRegister() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyOtherSubclass) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmCompositeId = hbmClass.CompositeId; - hbmCompositeId.Items.Should().Have.Count.EqualTo(2); + Assert.That(hbmCompositeId.Items, Has.Length.EqualTo(2)); } - } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs index 39e2c8a30bf..444017ac25d 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs @@ -70,7 +70,7 @@ public void WhenRegisterClassMappingThroughCollectionOfTypeThenMapTheClass() public void WhenRegisterClassMappingThroughCollectionOfTypeThenFilterValidMappings() { var mapper = new ModelMapper(); - mapper.Executing(x => x.AddMappings(new[] { typeof(object), typeof(MyClassMap), typeof(MyClass), typeof(MyClassBaseMap<>) })).NotThrows(); + Assert.That(() => mapper.AddMappings(new[] { typeof(object), typeof(MyClassMap), typeof(MyClass), typeof(MyClassBaseMap<>) }), Throws.Nothing); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); ModelIsWellFormed(hbmMapping); @@ -89,18 +89,18 @@ public void WhenRegisterClassMappingThroughTypeThenGetMapping() private void ModelIsWellFormed(HbmMapping hbmMapping) { var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.name.Should().Be("Id"); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.name, Is.EqualTo("Id")); var hbmGenerator = hbmId.generator; - hbmGenerator.Should().Not.Be.Null(); - hbmGenerator.@class.Should().Be("hilo"); - hbmGenerator.param[0].name.Should().Be("max_low"); - hbmGenerator.param[0].GetText().Should().Be("100"); + Assert.That(hbmGenerator, Is.Not.Null); + Assert.That(hbmGenerator.@class, Is.EqualTo("hilo")); + Assert.That(hbmGenerator.param[0].name, Is.EqualTo("max_low")); + Assert.That(hbmGenerator.param[0].GetText(), Is.EqualTo("100")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.name.Should().Be("Something"); - hbmProperty.length.Should().Be("150"); + Assert.That(hbmProperty.name, Is.EqualTo("Something")); + Assert.That(hbmProperty.length, Is.EqualTo("150")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs index dfc9200e460..d09168c51bc 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs @@ -69,15 +69,15 @@ public void WhenRegisterClassMappingThroughTypeThenMapTheClass() private void ModelIsWellFormed(HbmMapping hbmMapping) { var hbmClass = hbmMapping.RootClasses.Single(); - hbmClass.Properties.Should().Have.Count.EqualTo(1); + Assert.That(hbmClass.Properties.Count(), Is.EqualTo(1)); var hbmComponent = hbmClass.Properties.OfType().Single(); - hbmComponent.name.Should().Be("Name"); - hbmComponent.Properties.Should().Have.Count.EqualTo(2); + Assert.That(hbmComponent.name, Is.EqualTo("Name")); + Assert.That(hbmComponent.Properties.Count(), Is.EqualTo(2)); var hbmp1 = hbmComponent.Properties.OfType().Single(x => x.name == "First"); var hbmp2 = hbmComponent.Properties.OfType().Single(x => x.name == "Last"); - hbmp1.length.Should().Be("20"); - hbmp2.length.Should().Be("30"); - hbmComponent.unique.Should().Be.EqualTo(true); + Assert.That(hbmp1.length, Is.EqualTo("20")); + Assert.That(hbmp2.length, Is.EqualTo("30")); + Assert.That(hbmComponent.unique, Is.EqualTo(true)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs index 678aa2c3342..7623575b262 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs @@ -64,11 +64,11 @@ public void WhenRegisterClassMappingThroughTypeThenMapTheClass() private void ModelIsWellFormed(HbmMapping hbmMapping) { var hbmClass = hbmMapping.JoinedSubclasses.Single(); - hbmClass.Should().Not.Be.Null(); - hbmClass.extends.Should().Contain("MyClass"); + Assert.That(hbmClass, Is.Not.Null); + Assert.That(hbmClass.extends, Is.StringContaining("MyClass")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.name.Should().Be("SomethingElse"); - hbmProperty.length.Should().Be("15"); + Assert.That(hbmProperty.name, Is.EqualTo("SomethingElse")); + Assert.That(hbmProperty.length, Is.EqualTo("15")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs index 98ccd4c36f5..0bda71bff9f 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs @@ -18,14 +18,14 @@ public WithOutPublicParameterLessCtor(string something) public void WhenRegisterClassMappingThroughTypeThenCheckIConformistHoldersProvider() { var mapper = new ModelMapper(); - mapper.Executing(x => x.AddMapping(typeof(object))).Throws().And.ValueOf.Message.Should().Contain("IConformistHoldersProvider"); + Assert.That(() => mapper.AddMapping(typeof (object)), Throws.TypeOf().And.Message.ContainsSubstring("IConformistHoldersProvider")); } [Test] public void WhenRegisterClassMappingThroughTypeThenCheckParameterLessCtor() { var mapper = new ModelMapper(); - mapper.Executing(x => x.AddMapping(typeof(WithOutPublicParameterLessCtor))).Throws(); + Assert.That(() => mapper.AddMapping(typeof (WithOutPublicParameterLessCtor)), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs index d685ec462a9..50d0afcebb7 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs @@ -64,11 +64,11 @@ public void WhenRegisterClassMappingThroughTypeThenMapTheClass() private void ModelIsWellFormed(HbmMapping hbmMapping) { var hbmClass = hbmMapping.SubClasses.Single(); - hbmClass.Should().Not.Be.Null(); - hbmClass.extends.Should().Contain("MyClass"); + Assert.That(hbmClass, Is.Not.Null); + Assert.That(hbmClass.extends, Is.StringContaining("MyClass")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.name.Should().Be("SomethingElse"); - hbmProperty.length.Should().Be("15"); + Assert.That(hbmProperty.name, Is.EqualTo("SomethingElse")); + Assert.That(hbmProperty.length, Is.EqualTo("15")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs index 883f012fc13..c11751de6a1 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs @@ -64,11 +64,11 @@ public void WhenRegisterClassMappingThroughTypeThenMapTheClass() private void ModelIsWellFormed(HbmMapping hbmMapping) { var hbmClass = hbmMapping.UnionSubclasses.Single(); - hbmClass.Should().Not.Be.Null(); - hbmClass.extends.Should().Contain("MyClass"); + Assert.That(hbmClass, Is.Not.Null); + Assert.That(hbmClass.extends, Is.StringContaining("MyClass")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.name.Should().Be("SomethingElse"); - hbmProperty.length.Should().Be("15"); + Assert.That(hbmProperty.name, Is.EqualTo("SomethingElse")); + Assert.That(hbmProperty.length, Is.EqualTo("15")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs index accad2b57a1..09715f95cc2 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs @@ -34,8 +34,8 @@ public void WhenMapDynCompoThenMapItAndItsProperties() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(Person) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmDynamicComponent = hbmClass.Properties.OfType().SingleOrDefault(); - hbmDynamicComponent.Should().Not.Be.Null(); - hbmDynamicComponent.Properties.Select(x=> x.Name).Should().Have.SameValuesAs("MyInt", "MyDate"); + Assert.That(hbmDynamicComponent, Is.Not.Null); + Assert.That(hbmDynamicComponent.Properties.Select(x=> x.Name), Is.EquivalentTo(new [] {"MyInt", "MyDate"})); } [Test] @@ -51,7 +51,7 @@ public void WhenMapDynCompoPropertiesThenShouldAssignPropertyType() var hbmMapping = mapper.CompileMappingFor(new[] { typeof(Person) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmDynamicComponent = hbmClass.Properties.OfType().Single(); - hbmDynamicComponent.Properties.OfType().Select(x => x.type1).All(x=> x.Satisfy(value=> !string.IsNullOrEmpty(value))); + Assert.That(hbmDynamicComponent.Properties.OfType().All(x => !string.IsNullOrEmpty(x.type1)), Is.True); } [Test] @@ -62,23 +62,23 @@ public void WhenMapDynCompoAttributesThenMapAttributes() { map.Id(x => x.Id, idmap => { }); map.Component(x => x.Info, new { MyInt = 5}, z => - { + { z.Access(Accessor.Field); z.Insert(false); z.Update(false); z.Unique(true); z.OptimisticLock(false); - }); + }); }); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(Person) }); var hbmClass = hbmMapping.RootClasses[0]; var hbmDynamicComponent = hbmClass.Properties.OfType().SingleOrDefault(); - hbmDynamicComponent.access.Should().Contain("field"); - hbmDynamicComponent.insert.Should().Be.False(); - hbmDynamicComponent.update.Should().Be.False(); - hbmDynamicComponent.optimisticlock.Should().Be.False(); - hbmDynamicComponent.unique.Should().Be.True(); + Assert.That(hbmDynamicComponent.access, Is.StringContaining("field")); + Assert.That(hbmDynamicComponent.insert, Is.False); + Assert.That(hbmDynamicComponent.update, Is.False); + Assert.That(hbmDynamicComponent.optimisticlock, Is.False); + Assert.That(hbmDynamicComponent.unique, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs index aa1455def93..67fac528f69 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs @@ -32,8 +32,8 @@ public void WhenIdBagWithManyToManyThenMapIt() var hbmMapping = mapper.CompileMappingFor(new[]{ typeof(Animal)}); var hbmClass = hbmMapping.RootClasses[0]; var hbmIdbag = hbmClass.Properties.OfType().SingleOrDefault(); - hbmIdbag.Should().Not.Be.Null(); - hbmIdbag.ElementRelationship.Should().Be.InstanceOf(); + Assert.That(hbmIdbag, Is.Not.Null); + Assert.That(hbmIdbag.ElementRelationship, Is.InstanceOf()); } [Test] @@ -45,7 +45,7 @@ public void WhenIdBagWithOneToManyThenThrow() map.Id(x => x.Id, idmap => { }); map.IdBag(x => x.Children, bag => { }, rel => rel.OneToMany()); }); - mapper.Executing(x=> x.CompileMappingFor(new[] { typeof(Animal) })).Throws(); + Assert.That(() => mapper.CompileMappingFor(new[] { typeof(Animal) }), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs index 10a83d16b21..8105d89e5b1 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs @@ -31,33 +31,32 @@ public void MapClassWithIdAndProperty() }); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.Should().Not.Be.Null(); + Assert.That(hbmClass, Is.Not.Null); var hbmId = hbmClass.Id; - hbmId.Should().Not.Be.Null(); - hbmId.name.Should().Be("id"); - hbmId.access.Should().Be("field"); + Assert.That(hbmId, Is.Not.Null); + Assert.That(hbmId.name, Is.EqualTo("id")); + Assert.That(hbmId.access, Is.EqualTo("field")); var hbmGenerator = hbmId.generator; - hbmGenerator.Should().Not.Be.Null(); - hbmGenerator.@class.Should().Be("hilo"); - hbmGenerator.param[0].name.Should().Be("max_low"); - hbmGenerator.param[0].GetText().Should().Be("100"); + Assert.That(hbmGenerator, Is.Not.Null); + Assert.That(hbmGenerator.@class, Is.EqualTo("hilo")); + Assert.That(hbmGenerator.param[0].name, Is.EqualTo("max_low")); + Assert.That(hbmGenerator.param[0].GetText(), Is.EqualTo("100")); var hbmVersion = hbmClass.Version; - hbmVersion.name.Should().Be("version"); + Assert.That(hbmVersion.name, Is.EqualTo("version")); var hbmProperty = hbmClass.Properties.OfType().Single(); - hbmProperty.name.Should().Be("something"); - hbmProperty.access.Should().Be("field"); - hbmProperty.length.Should().Be("150"); + Assert.That(hbmProperty.name, Is.EqualTo("something")); + Assert.That(hbmProperty.access, Is.EqualTo("field")); + Assert.That(hbmProperty.length, Is.EqualTo("150")); } [Test] public void WhenPrivateMemberDoesNotExistsThenThrow() { var mapper = new ModelMapper(); - Executing.This(() => - mapper.Class(ca => + Assert.That(() => mapper.Class(ca => { ca.Property("pizza", map => map.Length(150)); - })).Should().Throw(); + }), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs index 88f6f622515..35b81ce9bd2 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs @@ -39,17 +39,17 @@ public void WhenDefineNaturalIdThenRegister() nidm.Property(x => x.Name); nidm.ManyToOne(x => x.Related); nidm.Component(x => x.MyComponent, cmap => - { + { cmap.Property(y => y.FirstName); - }); + }); nidm.Any(x => x.Any, typeof(int), anymap => { }); }); }); - inspector.IsMemberOfNaturalId(For.Property(x => x.Name)).Should().Be.True(); - inspector.IsMemberOfNaturalId(For.Property(x => x.Related)).Should().Be.True(); - inspector.IsMemberOfNaturalId(For.Property(x => x.MyComponent)).Should().Be.True(); - inspector.IsMemberOfNaturalId(For.Property(x => x.Any)).Should().Be.True(); + Assert.That(inspector.IsMemberOfNaturalId(For.Property(x => x.Name)), Is.True); + Assert.That(inspector.IsMemberOfNaturalId(For.Property(x => x.Related)), Is.True); + Assert.That(inspector.IsMemberOfNaturalId(For.Property(x => x.MyComponent)), Is.True); + Assert.That(inspector.IsMemberOfNaturalId(For.Property(x => x.Any)), Is.True); } [Test] @@ -63,7 +63,7 @@ public void WhenDefineEmptyNaturalIdThenNoMapIt() }); var hbmMapping = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmMapping.RootClasses[0]; - hbmClass.naturalid.Should().Be.Null(); + Assert.That(hbmClass.naturalid, Is.Null); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs index ec16ba5335d..0a8a4f926f5 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs @@ -32,21 +32,21 @@ private HbmMapping GetMappingWithManyToOneInCompo() { var mapper = new ModelMapper(); mapper.Class(x => - { - x.Id(c => c.Id); - x.Component(c => c.Compo); - x.Bag(c => c.Compos, cm => { }); - }); + { + x.Id(c => c.Id); + x.Component(c => c.Compo); + x.Bag(c => c.Compos, cm => { }); + }); mapper.Component(x => - { - x.ManyToOne(c => c.AManyToOne); - x.Component(c => c.NestedCompo); - }); + { + x.ManyToOne(c => c.AManyToOne); + x.Component(c => c.NestedCompo); + }); mapper.Component(x => - { - x.Component(c => c.Owner); - x.Property(c => c.Something); - }); + { + x.Component(c => c.Owner); + x.Property(c => c.Something); + }); return mapper.CompileMappingForAllExplicitlyAddedEntities(); } @@ -81,9 +81,9 @@ public void WhenMapComoponetWithNestBidirectionalComponentThenMapParent() var hbmMyCompo = hbmClass.Properties.OfType().Single(); var hbmMyNestedCompo = hbmMyCompo.Properties.OfType().Single(); - hbmMyNestedCompo.Properties.Should().Have.Count.EqualTo(1); - hbmMyNestedCompo.Parent.Should().Not.Be.Null(); - hbmMyNestedCompo.Parent.name.Should().Be("Owner"); + Assert.That(hbmMyNestedCompo.Properties.Count(), Is.EqualTo(1)); + Assert.That(hbmMyNestedCompo.Parent, Is.Not.Null); + Assert.That(hbmMyNestedCompo.Parent.name, Is.EqualTo("Owner")); } [Test] @@ -97,9 +97,9 @@ public void WhenCollectionOfComoponetsWithNestBidirectionalComponentThenMapParen var hbmMyCompo = (HbmCompositeElement)hbmBag.ElementRelationship; var hbmMyNestedCompo = hbmMyCompo.Properties.OfType().Single(); - hbmMyNestedCompo.Properties.Should().Have.Count.EqualTo(1); - hbmMyNestedCompo.Parent.Should().Not.Be.Null(); - hbmMyNestedCompo.Parent.name.Should().Be("Owner"); + Assert.That(hbmMyNestedCompo.Properties.Count(), Is.EqualTo(1)); + Assert.That(hbmMyNestedCompo.Parent, Is.Not.Null); + Assert.That(hbmMyNestedCompo.Parent.name, Is.EqualTo("Owner")); } [Test] @@ -109,8 +109,8 @@ public void WhenMapComoponetWithManyToOneThenMapManyToOne() var hbmClass = mapping.RootClasses[0]; var hbmMyCompo = hbmClass.Properties.OfType().Single(); - hbmMyCompo.Properties.OfType().Should().Have.Count.EqualTo(1); - hbmMyCompo.Parent.Should().Be.Null(); + Assert.That(hbmMyCompo.Properties.OfType().Count(), Is.EqualTo(1)); + Assert.That(hbmMyCompo.Parent, Is.Null); } [Test] @@ -122,8 +122,8 @@ public void WhenCollectionOfComoponetsWithManyToOneThenMapManyToOne() var hbmBag = hbmClass.Properties.OfType().Single(); var hbmMyCompo = (HbmCompositeElement)hbmBag.ElementRelationship; - hbmMyCompo.Properties.OfType().Should().Have.Count.EqualTo(1); - hbmMyCompo.Parent.Should().Be.Null(); + Assert.That(hbmMyCompo.Properties.OfType().Count(), Is.EqualTo(1)); + Assert.That(hbmMyCompo.Parent, Is.Null); } [Test] @@ -133,9 +133,9 @@ public void WhenMapComoponetWithParentThenMapParent() var hbmClass = mapping.RootClasses[0]; var hbmMyCompo = hbmClass.Properties.OfType().Single(); - hbmMyCompo.Properties.OfType().Should().Be.Empty(); - hbmMyCompo.Parent.Should().Not.Be.Null(); - hbmMyCompo.Parent.name.Should().Be("AManyToOne"); + Assert.That(hbmMyCompo.Properties.OfType(), Is.Empty); + Assert.That(hbmMyCompo.Parent, Is.Not.Null); + Assert.That(hbmMyCompo.Parent.name, Is.EqualTo("AManyToOne")); } [Test] @@ -147,9 +147,9 @@ public void WhenCollectionOfComoponetsWithParentThenMapParent() var hbmBag = hbmClass.Properties.OfType().Single(); var hbmMyCompo = (HbmCompositeElement)hbmBag.ElementRelationship; - hbmMyCompo.Properties.OfType().Should().Be.Empty(); - hbmMyCompo.Parent.Should().Not.Be.Null(); - hbmMyCompo.Parent.name.Should().Be("AManyToOne"); + Assert.That(hbmMyCompo.Properties.OfType(), Is.Empty); + Assert.That(hbmMyCompo.Parent, Is.Not.Null); + Assert.That(hbmMyCompo.Parent.name, Is.EqualTo("AManyToOne")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs index 1f28f50a017..9877b5e9b1c 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs @@ -18,7 +18,7 @@ public void WhenPropertyUsedAsPoidThenRegister() var mapper = new ModelMapper(inspector); mapper.Class(map => map.Id(x => x.Id, idmap => { })); - inspector.IsPersistentId(For.Property(x => x.Id)).Should().Be.True(); + Assert.That(inspector.IsPersistentId(For.Property(x => x.Id)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs index 8891176166c..a407efeb333 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs @@ -40,7 +40,7 @@ public void WhenSplittedPropertiesThenRegisterSplitGroupIds() }); IEnumerable tablePerClassSplits = inspector.GetPropertiesSplits(typeof(MyClass)); - tablePerClassSplits.Should().Have.SameValuesAs("MyClassSplit1", "MyClassSplit2"); + Assert.That(tablePerClassSplits, Is.EquivalentTo(new [] {"MyClassSplit1", "MyClassSplit2"})); } [Test] @@ -64,13 +64,13 @@ public void WhenSplittedPropertiesThenRegister() map.Property(x => x.Something0); }); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.Something0)).Should().Be.False(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.Something0)).Should().Be.False(); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.Something0)), Is.False); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.Something0)), Is.False); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA1)).Should().Be.True(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA2)).Should().Be.True(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB1)).Should().Be.True(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB2)).Should().Be.True(); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA1)), Is.True); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA2)), Is.True); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB1)), Is.True); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB2)), Is.True); } [Test] @@ -96,12 +96,12 @@ public void WhenMapSplittedPropertiesThenEachPropertyIsInItsSplitGroup() var hbmDoc = mapper.CompileMappingFor(new[] { typeof(MyClass) }); var hbmClass = hbmDoc.RootClasses[0]; - hbmClass.Joins.Select(j => j.table).Should().Have.SameValuesAs("MyClassSplit1", "MyClassSplit2"); - hbmClass.Properties.Single().Name.Should().Be("Something0"); + Assert.That(hbmClass.Joins.Select(j => j.table), Is.EquivalentTo(new [] {"MyClassSplit1", "MyClassSplit2"})); + Assert.That(hbmClass.Properties.Single().Name, Is.EqualTo("Something0")); var hbmSplit1 = hbmClass.Joins.Single(j => "MyClassSplit1" == j.table); - hbmSplit1.Properties.Select(p => p.Name).Should().Have.SameValuesAs("SomethingA1", "SomethingA2"); + Assert.That(hbmSplit1.Properties.Select(p => p.Name), Is.EquivalentTo(new [] {"SomethingA1", "SomethingA2"})); var hbmSplit2 = hbmClass.Joins.Single(j => "MyClassSplit2" == j.table); - hbmSplit2.Properties.Select(p => p.Name).Should().Have.SameValuesAs("SomethingB1", "SomethingB2"); + Assert.That(hbmSplit2.Properties.Select(p => p.Name), Is.EquivalentTo(new [] {"SomethingB1", "SomethingB2"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs index cd46b21139e..50263a118ae 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs @@ -43,7 +43,7 @@ public void WhenSplittedPropertiesThenRegisterSplitGroupIds() }); IEnumerable tablePerClassSplits = inspector.GetPropertiesSplits(typeof(Inherited)); - tablePerClassSplits.Should().Have.SameValuesAs("MyClassSplit1", "MyClassSplit2"); + Assert.That(tablePerClassSplits, Is.EquivalentTo(new [] {"MyClassSplit1", "MyClassSplit2"})); } [Test] @@ -66,13 +66,13 @@ public void WhenSplittedPropertiesThenRegister() map.Property(x => x.Something0); }); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.Something0)).Should().Be.False(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.Something0)).Should().Be.False(); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.Something0)), Is.False); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.Something0)), Is.False); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA1)).Should().Be.True(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA2)).Should().Be.True(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB1)).Should().Be.True(); - inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB2)).Should().Be.True(); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA1)), Is.True); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit1", For.Property(x => x.SomethingA2)), Is.True); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB1)), Is.True); + Assert.That(inspector.IsTablePerClassSplit(typeof(MyClass), "MyClassSplit2", For.Property(x => x.SomethingB2)), Is.True); } [Test] @@ -98,12 +98,12 @@ public void WhenMapSplittedPropertiesThenEachPropertyIsInItsSplitGroup() var hbmDoc = mapper.CompileMappingFor(new[] { typeof(Inherited) }); var hbmClass = hbmDoc.SubClasses[0]; - hbmClass.Joins.Select(j => j.table).Should().Have.SameValuesAs("MyClassSplit1", "MyClassSplit2"); - hbmClass.Properties.Single().Name.Should().Be("Something0"); + Assert.That(hbmClass.Joins.Select(j => j.table), Is.EquivalentTo(new [] {"MyClassSplit1", "MyClassSplit2"})); + Assert.That(hbmClass.Properties.Single().Name, Is.EqualTo("Something0")); var hbmSplit1 = hbmClass.Joins.Single(j => "MyClassSplit1" == j.table); - hbmSplit1.Properties.Select(p => p.Name).Should().Have.SameValuesAs("SomethingA1", "SomethingA2"); + Assert.That(hbmSplit1.Properties.Select(p => p.Name), Is.EquivalentTo(new [] {"SomethingA1", "SomethingA2"})); var hbmSplit2 = hbmClass.Joins.Single(j => "MyClassSplit2" == j.table); - hbmSplit2.Properties.Select(p => p.Name).Should().Have.SameValuesAs("SomethingB1", "SomethingB2"); + Assert.That(hbmSplit2.Properties.Select(p => p.Name), Is.EquivalentTo(new [] {"SomethingB1", "SomethingB2"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs index 930d676076d..0f36c27cf96 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs @@ -27,7 +27,7 @@ public void WhenPropertyUsedAsVersionThenRegister() map.Version(x => x.Version, vm => { }); }); - inspector.IsVersion(For.Property(x => x.Version)).Should().Be.True(); + Assert.That(inspector.IsVersion(For.Property(x => x.Version)), Is.True); } [Test] @@ -42,7 +42,7 @@ public void WhenPropertyVersionFromBaseEntityThenFindItAsVersion() map.Version(x => x.Version, vm => { }); }); - inspector.IsVersion(For.Property(x => x.Version)).Should().Be.True(); + Assert.That(inspector.IsVersion(For.Property(x => x.Version)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs index b7403d9368d..1be9986a58b 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs @@ -17,7 +17,7 @@ public void WhenRegisteredAsComponentThenIsRegistered() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsComponent(typeof(MyComponent)); - inspector.IsComponent(typeof(MyComponent)).Should().Be.True(); + Assert.That(inspector.IsComponent(typeof(MyComponent)), Is.True); } [Test] @@ -26,7 +26,7 @@ public void WhenRegisteredAsEntityThenCantRegisterAsComponent() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyComponent)); - inspector.Executing(x => x.AddAsComponent(typeof(MyComponent))).Throws(); + Assert.That(() => inspector.AddAsComponent(typeof(MyComponent)), Throws.TypeOf()); } [Test] @@ -35,7 +35,7 @@ public void WhenRegisteredAsComponetThenCantRegisterAsRootEntity() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsComponent(typeof(MyComponent)); - inspector.Executing(x => x.AddAsRootEntity(typeof(MyComponent))).Throws(); + Assert.That(() => inspector.AddAsRootEntity(typeof(MyComponent)), Throws.TypeOf()); } [Test] @@ -44,11 +44,11 @@ public void WhenRegisteredAsComponetThenCantRegisterAsJoinedSubclass() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsComponent(typeof (MyComponent)); - Executing.This(() => - { - inspector.AddAsTablePerClassEntity(typeof (MyComponent)); - inspector.IsTablePerClass(typeof (MyComponent)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassEntity(typeof (MyComponent)); + inspector.IsTablePerClass(typeof (MyComponent)); + }, Throws.TypeOf()); } [Test] @@ -57,11 +57,11 @@ public void WhenRegisteredAsComponetThenCantRegisterAsSubclass() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsComponent(typeof (MyComponent)); - Executing.This(() => - { - inspector.AddAsTablePerClassHierarchyEntity(typeof (MyComponent)); - inspector.IsTablePerClassHierarchy(typeof (MyComponent)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassHierarchyEntity(typeof (MyComponent)); + inspector.IsTablePerClassHierarchy(typeof (MyComponent)); + }, Throws.TypeOf()); } [Test] @@ -70,11 +70,11 @@ public void WhenRegisteredAsComponetThenCantRegisterAsUnionSubclass() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsComponent(typeof (MyComponent)); - Executing.This(() => - { - inspector.AddAsTablePerConcreteClassEntity(typeof (MyComponent)); - inspector.IsTablePerConcreteClass(typeof (MyComponent)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerConcreteClassEntity(typeof (MyComponent)); + inspector.IsTablePerConcreteClass(typeof (MyComponent)); + }, Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs index 2427feae85f..861dbd3dee8 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs @@ -26,9 +26,9 @@ public void WhenRegisteredAsJoinedSubclassThenIsRegistered() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(Inherited1)).Should().Be.True(); - inspector.IsTablePerClassHierarchy(typeof(Inherited1)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(Inherited1)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited1)), Is.True); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited1)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited1)), Is.False); } [Test] @@ -38,9 +38,9 @@ public void WhenRegisteredAsDeppJoinedSubclassThenIsRegistered() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(Inherited2)).Should().Be.True(); - inspector.IsTablePerClassHierarchy(typeof(Inherited2)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(Inherited2)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited2)), Is.True); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited2)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited2)), Is.False); } [Test] @@ -50,11 +50,11 @@ public void WhenRegisteredAsJoinedSubclassThenCantRegisterAsSubclass() inspector.AddAsRootEntity(typeof (MyClass)); inspector.AddAsTablePerClassEntity(typeof (Inherited1)); - Executing.This(() => - { - inspector.AddAsTablePerClassHierarchyEntity(typeof (Inherited1)); - inspector.IsTablePerClass(typeof (Inherited1)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassHierarchyEntity(typeof (Inherited1)); + inspector.IsTablePerClass(typeof (Inherited1)); + }, Throws.TypeOf()); } [Test] @@ -64,11 +64,11 @@ public void WhenRegisteredAsJoinedSubclassThenCantRegisterAsUnionSubclass() inspector.AddAsRootEntity(typeof (MyClass)); inspector.AddAsTablePerClassEntity(typeof (Inherited1)); - Executing.This(() => - { - inspector.AddAsTablePerConcreteClassEntity(typeof (Inherited1)); - inspector.IsTablePerClass(typeof (Inherited1)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerConcreteClassEntity(typeof (Inherited1)); + inspector.IsTablePerClass(typeof (Inherited1)); + }, Throws.TypeOf()); } [Test] @@ -78,7 +78,7 @@ public void WhenRegisteredAsJoinedSubclassThenIsEntity() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassEntity(typeof(Inherited1)); - inspector.IsEntity(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(Inherited1)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs index ff85f5b23f5..7cf9dc9754f 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs @@ -22,7 +22,7 @@ public void WhenRegisterJoinedSubclassBeforeRootThenIsRegistered() inspector.AddAsTablePerClassEntity(typeof(Inherited1)); inspector.AddAsRootEntity(typeof(MyClass)); - inspector.IsTablePerClass(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited1)), Is.True); } [Test] @@ -31,7 +31,7 @@ public void WhenRegisterJoinedSubclassWithNoRootThenThrows() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsTablePerClassEntity(typeof(Inherited1)); - inspector.Executing(x => x.IsTablePerClass(typeof(Inherited1))).Throws(); + Assert.That(() => inspector.IsTablePerClass(typeof(Inherited1)), Throws.TypeOf()); } [Test] @@ -40,7 +40,7 @@ public void WhenRegisterJoinedSubclassWithNoRootThenCanAskForIsEntity() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsTablePerClassEntity(typeof(Inherited1)); - inspector.IsEntity(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(Inherited1)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs index 6a61f63d9b2..a7e64cc83b4 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs @@ -24,9 +24,9 @@ public void WhenRegisteredAsRootThenDoesNotRegisterTheStrategy() { var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyClass)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.False); } [Test] @@ -35,9 +35,9 @@ public void WhenRegisteredJoinedSubclassThenTheStrategyIsDefinedEvenForRoot() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.True(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.True); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.False); } [Test] @@ -46,9 +46,9 @@ public void WhenRegisteredJoinedDeepSubclassThenTheStrategyIsDefinedEvenForRoot( var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.True(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.True); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.False); } [Test] @@ -57,9 +57,9 @@ public void WhenRegisteredSubclassThenTheStrategyIsDefinedEvenForRoot() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.True(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.True); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.False); } [Test] @@ -69,9 +69,9 @@ public void WhenRegisteredDeepSubclassThenTheStrategyIsDefinedEvenForRoot() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.True(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.True); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.False); } @@ -82,9 +82,9 @@ public void WhenRegisteredConcreteClassThenTheStrategyIsDefinedEvenForRoot() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.True(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.True); } [Test] @@ -94,9 +94,9 @@ public void WhenRegisteredDeepConcreteClassThenTheStrategyIsDefinedEvenForRoot() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(MyClass)).Should().Be.True(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(MyClass)), Is.True); } [Test] @@ -104,11 +104,11 @@ public void WhenRegisteredAsRootThenCantRegisterAsSubclass() { var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof (MyClass)); - Executing.This(() => - { - inspector.AddAsTablePerClassHierarchyEntity(typeof (MyClass)); - inspector.IsTablePerClassHierarchy(typeof (MyClass)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassHierarchyEntity(typeof (MyClass)); + inspector.IsTablePerClassHierarchy(typeof (MyClass)); + }, Throws.TypeOf()); } [Test] @@ -116,11 +116,11 @@ public void WhenRegisteredAsRootThenCantRegisterAsJoinedSubclass() { var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof (MyClass)); - Executing.This(() => - { - inspector.AddAsTablePerClassEntity(typeof (MyClass)); - inspector.IsTablePerClass(typeof (MyClass)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassEntity(typeof (MyClass)); + inspector.IsTablePerClass(typeof (MyClass)); + }, Throws.TypeOf()); } [Test] @@ -128,11 +128,11 @@ public void WhenRegisteredAsRootThenCantRegisterAsUnionSubclass() { var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof (MyClass)); - Executing.This(() => - { - inspector.AddAsTablePerConcreteClassEntity(typeof (MyClass)); - inspector.IsTablePerClass(typeof (MyClass)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerConcreteClassEntity(typeof (MyClass)); + inspector.IsTablePerClass(typeof (MyClass)); + }, Throws.TypeOf()); } [Test] @@ -141,7 +141,7 @@ public void WhenRegisteredAsRootThenIsEntity() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyClass)); - inspector.IsEntity(typeof(MyClass)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(MyClass)), Is.True); } [Test] @@ -150,11 +150,11 @@ public void WhenMultipleRootRegisteredThenThrowsMappingException() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsRootEntity(typeof(Inherited1)); - Executing.This(()=> - { - inspector.AddAsTablePerClassEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(Inherited2)); - }).Should().Throw(); + Assert.That(()=> + { + inspector.AddAsTablePerClassEntity(typeof(Inherited2)); + inspector.IsTablePerClass(typeof(Inherited2)); + }, Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs index c84f682ed34..746e9940e54 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs @@ -23,8 +23,8 @@ public void WhenRegisterPropertySplitsThenTypeHasSplitGroups() inspector.AddAsPropertySplit(new SplitDefinition(typeof(MyClass), "group", For.Property(x => x.Something))); inspector.AddAsPropertySplit(new SplitDefinition(typeof(Inherited), "group1", For.Property(x => x.SomethingElse))); - inspector.GetSplitGroupsFor(typeof(MyClass)).Should().Have.SameValuesAs("group"); - inspector.GetSplitGroupsFor(typeof(Inherited)).Should().Have.SameValuesAs("group1"); + Assert.That(inspector.GetSplitGroupsFor(typeof(MyClass)), Is.EquivalentTo(new [] {"group"})); + Assert.That(inspector.GetSplitGroupsFor(typeof(Inherited)), Is.EquivalentTo(new [] {"group1"})); } [Test] @@ -37,11 +37,11 @@ public void WhenRegisterPropertySplitMoreThanOnceThenIgnore() inspector.AddAsPropertySplit(new SplitDefinition(typeof(MyClass), "group", memberFromDeclaringType)); inspector.AddAsPropertySplit(new SplitDefinition(typeof(Inherited), "group1", memberFromReferencedType)); - inspector.GetSplitGroupsFor(typeof(MyClass)).Should().Have.SameValuesAs("group"); - inspector.GetSplitGroupsFor(typeof(Inherited)).Should().Be.Empty(); + Assert.That(inspector.GetSplitGroupsFor(typeof(MyClass)), Is.EquivalentTo(new [] {"group"})); + Assert.That(inspector.GetSplitGroupsFor(typeof(Inherited)), Is.Empty); - inspector.GetSplitGroupFor(memberFromDeclaringType).Should().Be("group"); - inspector.GetSplitGroupFor(memberFromReferencedType).Should().Be("group"); + Assert.That(inspector.GetSplitGroupFor(memberFromDeclaringType), Is.EqualTo("group")); + Assert.That(inspector.GetSplitGroupFor(memberFromReferencedType), Is.EqualTo("group")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs index 411865b093f..55846df1675 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs @@ -26,9 +26,9 @@ public void WhenRegisteredAsSubclassThenIsRegistered() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(Inherited1)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(Inherited1)).Should().Be.True(); - inspector.IsTablePerConcreteClass(typeof(Inherited1)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited1)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited1)), Is.True); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited1)), Is.False); } [Test] @@ -38,9 +38,9 @@ public void WhenRegisteredAsDeepSubclassThenIsRegistered() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(Inherited2)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(Inherited2)).Should().Be.True(); - inspector.IsTablePerConcreteClass(typeof(Inherited2)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited2)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited2)), Is.True); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited2)), Is.False); } [Test] @@ -50,11 +50,11 @@ public void WhenRegisteredAsSubclassThenCantRegisterAsJoinedSubclass() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1)); - Executing.This(() => - { - inspector.AddAsTablePerClassEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(Inherited1)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassEntity(typeof(Inherited1)); + inspector.IsTablePerClass(typeof(Inherited1)); + }, Throws.TypeOf()); } [Test] @@ -64,11 +64,11 @@ public void WhenRegisteredAsSubclassThenCantRegisterAsUnionSubclass() inspector.AddAsRootEntity(typeof (MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof (Inherited1)); - Executing.This(() => - { - inspector.AddAsTablePerConcreteClassEntity(typeof (Inherited1)); - inspector.IsTablePerClassHierarchy(typeof (Inherited1)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerConcreteClassEntity(typeof (Inherited1)); + inspector.IsTablePerClassHierarchy(typeof (Inherited1)); + }, Throws.TypeOf()); } [Test] @@ -78,7 +78,7 @@ public void WhenRegisteredAsSubclassThenIsEntity() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1)); - inspector.IsEntity(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(Inherited1)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs index c2d05808fe5..d8b08c63f1d 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs @@ -22,7 +22,7 @@ public void WhenRegisterSubclassBeforeRootThenIsRegistered() inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1)); inspector.AddAsRootEntity(typeof(MyClass)); - inspector.IsTablePerClassHierarchy(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited1)), Is.True); } [Test] @@ -31,7 +31,7 @@ public void WhenRegisterSubclassWithNoRootThenThrows() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1)); - inspector.Executing(x => x.IsTablePerClassHierarchy(typeof(Inherited1))).Throws(); + Assert.That(() => inspector.IsTablePerClassHierarchy(typeof(Inherited1)), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs index 12d135c4318..559d9f9dd34 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs @@ -26,9 +26,9 @@ public void WhenRegisteredAsUnionSubclassThenIsRegistered() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited1)); - inspector.IsTablePerClass(typeof(Inherited1)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(Inherited1)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited1)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited1)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited1)), Is.True); } [Test] @@ -38,9 +38,9 @@ public void WhenRegisteredAsDeepUnionSubclassThenIsRegistered() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited2)); - inspector.IsTablePerClass(typeof(Inherited2)).Should().Be.False(); - inspector.IsTablePerClassHierarchy(typeof(Inherited2)).Should().Be.False(); - inspector.IsTablePerConcreteClass(typeof(Inherited2)).Should().Be.True(); + Assert.That(inspector.IsTablePerClass(typeof(Inherited2)), Is.False); + Assert.That(inspector.IsTablePerClassHierarchy(typeof(Inherited2)), Is.False); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited2)), Is.True); } [Test] @@ -50,11 +50,11 @@ public void WhenRegisteredAsUnionSubclassThenCantRegisterAsSubclass() inspector.AddAsRootEntity(typeof (MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof (Inherited1)); - Executing.This(() => - { - inspector.AddAsTablePerClassHierarchyEntity(typeof (Inherited1)); - inspector.IsTablePerConcreteClass(typeof (Inherited1)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassHierarchyEntity(typeof (Inherited1)); + inspector.IsTablePerConcreteClass(typeof (Inherited1)); + }, Throws.TypeOf()); } [Test] @@ -64,11 +64,11 @@ public void WhenRegisteredAsUnionSubclassThenCantRegisterAsJoinedSubclass() inspector.AddAsRootEntity(typeof (MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof (Inherited1)); - Executing.This(() => - { - inspector.AddAsTablePerClassEntity(typeof (Inherited1)); - inspector.IsTablePerConcreteClass(typeof (Inherited1)); - }).Should().Throw(); + Assert.That(() => + { + inspector.AddAsTablePerClassEntity(typeof (Inherited1)); + inspector.IsTablePerConcreteClass(typeof (Inherited1)); + }, Throws.TypeOf()); } [Test] @@ -78,7 +78,7 @@ public void WhenRegisteredAsUnionSubclassThenIsEntity() inspector.AddAsRootEntity(typeof(MyClass)); inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited1)); - inspector.IsEntity(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(Inherited1)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs index 6e849c1909e..f883c649b9d 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs @@ -22,7 +22,7 @@ public void WhenRegisterUnionSubclassBeforeRootThenIsRegistered() inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited1)); inspector.AddAsRootEntity(typeof(MyClass)); - inspector.IsTablePerConcreteClass(typeof(Inherited1)).Should().Be.True(); + Assert.That(inspector.IsTablePerConcreteClass(typeof(Inherited1)), Is.True); } [Test] @@ -31,7 +31,7 @@ public void WhenRegisterUnionSubclassWithNoRootThenThrows() var inspector = new ExplicitlyDeclaredModel(); inspector.AddAsTablePerConcreteClassEntity(typeof(Inherited1)); - inspector.Executing(x => x.IsTablePerConcreteClass(typeof(Inherited1))).Throws(); + Assert.That(() => inspector.IsTablePerConcreteClass(typeof(Inherited1)), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ImportTests.cs b/src/NHibernate.Test/MappingByCode/ImportTests.cs index 397f69d7ef7..fd904f8faff 100644 --- a/src/NHibernate.Test/MappingByCode/ImportTests.cs +++ b/src/NHibernate.Test/MappingByCode/ImportTests.cs @@ -23,13 +23,13 @@ public void ImportClass() var hbmMapping = mapper.CompileMappingForAllExplicitlyAddedEntities(); - hbmMapping.Imports.Length.Should().Be.EqualTo(2); + Assert.That(hbmMapping.Imports.Length, Is.EqualTo(2)); - hbmMapping.Imports[0].@class.Should().Be.EqualTo("Dto"); - hbmMapping.Imports[0].rename.Should().Be.EqualTo("Dto"); + Assert.That(hbmMapping.Imports[0].@class, Is.EqualTo("Dto")); + Assert.That(hbmMapping.Imports[0].rename, Is.EqualTo("Dto")); - hbmMapping.Imports[1].@class.Should().Be.EqualTo("Dto"); - hbmMapping.Imports[1].rename.Should().Be.EqualTo("DtoRenamed"); + Assert.That(hbmMapping.Imports[1].@class, Is.EqualTo("Dto")); + Assert.That(hbmMapping.Imports[1].rename, Is.EqualTo("DtoRenamed")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs b/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs index 497caacc194..9795468108a 100644 --- a/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs +++ b/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs @@ -21,15 +21,15 @@ public void WhenMapEmptyEnumThenThrowsExplicitException() { var mapper = new ModelMapper(); mapper.Class(rc => - { + { rc.Id(x => x.Id); rc.Property(x => x.MyEmptyEnum); - }); + }); var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); var conf = TestConfigurationHelper.GetDefaultConfiguration(); conf.AddMapping(mappings); - conf.Executing(c => c.BuildSessionFactory()).Throws().And.ValueOf.Message.Should().Contain("MyEmptyEnum"); + Assert.That(() => conf.BuildSessionFactory(), Throws.TypeOf().And.Message.ContainsSubstring("MyEmptyEnum")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs index 10c54484411..656e91cc4d6 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs @@ -41,13 +41,13 @@ private class MyClassWithDynamic [Test] public void CantCreateWithoutHbmMapping() { - Executing.This(() => new HackPropertyContainerMapper(typeof(EntitySimple), null)).Should().Throw(); + Assert.That(() => new HackPropertyContainerMapper(typeof(EntitySimple), null), Throws.TypeOf()); } [Test] public void CantCreateWithoutContainerType() { - Executing.This(() => new HackPropertyContainerMapper(null, new HbmMapping())).Should().Throw(); + Assert.That(() => new HackPropertyContainerMapper(null, new HbmMapping()), Throws.TypeOf()); } [Test] @@ -57,8 +57,8 @@ public void CanAddSimpleProperty() var map = new StubPropertyContainerMapper(properties); map.Property(typeof (EntitySimple).GetProperty("Name"), x => { }); - properties.Should().Have.Count.EqualTo(1); - properties.First().Should().Be.OfType().And.ValueOf.Name.Should().Be.EqualTo("Name"); + Assert.That(properties, Has.Count.EqualTo(1)); + Assert.That(properties.First(), Is.TypeOf().And.Property("Name").EqualTo("Name")); } [Test] @@ -69,14 +69,14 @@ public void CallPropertyMapper() var called = false; map.Property(typeof(EntitySimple).GetProperty("Name"), x => called = true ); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] public void CantAddPropertyOfNotInheritedType() { var map = new StubPropertyContainerMapper(new List()); - Executing.This(() => map.Property(typeof(EntitySimple).GetProperty("Name"), x => { })).Should().Throw(); + Assert.That(() => map.Property(typeof(EntitySimple).GetProperty("Name"), x => { }), Throws.TypeOf()); } [Test] @@ -86,8 +86,8 @@ public void CanAddPropertyOfInheritedType() var map = new StubPropertyContainerMapper(properties); map.Property(typeof(InheritedEntitySimple).GetProperty("Name"), x => { }); - properties.Should().Have.Count.EqualTo(1); - properties.First().Should().Be.OfType().And.ValueOf.Name.Should().Be.EqualTo("Name"); + Assert.That(properties, Has.Count.EqualTo(1)); + Assert.That(properties.First(), Is.TypeOf().And.Property("Name").EqualTo("Name")); } [Test] @@ -98,7 +98,7 @@ public void CallAnyMapper() var called = false; map.Any(typeof(MyClass).GetProperty("Reference"), typeof(int), x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -110,11 +110,11 @@ public void CallDictionaryMappers() var keyRelationCalled = false; var elementRelationCalled = false; map.Map(typeof (MyClassWithDictionary).GetProperty("Dictionary"), cp => collectionPropsCalled = true, - km => keyRelationCalled = true, er => elementRelationCalled = true); + km => keyRelationCalled = true, er => elementRelationCalled = true); - collectionPropsCalled.Should().Be.True(); - keyRelationCalled.Should().Be.True(); - elementRelationCalled.Should().Be.True(); + Assert.That(collectionPropsCalled, Is.True); + Assert.That(keyRelationCalled, Is.True); + Assert.That(elementRelationCalled, Is.True); } [Test] @@ -123,7 +123,7 @@ public void AddDynamicComponentProperty() var properties = new List(); var map = new StubPropertyContainerMapper(properties); map.Component(For.Property(x => x.DynCompo), (IDynamicComponentMapper cp) => { }); - properties.Single().Should().Be.OfType().And.ValueOf.Name.Should().Be.EqualTo("DynCompo"); + Assert.That(properties.Single(), Is.TypeOf().And.Property("Name").EqualTo("DynCompo")); } [Test] @@ -133,7 +133,7 @@ public void CallDynamicComponentMapper() var map = new StubPropertyContainerMapper(properties); var called = false; map.Component(For.Property(x=> x.DynCompo), (IDynamicComponentMapper cp) => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } private class HackPropertyContainerMapper : AbstractPropertyContainerMapper diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs index 2197db9bb57..c74b5310c48 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs @@ -26,7 +26,7 @@ public void AtCreationSetIdType() var hbmMapping = new HbmMapping(); var hbmAny = new HbmAny(); new AnyMapper(null, typeof(int), hbmAny, hbmMapping); - hbmAny.idtype.Should().Be("Int32"); + Assert.That(hbmAny.idtype, Is.EqualTo("Int32")); } [Test] @@ -35,8 +35,8 @@ public void AtCreationSetTheTwoRequiredColumnsNodes() var hbmMapping = new HbmMapping(); var hbmAny = new HbmAny(); new AnyMapper(null, typeof(int), hbmAny, hbmMapping); - hbmAny.Columns.Should().Have.Count.EqualTo(2); - hbmAny.Columns.Select(c => c.name).All(n => n.Satisfy(name => !string.IsNullOrEmpty(name))); + Assert.That(hbmAny.Columns.Count(), Is.EqualTo(2)); + Assert.That(hbmAny.Columns.All(c => !string.IsNullOrEmpty(c.name)), Is.True); } [Test] @@ -46,7 +46,7 @@ public void CanSetIdTypeThroughIType() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.IdType(NHibernateUtil.Int64); - hbmAny.idtype.Should().Be("Int64"); + Assert.That(hbmAny.idtype, Is.EqualTo("Int64")); } [Test] @@ -56,7 +56,7 @@ public void CanSetIdTypeThroughGenericMethod() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.IdType(); - hbmAny.idtype.Should().Be("Int64"); + Assert.That(hbmAny.idtype, Is.EqualTo("Int64")); } [Test] @@ -66,7 +66,7 @@ public void CanSetIdTypeThroughType() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.IdType(typeof(long)); - hbmAny.idtype.Should().Be("Int64"); + Assert.That(hbmAny.idtype, Is.EqualTo("Int64")); } [Test] @@ -76,7 +76,7 @@ public void CanSetMetaTypeThroughIType() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaType(NHibernateUtil.Character); - hbmAny.MetaType.Should().Be("Char"); + Assert.That(hbmAny.MetaType, Is.EqualTo("Char")); } [Test] @@ -86,7 +86,7 @@ public void CanSetMetaTypeThroughGenericMethod() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaType(); - hbmAny.MetaType.Should().Be("Char"); + Assert.That(hbmAny.MetaType, Is.EqualTo("Char")); } [Test] @@ -96,7 +96,7 @@ public void CanSetMetaTypeThroughType() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaType(typeof(char)); - hbmAny.MetaType.Should().Be("Char"); + Assert.That(hbmAny.MetaType, Is.EqualTo("Char")); } [Test] @@ -106,7 +106,7 @@ public void CanSetCascade() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.Cascade(Mapping.ByCode.Cascade.All); - hbmAny.cascade.Should().Be("all"); + Assert.That(hbmAny.cascade, Is.EqualTo("all")); } [Test] @@ -116,7 +116,7 @@ public void AutoCleanInvalidCascade() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.Cascade(Mapping.ByCode.Cascade.All | Mapping.ByCode.Cascade.DeleteOrphans); - hbmAny.cascade.Should().Be("all"); + Assert.That(hbmAny.cascade, Is.EqualTo("all")); } [Test] @@ -126,7 +126,7 @@ public void CanSetIndex() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.Index("pizza"); - hbmAny.index.Should().Be("pizza"); + Assert.That(hbmAny.index, Is.EqualTo("pizza")); } [Test] @@ -136,7 +136,7 @@ public void CanSetLazy() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.Lazy(true); - hbmAny.lazy.Should().Be(true); + Assert.That(hbmAny.lazy, Is.EqualTo(true)); } [Test] @@ -149,8 +149,8 @@ public void WhenSetIdColumnPropertiesThenWorkOnSameHbmColumnCreatedAtCtor() var columnsBefore = hbmAny.Columns.ToArray(); mapper.Columns(idcm => idcm.Length(10), metacm => { }); var columnsAfter = hbmAny.Columns.ToArray(); - columnsBefore[idColumnIndex].Should().Be.SameInstanceAs(columnsAfter[idColumnIndex]); - columnsBefore[idColumnIndex].length.Should().Be("10"); + Assert.That(columnsBefore[idColumnIndex], Is.SameAs(columnsAfter[idColumnIndex])); + Assert.That(columnsBefore[idColumnIndex].length, Is.EqualTo("10")); } [Test] @@ -164,8 +164,8 @@ public void WhenSetMetaColumnPropertiesThenWorkOnSameHbmColumnCreatedAtCtor() var columnsBefore = hbmAny.Columns.ToArray(); mapper.Columns(idcm => { }, metacm => metacm.Length(500)); var columnsAfter = hbmAny.Columns.ToArray(); - columnsBefore[metaValueColumnIndex].Should().Be.SameInstanceAs(columnsAfter[metaValueColumnIndex]); - columnsBefore[metaValueColumnIndex].length.Should().Be("500"); + Assert.That(columnsBefore[metaValueColumnIndex], Is.SameAs(columnsAfter[metaValueColumnIndex])); + Assert.That(columnsBefore[metaValueColumnIndex].length, Is.EqualTo("500")); } [Test] @@ -175,8 +175,8 @@ public void MetaTypeShouldBeImmutable() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); - Executing.This(() => mapper.MetaType(NHibernateUtil.Int32)).Should().Throw(); - Executing.This(mapper.MetaType).Should().Throw(); + Assert.That(() => mapper.MetaType(NHibernateUtil.Int32), Throws.TypeOf()); + Assert.That(() => mapper.MetaType(), Throws.TypeOf()); } [Test] @@ -185,8 +185,8 @@ public void WhenNullParameterThenThrow() var hbmMapping = new HbmMapping(); var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); - Executing.This(() => mapper.MetaValue(null, typeof(MyReferenceClass))).Should().Throw(); - Executing.This(() => mapper.MetaValue('A', null)).Should().Throw(); + Assert.That(() => mapper.MetaValue(null, typeof(MyReferenceClass)), Throws.TypeOf()); + Assert.That(() => mapper.MetaValue('A', null), Throws.TypeOf()); } [Test] @@ -196,7 +196,7 @@ public void WhenSetFirstMetaValueThenSetMetaTypeIfNotClass() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); - hbmAny.MetaType.Should().Be("Char"); + Assert.That(hbmAny.MetaType, Is.EqualTo("Char")); } [Test] @@ -205,7 +205,7 @@ public void WhenSetMetaValueWithClassThenThrow() var hbmMapping = new HbmMapping(); var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); - Executing.This(() => mapper.MetaValue(typeof(MyReferenceClass), typeof(MyReferenceClass))).Should().Throw(); + Assert.That(() => mapper.MetaValue(typeof(MyReferenceClass), typeof(MyReferenceClass)), Throws.TypeOf()); } [Test] @@ -215,7 +215,7 @@ public void WhenSetSecondMetaValueThenCheckCompatibility() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); - Executing.This(() => mapper.MetaValue(5, typeof(MyClass))).Should().Throw(); + Assert.That(() => mapper.MetaValue(5, typeof(MyClass)), Throws.TypeOf()); } [Test] @@ -226,7 +226,7 @@ public void WhenDuplicatedMetaValueThenRegisterOne() var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); mapper.MetaValue('A', typeof(MyReferenceClass)); - hbmAny.metavalue.Should().Have.Count.EqualTo(1); + Assert.That(hbmAny.metavalue, Has.Length.EqualTo(1)); } [Test] @@ -236,7 +236,7 @@ public void WhenDuplicatedMetaValueWithDifferentTypeThenThrow() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); - Executing.This(() => mapper.MetaValue('A', typeof(MyClass))).Should().Throw(); + Assert.That(() => mapper.MetaValue('A', typeof(MyClass)), Throws.TypeOf()); } [Test] @@ -247,10 +247,10 @@ public void WhenSetTwoMetaValueThenHasTwoMetaValues() var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); mapper.MetaValue('B', typeof(MyClass)); - hbmAny.metavalue.Should().Have.Count.EqualTo(2); - hbmAny.metavalue.Select(mv => mv.value).Should().Have.SameValuesAs("A", "B"); - hbmAny.metavalue.Select(mv => mv.@class).Satisfy(c => c.Any(clazz => clazz.Contains("MyReferenceClass"))); - hbmAny.metavalue.Select(mv => mv.@class).Satisfy(c => c.Any(clazz => clazz.Contains("MyClass"))); + Assert.That(hbmAny.metavalue, Has.Length.EqualTo(2)); + Assert.That(hbmAny.metavalue.Select(mv => mv.value), Is.EquivalentTo(new [] {"A", "B"})); + Assert.That(hbmAny.metavalue.Any(mv => mv.@class.Contains("MyReferenceClass")), Is.True); + Assert.That(hbmAny.metavalue.Any(mv => mv.@class.Contains("MyClass")), Is.True); } [Test] @@ -260,8 +260,8 @@ public void AtCreationSetColumnsUsingMemberName() var hbmMapping = new HbmMapping(); var hbmAny = new HbmAny(); new AnyMapper(member, typeof(int), hbmAny, hbmMapping); - hbmAny.Columns.ElementAt(0).name.Should().Contain("MyReferenceClass"); - hbmAny.Columns.ElementAt(1).name.Should().Contain("MyReferenceClass"); + Assert.That(hbmAny.Columns.ElementAt(0).name, Is.StringContaining("MyReferenceClass")); + Assert.That(hbmAny.Columns.ElementAt(1).name, Is.StringContaining("MyReferenceClass")); } [Test] @@ -271,10 +271,10 @@ public void IdMetaTypeShouldBeImmutableAfterAddMetaValues() var hbmAny = new HbmAny(); var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.MetaValue('A', typeof(MyReferenceClass)); - Executing.This(() => mapper.IdType(NHibernateUtil.Int32)).Should().NotThrow(); - Executing.This(mapper.IdType).Should().NotThrow(); - Executing.This(mapper.IdType).Should().Throw(); - Executing.This(() => mapper.IdType(NHibernateUtil.String)).Should().Throw(); + Assert.That(() => mapper.IdType(NHibernateUtil.Int32), Throws.Nothing); + Assert.That(() => mapper.IdType(), Throws.Nothing); + Assert.That(() => mapper.IdType(), Throws.TypeOf()); + Assert.That(() => mapper.IdType(NHibernateUtil.String), Throws.TypeOf()); } [Test] @@ -285,7 +285,7 @@ public void CanSetUpdate() var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.Update(false); - hbmAny.update.Should().Be.False(); + Assert.That(hbmAny.update, Is.False); } [Test] @@ -296,7 +296,7 @@ public void CanSetInsert() var mapper = new AnyMapper(null, typeof(int), hbmAny, hbmMapping); mapper.Insert(false); - hbmAny.insert.Should().Be.False(); + Assert.That(hbmAny.insert, Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs index e35e7b070a6..eddcdcf5917 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs @@ -31,9 +31,7 @@ public void WhenMixComposedIdWithComponentAsIdThenThrows() var mapper = new ClassMapper(typeof (Person), mapdoc, For.Property(x => x.Id)); mapper.ComposedId(map => map.Property(For.Property(x => x.Name), pm => { })); - Executing.This(() => - mapper.ComponentAsId(For.Property(x => x.Id), map => map.Property(For.Property(x => x.Email), pm => { })) - ).Should().Throw(); + Assert.That(() => mapper.ComponentAsId(For.Property(x => x.Id), map => map.Property(For.Property(x => x.Email), pm => { })), Throws.TypeOf()); } [Test] @@ -43,9 +41,7 @@ public void WhenMixComponentAsIdWithComposedIdThenThrows() var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); mapper.ComponentAsId(For.Property(x => x.Id), map => map.Property(For.Property(x => x.Email), pm => { })); - Executing.This(() => - mapper.ComposedId(map => map.Property(For.Property(x => x.Name), pm => { })) - ).Should().Throw(); + Assert.That(() => mapper.ComposedId(map => map.Property(For.Property(x => x.Name), pm => { })), Throws.TypeOf()); } [Test] @@ -55,9 +51,7 @@ public void WhenMixComposedIdWithSimpleIdThenThrows() var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); mapper.ComposedId(map => map.Property(For.Property(x => x.Name), pm => { })); - Executing.This(() => - mapper.Id(For.Property(x => x.Poid), pm => { }) - ).Should().Throw(); + Assert.That(() => mapper.Id(For.Property(x => x.Poid), pm => { }), Throws.TypeOf()); } [Test] @@ -67,9 +61,7 @@ public void WhenMixComponentAsIdWithSimpleIdThenThrows() var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); mapper.ComponentAsId(For.Property(x => x.Id), map => map.Property(For.Property(x => x.Email), pm => { })); - Executing.This(() => - mapper.Id(For.Property(x => x.Poid), pm => { }) - ).Should().Throw(); + Assert.That(() => mapper.Id(For.Property(x => x.Poid), pm => { }), Throws.TypeOf()); } [Test] @@ -79,9 +71,7 @@ public void WhenMixSimpleIdWithComposedIdThenThrows() var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); mapper.Id(For.Property(x => x.Poid), pm => { }); - Executing.This(() => - mapper.ComposedId(map => map.Property(For.Property(x => x.Name), pm => { })) - ).Should().Throw(); + Assert.That(() => mapper.ComposedId(map => map.Property(For.Property(x => x.Name), pm => { })), Throws.TypeOf()); } [Test] @@ -91,9 +81,7 @@ public void WhenMixSimpleIdWithComponentAsIdThenThrows() var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); mapper.Id(For.Property(x => x.Poid), pm => { }); - Executing.This(() => - mapper.ComponentAsId(For.Property(x => x.Id), map => map.Property(For.Property(x => x.Email), pm => { })) - ).Should().Throw(); + Assert.That(() => mapper.ComponentAsId(For.Property(x => x.Id), map => map.Property(For.Property(x => x.Email), pm => { })), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs index d8ceed0cc99..4a5701ff469 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs @@ -23,9 +23,9 @@ public void WhenDefineJoinThenAddJoinWithTableNameAndKey() var hbmClass = mapdoc.RootClasses[0]; var hbmJoin = hbmClass.Joins.Single(); - hbmJoin.table.Should().Be("MyTable"); - hbmJoin.key.Should().Not.Be.Null(); - hbmJoin.key.column1.Should().Not.Be.Null(); + Assert.That(hbmJoin.table, Is.EqualTo("MyTable")); + Assert.That(hbmJoin.key, Is.Not.Null); + Assert.That(hbmJoin.key.column1, Is.Not.Null); } [Test] @@ -35,12 +35,12 @@ public void WhenDefineJoinThenCallJoinMapper() var mapper = new ClassMapper(typeof(MyClass), mapdoc, For.Property(x => x.Id)); var called = false; mapper.Join("MyTable", x => - { - x.Should().Not.Be.Null(); + { + Assert.That(x, Is.Not.Null); called = true; - }); + }); - called.Should().Be.True(); + Assert.That(called, Is.True); } //[Test] @@ -66,8 +66,8 @@ public void WhenDefineMoreJoinsThenTableNameShouldBeUnique() mapper.Join("T2",x => { }); var hbmClass = mapdoc.RootClasses[0]; - hbmClass.Joins.Should().Have.Count.EqualTo(2); - hbmClass.Joins.Select(x=> x.table).Should().Have.UniqueValues(); + Assert.That(hbmClass.Joins.Count(), Is.EqualTo(2)); + Assert.That(hbmClass.Joins.Select(x => x.table), Is.Unique); } [Test] @@ -81,9 +81,9 @@ public void WhenDefineMoreJoinsWithSameIdThenUseSameJoinMapperInstance() mapper.Join("T1", x => firstCallInstance = x); mapper.Join("T1", x => secondCallInstance = x); - firstCallInstance.Should().Be.SameInstanceAs(secondCallInstance); + Assert.That(firstCallInstance, Is.SameAs(secondCallInstance)); var hbmClass = mapdoc.RootClasses[0]; - hbmClass.Joins.Should().Have.Count.EqualTo(1); + Assert.That(hbmClass.Joins.Count(), Is.EqualTo(1)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs index 9dfdaaa29d6..8c87847e15a 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs @@ -39,17 +39,17 @@ public void WhenClassWithComponentIdThenTheIdIsConpositeId() var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); mapper.ComponentAsId(For.Property(x => x.Id), map => - { + { map.Property(For.Property(x => x.Email), pm => { }); map.ManyToOne(For.Property(x => x.User), pm => { }); }); var hbmClass = mapdoc.RootClasses[0]; - hbmClass.Id.Should().Be.Null(); + Assert.That(hbmClass.Id, Is.Null); var hbmCompositeId = hbmClass.CompositeId; - hbmCompositeId.Should().Not.Be.Null(); - hbmCompositeId.@class.Should().Not.Be.Null(); - hbmCompositeId.Items.Should().Have.Count.EqualTo(2); - hbmCompositeId.Items.Select(x => x.GetType()).Should().Have.SameValuesAs(typeof(HbmKeyProperty),typeof(HbmKeyManyToOne)); + Assert.That(hbmCompositeId, Is.Not.Null); + Assert.That(hbmCompositeId.@class, Is.Not.Null); + Assert.That(hbmCompositeId.Items, Has.Length.EqualTo(2)); + Assert.That(hbmCompositeId.Items.Select(x => x.GetType()), Is.EquivalentTo(new [] {typeof(HbmKeyProperty), typeof(HbmKeyManyToOne)})); } [Test] @@ -66,10 +66,10 @@ public void WhenComponentIdCustomizedMoreThanOnceThenMerge() mapper.ComponentAsId(For.Property(x => x.Id), map => map.Access(Accessor.Field)); var hbmClass = mapdoc.RootClasses[0]; - hbmClass.Id.Should().Be.Null(); + Assert.That(hbmClass.Id, Is.Null); var hbmCompositeId = hbmClass.CompositeId; - hbmCompositeId.Items.Should().Have.Count.EqualTo(2); - hbmCompositeId.access.Should().Contain("field"); + Assert.That(hbmCompositeId.Items, Has.Length.EqualTo(2)); + Assert.That(hbmCompositeId.access, Is.StringContaining("field")); } [Test] @@ -78,7 +78,7 @@ public void WhenMapExternalMemberAsComponentIdThenThrows() var mapdoc = new HbmMapping(); var mapper = new ClassMapper(typeof(Person), mapdoc, For.Property(x => x.Id)); - mapper.Executing(m => m.ComponentAsId(For.Property(x => x.Id), map => map.Access(Accessor.Field))).Throws(); + Assert.That(() => mapper.ComponentAsId(For.Property(x => x.Id), map => map.Access(Accessor.Field)), Throws.TypeOf()); } } diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs index f8955e0fb95..57e8dadeb48 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs @@ -31,12 +31,12 @@ public void WhenClassWithComposedIdThenTheIdIsConpositeId() map.ManyToOne(For.Property(x => x.User), pm => { }); }); var hbmClass = mapdoc.RootClasses[0]; - hbmClass.Id.Should().Be.Null(); + Assert.That(hbmClass.Id, Is.Null); var hbmCompositeId = hbmClass.CompositeId; - hbmCompositeId.Should().Not.Be.Null(); - hbmCompositeId.@class.Should().Be.Null(); - hbmCompositeId.Items.Should().Have.Count.EqualTo(2); - hbmCompositeId.Items.Select(x => x.GetType()).Should().Have.SameValuesAs(typeof(HbmKeyProperty), typeof(HbmKeyManyToOne)); + Assert.That(hbmCompositeId, Is.Not.Null); + Assert.That(hbmCompositeId.@class, Is.Null); + Assert.That(hbmCompositeId.Items, Has.Length.EqualTo(2)); + Assert.That(hbmCompositeId.Items.Select(x => x.GetType()), Is.EquivalentTo(new [] {typeof(HbmKeyProperty), typeof(HbmKeyManyToOne)})); } [Test] @@ -49,9 +49,9 @@ public void WhenComposedIdCustomizedMoreThanOnceThenMerge() mapper.ComposedId(map => map.ManyToOne(For.Property(x => x.User), pm => { })); var hbmClass = mapdoc.RootClasses[0]; - hbmClass.Id.Should().Be.Null(); + Assert.That(hbmClass.Id, Is.Null); var hbmCompositeId = hbmClass.CompositeId; - hbmCompositeId.Items.Should().Have.Count.EqualTo(2); + Assert.That(hbmCompositeId.Items, Has.Length.EqualTo(2)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs index 780df2975b9..327823fd2e0 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs @@ -19,7 +19,7 @@ public void CanSetPersister() var mapdoc = new HbmMapping(); var rc = new ClassMapper(typeof(EntitySimple), mapdoc, For.Property(x => x.Id)); rc.Persister(); - mapdoc.RootClasses[0].Persister.Should().Contain("SingleTableEntityPersister"); + Assert.That(mapdoc.RootClasses[0].Persister, Is.StringContaining("SingleTableEntityPersister")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs index 2299b81e0f0..7be2c35cf7d 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs @@ -18,7 +18,7 @@ public void WhenSetSyncWithNullThenDoesNotThrows() { var mapdoc = new HbmMapping(); var rc = new ClassMapper(typeof(EntitySimple), mapdoc, For.Property(x => x.Id)); - rc.Executing(x=>x.Synchronize(null)).NotThrows(); + Assert.That(() => rc.Synchronize(null), Throws.Nothing); } [Test] @@ -27,7 +27,7 @@ public void WhenSetSyncMixedWithNullAndEmptyThenAddOnlyValid() var mapdoc = new HbmMapping(); var rc = new ClassMapper(typeof(EntitySimple), mapdoc, For.Property(x => x.Id)); rc.Synchronize("", " ATable ", " ", null); - mapdoc.RootClasses[0].Synchronize.Single().table.Should().Be("ATable"); + Assert.That(mapdoc.RootClasses[0].Synchronize.Single().table, Is.EqualTo("ATable")); } [Test] @@ -36,7 +36,7 @@ public void WhenSetMoreSyncThenAddAll() var mapdoc = new HbmMapping(); var rc = new ClassMapper(typeof(EntitySimple), mapdoc, For.Property(x => x.Id)); rc.Synchronize("T1", "T2", "T3", null); - mapdoc.RootClasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.RootClasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -46,7 +46,7 @@ public void WhenSetMoreThenOnceThenAddAll() var rc = new ClassMapper(typeof(EntitySimple), mapdoc, For.Property(x => x.Id)); rc.Synchronize("T1", "T2"); rc.Synchronize("T3"); - mapdoc.RootClasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.RootClasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -56,7 +56,7 @@ public void WhenSetMoreThenOnceThenDoesNotDuplicate() var rc = new ClassMapper(typeof(EntitySimple), mapdoc, For.Property(x => x.Id)); rc.Synchronize("T1", "T2"); rc.Synchronize("T3", "T2"); - mapdoc.RootClasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.RootClasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs index 801aa9b9586..299347ccf4f 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs @@ -16,8 +16,8 @@ public void WhenCreateThenHasDefaultTypeAndGenerator() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId); - hbmId.generator.@class.Should().Not.Be.NullOrEmpty(); - hbmId.type.Should().Not.Be.NullOrEmpty(); + Assert.That(hbmId.generator.@class, Is.Not.Null.And.Not.Empty); + Assert.That(hbmId.type, Is.Not.Null.And.Not.Empty); } [Test] @@ -26,8 +26,8 @@ public void WhenSetGeneratorThenChangeType() var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.HighLow); - hbmId.generator.@class.Should().Be.EqualTo("hilo"); - hbmId.type.ToLowerInvariant().Should().Contain("int"); + Assert.That(hbmId.generator.@class, Is.EqualTo("hilo")); + Assert.That(hbmId.type.ToLowerInvariant(), Is.StringContaining("int")); } [Test] @@ -38,8 +38,8 @@ public void WhenForceTypeThenNotChangeType() collectionIdMapper.Type((IIdentifierType) NHibernateUtil.Int64); collectionIdMapper.Generator(Generators.HighLow); - hbmId.generator.@class.Should().Be.EqualTo("hilo"); - hbmId.type.Should().Be("Int64"); + Assert.That(hbmId.generator.@class, Is.EqualTo("hilo")); + Assert.That(hbmId.type, Is.EqualTo("Int64")); } [Test] @@ -47,7 +47,7 @@ public void CanSetGenerator() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.HighLow); - hbmId.generator.@class.Should().Be.EqualTo("hilo"); + Assert.That(hbmId.generator.@class, Is.EqualTo("hilo")); } [Test] @@ -55,10 +55,10 @@ public void CanSetGeneratorWithParameters() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.HighLow, p => p.Params(new { max_low = 99, where = "TableName" })); - hbmId.generator.@class.Should().Be.EqualTo("hilo"); - hbmId.generator.param.Should().Have.Count.EqualTo(2); - hbmId.generator.param.Select(p => p.name).Should().Have.SameValuesAs("max_low", "where"); - hbmId.generator.param.Select(p => p.GetText()).Should().Have.SameValuesAs("99", "TableName"); + Assert.That(hbmId.generator.@class, Is.EqualTo("hilo")); + Assert.That(hbmId.generator.param, Has.Length.EqualTo(2)); + Assert.That(hbmId.generator.param.Select(p => p.name), Is.EquivalentTo(new [] {"max_low", "where"})); + Assert.That(hbmId.generator.param.Select(p => p.GetText()), Is.EquivalentTo(new [] {"99", "TableName"})); } [Test] @@ -66,7 +66,7 @@ public void CanSetGeneratorGuid() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.Guid); - hbmId.generator.@class.Should().Be.EqualTo("guid"); + Assert.That(hbmId.generator.@class, Is.EqualTo("guid")); } [Test] @@ -74,7 +74,7 @@ public void CanSetGeneratorGuidComb() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.GuidComb); - hbmId.generator.@class.Should().Be.EqualTo("guid.comb"); + Assert.That(hbmId.generator.@class, Is.EqualTo("guid.comb")); } [Test] @@ -82,7 +82,7 @@ public void CanSetGeneratorSequence() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.Sequence); - hbmId.generator.@class.Should().Be.EqualTo("sequence"); + Assert.That(hbmId.generator.@class, Is.EqualTo("sequence")); } [Test] @@ -90,7 +90,7 @@ public void CanSetGeneratorIdentity() { var hbmId = new HbmCollectionId(); new CollectionIdMapper(hbmId).Generator(Generators.Identity); - hbmId.generator.@class.Should().Be.EqualTo("identity"); + Assert.That(hbmId.generator.@class, Is.EqualTo("identity")); } [Test] @@ -98,7 +98,7 @@ public void CantSetGeneratorAssigned() { var hbmId = new HbmCollectionId(); var collectionIdMapper = new CollectionIdMapper(hbmId); - collectionIdMapper.Executing(x=> x.Generator(Generators.Assigned)).Throws(); + Assert.That(() => collectionIdMapper.Generator(Generators.Assigned), Throws.TypeOf()); } [Test] @@ -107,7 +107,7 @@ public void CanSetColumnName() var hbmId = new HbmCollectionId(); var mapper = new CollectionIdMapper(hbmId); mapper.Column("MyName"); - hbmId.Columns.Single().name.Should().Be("MyName"); + Assert.That(hbmId.Columns.Single().name, Is.EqualTo("MyName")); } [Test] @@ -116,7 +116,7 @@ public void CanSetLength() var hbmId = new HbmCollectionId(); var mapper = new CollectionIdMapper(hbmId); mapper.Length(10); - hbmId.length.Should().Be("10"); + Assert.That(hbmId.length, Is.EqualTo("10")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs index 4d5a59b5ad8..6f1e7499dcc 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs @@ -33,7 +33,7 @@ public void WhenCreatedThenSetTheComponentClass() var component = new HbmCompositeId(); new ComponentAsIdMapper(typeof(PersonId), For.Property(x=> x.Id), component, mapdoc); - component.@class.Should().Contain("PersonId"); + Assert.That(component.@class, Is.StringContaining("PersonId")); } [Test] @@ -45,9 +45,9 @@ public void CanMapProperty() mapper.Property(For.Property(ts => ts.Email), x => { }); - compositeId.Items.Should().Have.Count.EqualTo(1); - compositeId.Items.First().Should().Be.OfType(); - compositeId.Items.OfType().First().Name.Should().Be.EqualTo("Email"); + Assert.That(compositeId.Items, Has.Length.EqualTo(1)); + Assert.That(compositeId.Items.First(), Is.TypeOf()); + Assert.That(compositeId.Items.OfType().First().Name, Is.EqualTo("Email")); } [Test] @@ -60,7 +60,7 @@ public void CallPropertyMapper() mapper.Property(For.Property(ts => ts.Email), x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -72,9 +72,9 @@ public void CanMapManyToOne() mapper.ManyToOne(For.Property(ts => ts.User), x => { }); - compositeId.Items.Should().Have.Count.EqualTo(1); - compositeId.Items.First().Should().Be.OfType(); - compositeId.Items.OfType().First().Name.Should().Be.EqualTo("User"); + Assert.That(compositeId.Items, Has.Length.EqualTo(1)); + Assert.That(compositeId.Items.First(), Is.TypeOf()); + Assert.That(compositeId.Items.OfType().First().Name, Is.EqualTo("User")); } [Test] @@ -87,7 +87,7 @@ public void CallMapManyToOneMapper() mapper.ManyToOne(For.Property(ts => ts.User), x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs index 8528ee7b356..9e77e932287 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs @@ -28,9 +28,9 @@ public void CanMapProperty() mapper.Property(For.Property(ts => ts.Email), x => { }); - compositeId.Items.Should().Have.Count.EqualTo(1); - compositeId.Items.First().Should().Be.OfType(); - compositeId.Items.OfType().First().Name.Should().Be.EqualTo("Email"); + Assert.That(compositeId.Items, Has.Length.EqualTo(1)); + Assert.That(compositeId.Items.First(), Is.TypeOf()); + Assert.That(compositeId.Items.OfType().First().Name, Is.EqualTo("Email")); } [Test] @@ -43,7 +43,7 @@ public void CallPropertyMapper() mapper.Property(For.Property(ts => ts.Email), x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -55,9 +55,9 @@ public void CanMapManyToOne() mapper.ManyToOne(For.Property(ts => ts.User), x => { }); - compositeId.Items.Should().Have.Count.EqualTo(1); - compositeId.Items.First().Should().Be.OfType(); - compositeId.Items.OfType().First().Name.Should().Be.EqualTo("User"); + Assert.That(compositeId.Items, Has.Length.EqualTo(1)); + Assert.That(compositeId.Items.First(), Is.TypeOf()); + Assert.That(compositeId.Items.OfType().First().Name, Is.EqualTo("User")); } [Test] @@ -70,7 +70,7 @@ public void CallMapManyToOneMapper() mapper.ManyToOne(For.Property(ts => ts.User), x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs index 28e78081fcf..557135964cf 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs @@ -30,7 +30,7 @@ public void WhenAddThenHas() mapper.Any(propertyInfo, typeof(int), x => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -44,7 +44,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Any(propertyInfo, typeof(int), x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -57,7 +57,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Any(propertyInfo, typeof(int), x => x.Access(Accessor.Field)); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs index f81e74170c4..672bc0f9d28 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs @@ -31,7 +31,7 @@ public void WhenAddThenHas() mapper.Bag(propertyInfo, x => { }, rel => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -45,7 +45,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Bag(propertyInfo, x => called = true, rel => { }); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -58,7 +58,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Bag(propertyInfo, x => x.Access(Accessor.Field), rel => { }); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs index 66e308c6f3d..a88d5b99875 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs @@ -34,7 +34,7 @@ public void WhenAddThenHas() mapper.Component(propertyInfo, (IComponentMapper x) => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -48,7 +48,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Component(propertyInfo, (IComponentMapper x) => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -61,7 +61,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Component(propertyInfo, (IComponentMapper x) => x.Access(Accessor.Field)); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs index ef393bf5b03..92dd18042b4 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs @@ -28,7 +28,7 @@ public void CanSetAccessor() var mapper = new DynamicComponentMapper(component, For.Property(p => p.Info), mapdoc); mapper.Access(Accessor.Field); - component.access.Should().Be("field.camelcase"); + Assert.That(component.access, Is.EqualTo("field.camelcase")); } [Test] @@ -39,7 +39,7 @@ public void CanSetUpdate() var mapper = new DynamicComponentMapper(component, For.Property(p => p.Info), mapdoc); mapper.Update(false); - component.update.Should().Be.False(); + Assert.That(component.update, Is.False); } [Test] @@ -50,7 +50,7 @@ public void CanSetInsert() var mapper = new DynamicComponentMapper(component, For.Property(p => p.Info), mapdoc); mapper.Insert(false); - component.insert.Should().Be.False(); + Assert.That(component.insert, Is.False); } [Test] @@ -61,7 +61,7 @@ public void CanSetOptimisticLock() var mapper = new DynamicComponentMapper(component, For.Property(p => p.Info), mapdoc); mapper.OptimisticLock(false); - component.OptimisticLock.Should().Be.False(); + Assert.That(component.OptimisticLock, Is.False); } [Test] @@ -73,7 +73,7 @@ public void CanAddSimpleProperty() var dynObject = new { Pizza = 5 }; mapper.Property(dynObject.GetType().GetProperty("Pizza"), x => { }); - component.Properties.Single().Should().Be.OfType().And.ValueOf.Name.Should().Be.EqualTo("Pizza"); + Assert.That(component.Properties.Single(), Is.TypeOf().And.Property("Name").EqualTo("Pizza")); } } diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs index 499d9d113a5..7f1c08d8dc7 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs @@ -30,7 +30,7 @@ public void WhenAddThenHas() mapper.Component(propertyInfo, (IDynamicComponentMapper x) => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("Info"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "Info" })); } [Test] @@ -44,7 +44,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Component(propertyInfo, (IDynamicComponentMapper x) => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -57,7 +57,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Component(propertyInfo, (IDynamicComponentMapper x) => x.Access(Accessor.Field)); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs index a20c3372e54..0acebea3b43 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs @@ -31,7 +31,7 @@ public void WhenAddThenHas() mapper.IdBag(propertyInfo, x => { }, rel => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -45,7 +45,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.IdBag(propertyInfo, x => called = true, rel => { }); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -58,7 +58,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.IdBag(propertyInfo, x => x.Access(Accessor.Field), rel => { }); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs index bace1343579..1bfd1f00363 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs @@ -31,7 +31,7 @@ public void WhenAddThenHas() mapper.List(propertyInfo, x => { }, rel => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -45,7 +45,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.List(propertyInfo, x => called = true, rel => { }); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -58,7 +58,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.List(propertyInfo, x => x.Access(Accessor.Field), rel => { }); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs index 2353d76d667..e5812dcc88c 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs @@ -34,7 +34,7 @@ public void WhenAddThenHas() mapper.ManyToOne(propertyInfo, x => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -48,7 +48,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.ManyToOne(propertyInfo, x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -61,7 +61,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.ManyToOne(propertyInfo, x => x.Access(Accessor.Field)); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs index d12c3eeb834..b579244f144 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs @@ -31,7 +31,7 @@ public void WhenAddThenHas() mapper.Map(propertyInfo, x => { }, km => { }, rel => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -45,7 +45,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Map(propertyInfo, x => called = true, km => { }, rel => { }); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -58,7 +58,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Map(propertyInfo, x => x.Access(Accessor.Field), km => { }, rel => { }); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs index c4240c82614..d951fcd26d5 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs @@ -34,7 +34,7 @@ public void WhenAddThenHas() mapper.OneToOne(propertyInfo, x => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -48,7 +48,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.OneToOne(propertyInfo, x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -61,7 +61,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.OneToOne(propertyInfo, x => x.Access(Accessor.Field)); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs index 5b7ee8df69b..66405c0c3b2 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs @@ -31,7 +31,7 @@ public void WhenAddThenHas() mapper.Set(propertyInfo, x => { }, rel => { }); - component.Properties.Select(x => x.Name).Should().Have.SameSequenceAs("A"); + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] { "A" })); } [Test] @@ -45,7 +45,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Set(propertyInfo, x => called = true, rel => { }); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -58,7 +58,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Set(propertyInfo, x => x.Access(Accessor.Field), rel => { }); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs index 29f34256ece..2ee236c8fcf 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs @@ -29,8 +29,8 @@ public void WhenAddThenHas() var propertyInfo = (new { A = 5 }).GetType().GetProperty("A"); mapper.Property(propertyInfo, x => { }); - - component.Properties.Select(x=> x.Name).Should().Have.SameSequenceAs("A"); + + Assert.That(component.Properties.Select(x => x.Name), Is.EquivalentTo(new[] {"A"})); } [Test] @@ -43,7 +43,7 @@ public void WhenCustomizeThenCallCustomizer() var called = false; mapper.Property(propertyInfo, x => called = true); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -56,7 +56,7 @@ public void WhenCustomizeAccessorThenIgnore() mapper.Property(propertyInfo, x => x.Access(Accessor.Field)); - component.Properties.OfType().Single().Access.Should().Be.NullOrEmpty(); + Assert.That(component.Properties.OfType().Single().Access, Is.Null.Or.Empty); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs index ed8a6ce3dea..afa656c33dd 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs @@ -26,7 +26,7 @@ public void WhenCreatedHasId() { var hbm = new HbmIdbag(); new IdBagMapper(typeof(Animal), typeof(Animal), hbm); - hbm.collectionid.Should().Not.Be.Null(); + Assert.That(hbm.collectionid, Is.Not.Null); } [Test] @@ -39,7 +39,7 @@ public void WhenConfigureIdMoreThanOnceThenUseSameMapper() mapper.Id(x => firstInstance = x); mapper.Id(x => secondInstance = x); - firstInstance.Should().Be.SameInstanceAs(secondInstance); + Assert.That(firstInstance, Is.SameAs(secondInstance)); } [Test] @@ -49,7 +49,7 @@ public void WhenConfigureIdThenCallMapper() var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Id(x => x.Column("catchMe")); - hbm.collectionid.Columns.Single().name.Should().Be("catchMe"); + Assert.That(hbm.collectionid.Columns.Single().name, Is.EqualTo("catchMe")); } [Test] @@ -58,9 +58,9 @@ public void SetInverse() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Inverse(true); - hbm.Inverse.Should().Be.True(); + Assert.That(hbm.Inverse, Is.True); mapper.Inverse(false); - hbm.Inverse.Should().Be.False(); + Assert.That(hbm.Inverse, Is.False); } [Test] @@ -69,9 +69,9 @@ public void SetMutable() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Mutable(true); - hbm.Mutable.Should().Be.True(); + Assert.That(hbm.Mutable, Is.True); mapper.Mutable(false); - hbm.Mutable.Should().Be.False(); + Assert.That(hbm.Mutable, Is.False); } [Test] @@ -80,7 +80,7 @@ public void SetWhere() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Where("c > 10"); - hbm.Where.Should().Be.EqualTo("c > 10"); + Assert.That(hbm.Where, Is.EqualTo("c > 10")); } [Test] @@ -89,7 +89,7 @@ public void SetBatchSize() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.BatchSize(10); - hbm.BatchSize.Should().Be.EqualTo(10); + Assert.That(hbm.BatchSize, Is.EqualTo(10)); } [Test] @@ -98,11 +98,11 @@ public void SetLazy() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Lazy(CollectionLazy.Extra); - hbm.Lazy.Should().Be.EqualTo(HbmCollectionLazy.Extra); + Assert.That(hbm.Lazy, Is.EqualTo(HbmCollectionLazy.Extra)); mapper.Lazy(CollectionLazy.NoLazy); - hbm.Lazy.Should().Be.EqualTo(HbmCollectionLazy.False); + Assert.That(hbm.Lazy, Is.EqualTo(HbmCollectionLazy.False)); mapper.Lazy(CollectionLazy.Lazy); - hbm.Lazy.Should().Be.EqualTo(HbmCollectionLazy.True); + Assert.That(hbm.Lazy, Is.EqualTo(HbmCollectionLazy.True)); } [Test] @@ -112,8 +112,8 @@ public void CallKeyMapper() var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); bool kmCalled = false; mapper.Key(km => kmCalled = true); - hbm.Key.Should().Not.Be.Null(); - kmCalled.Should().Be.True(); + Assert.That(hbm.Key, Is.Not.Null); + Assert.That(kmCalled, Is.True); } [Test] @@ -121,8 +121,8 @@ public void SetCollectionTypeByWrongTypeShouldThrow() { var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); - Executing.This(() => mapper.Type(null)).Should().Throw(); - Executing.This(() => mapper.Type(typeof(object))).Should().Throw(); + Assert.That(() => mapper.Type(null), Throws.TypeOf()); + Assert.That(() => mapper.Type(typeof(object)), Throws.TypeOf()); } [Test] @@ -131,7 +131,7 @@ public void SetCollectionTypeByGenericType() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Type(); - hbm.CollectionType.Should().Contain("FakeUserCollectionType"); + Assert.That(hbm.CollectionType, Is.StringContaining("FakeUserCollectionType")); } [Test] @@ -140,7 +140,7 @@ public void SetCollectionTypeByType() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Type(typeof(FakeUserCollectionType)); - hbm.CollectionType.Should().Contain("FakeUserCollectionType"); + Assert.That(hbm.CollectionType, Is.StringContaining("FakeUserCollectionType")); } [Test] @@ -150,7 +150,7 @@ public void CanChangeAccessor() var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Access(Accessor.Field); - hbm.Access.Should().Not.Be.Null(); + Assert.That(hbm.Access, Is.Not.Null); } [Test] @@ -160,7 +160,7 @@ public void CanSetCache() var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Cache(x => x.Region("pizza")); - hbm.cache.Should().Not.Be.Null(); + Assert.That(hbm.cache, Is.Not.Null); } [Test] @@ -172,9 +172,9 @@ public void WhenSetTwoCachePropertiesInTwoActionsThenSetTheTwoValuesWithoutLostT mapper.Cache(ch => ch.Usage(CacheUsage.NonstrictReadWrite)); var hbmCache = hbm.cache; - hbmCache.Should().Not.Be.Null(); - hbmCache.region.Should().Be("pizza"); - hbmCache.usage.Should().Be(HbmCacheUsage.NonstrictReadWrite); + Assert.That(hbmCache, Is.Not.Null); + Assert.That(hbmCache.region, Is.EqualTo("pizza")); + Assert.That(hbmCache.usage, Is.EqualTo(HbmCacheUsage.NonstrictReadWrite)); } [Test] @@ -183,8 +183,9 @@ public void CanSetAFilterThroughAction() var hbm = new HbmIdbag { name = "Children" }; var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Filter("filter1", f => f.Condition("condition1")); - hbm.filter.Length.Should().Be(1); - hbm.filter[0].Satisfy(f => f.name == "filter1" && f.condition == "condition1"); + Assert.That(hbm.filter.Length, Is.EqualTo(1)); + Assert.That(hbm.filter[0].condition, Is.EqualTo("condition1")); + Assert.That(hbm.filter[0].name, Is.EqualTo("filter1")); } [Test] @@ -194,9 +195,9 @@ public void CanSetMoreFiltersThroughAction() var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Filter("filter1", f => f.Condition("condition1")); mapper.Filter("filter2", f => f.Condition("condition2")); - hbm.filter.Length.Should().Be(2); - hbm.filter.Satisfy(filters => filters.Any(f => f.name == "filter1" && f.condition == "condition1")); - hbm.filter.Satisfy(filters => filters.Any(f => f.name == "filter2" && f.condition == "condition2")); + Assert.That(hbm.filter.Length, Is.EqualTo(2)); + Assert.True(hbm.filter.Any(f => f.name == "filter1" && f.condition == "condition1")); + Assert.True(hbm.filter.Any(f => f.name == "filter2" && f.condition == "condition2")); } [Test] @@ -207,9 +208,9 @@ public void WhenSameNameThenOverrideCondition() mapper.Filter("filter1", f => f.Condition("condition1")); mapper.Filter("filter2", f => f.Condition("condition2")); mapper.Filter("filter1", f => f.Condition("anothercondition1")); - hbm.filter.Length.Should().Be(2); - hbm.filter.Satisfy(filters => filters.Any(f => f.name == "filter1" && f.condition == "anothercondition1")); - hbm.filter.Satisfy(filters => filters.Any(f => f.name == "filter2" && f.condition == "condition2")); + Assert.That(hbm.filter.Length, Is.EqualTo(2)); + Assert.That(hbm.filter.Any(f => f.name == "filter1" && f.condition == "anothercondition1"), Is.True); + Assert.That(hbm.filter.Any(f => f.name == "filter2" && f.condition == "condition2"), Is.True); } [Test] @@ -218,8 +219,10 @@ public void WhenActionIsNullThenAddFilterName() var hbm = new HbmIdbag { name = "Children" }; var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Filter("filter1", null); - hbm.filter.Length.Should().Be(1); - hbm.filter[0].Satisfy(f => f.name == "filter1" && f.condition == null); + Assert.That(hbm.filter.Length, Is.EqualTo(1)); + var filter = hbm.filter[0]; + Assert.That(filter.condition, Is.EqualTo(null)); + Assert.That(filter.name, Is.EqualTo("filter1")); } [Test] @@ -228,14 +231,14 @@ public void SetFetchMode() var hbm = new HbmIdbag(); var mapper = new IdBagMapper(typeof(Animal), typeof(Animal), hbm); mapper.Fetch(CollectionFetchMode.Subselect); - hbm.fetch.Should().Be(HbmCollectionFetchMode.Subselect); - hbm.fetchSpecified.Should().Be.True(); + Assert.That(hbm.fetch, Is.EqualTo(HbmCollectionFetchMode.Subselect)); + Assert.That(hbm.fetchSpecified, Is.True); mapper.Fetch(CollectionFetchMode.Join); - hbm.fetch.Should().Be(HbmCollectionFetchMode.Join); - hbm.fetchSpecified.Should().Be.True(); + Assert.That(hbm.fetch, Is.EqualTo(HbmCollectionFetchMode.Join)); + Assert.That(hbm.fetchSpecified, Is.True); mapper.Fetch(CollectionFetchMode.Select); - hbm.fetch.Should().Be(HbmCollectionFetchMode.Select); - hbm.fetchSpecified.Should().Be.False(); + Assert.That(hbm.fetch, Is.EqualTo(HbmCollectionFetchMode.Select)); + Assert.That(hbm.fetchSpecified, Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs index 6ee5bcfb1da..427f4a26c3f 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs @@ -23,7 +23,7 @@ public void CanSetGenerator() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.HighLow); - hbmId.generator.@class.Should().Be.EqualTo("hilo"); + Assert.That(hbmId.generator.@class, Is.EqualTo("hilo")); } [Test] @@ -31,10 +31,10 @@ public void CanSetGeneratorWithParameters() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.HighLow, p => p.Params(new { max_low = 99, where = "TableName" })); - hbmId.generator.@class.Should().Be.EqualTo("hilo"); - hbmId.generator.param.Should().Have.Count.EqualTo(2); - hbmId.generator.param.Select(p => p.name).Should().Have.SameValuesAs("max_low", "where"); - hbmId.generator.param.Select(p => p.GetText()).Should().Have.SameValuesAs("99", "TableName"); + Assert.That(hbmId.generator.@class, Is.EqualTo("hilo")); + Assert.That(hbmId.generator.param, Has.Length.EqualTo(2)); + Assert.That(hbmId.generator.param.Select(p => p.name), Is.EquivalentTo(new [] {"max_low", "where"})); + Assert.That(hbmId.generator.param.Select(p => p.GetText()), Is.EquivalentTo(new [] {"99", "TableName"})); } [Test] @@ -42,7 +42,7 @@ public void CanSetGeneratorGuid() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.Guid); - hbmId.generator.@class.Should().Be.EqualTo("guid"); + Assert.That(hbmId.generator.@class, Is.EqualTo("guid")); } [Test] @@ -50,7 +50,7 @@ public void CanSetGeneratorGuidComb() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.GuidComb); - hbmId.generator.@class.Should().Be.EqualTo("guid.comb"); + Assert.That(hbmId.generator.@class, Is.EqualTo("guid.comb")); } [Test] @@ -58,7 +58,7 @@ public void CanSetGeneratorSequence() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.Sequence); - hbmId.generator.@class.Should().Be.EqualTo("sequence"); + Assert.That(hbmId.generator.@class, Is.EqualTo("sequence")); } [Test] @@ -66,7 +66,7 @@ public void CanSetGeneratorIdentity() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.Identity); - hbmId.generator.@class.Should().Be.EqualTo("identity"); + Assert.That(hbmId.generator.@class, Is.EqualTo("identity")); } private class MyClass @@ -85,9 +85,11 @@ public void CanSetGeneratorForeign() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.Foreign(mc => mc.OneToOne)); - hbmId.generator.@class.Should().Be.EqualTo("foreign"); - hbmId.generator.param.Should().Not.Be.Null().And.Have.Count.EqualTo(1); - hbmId.generator.param.Single().Satisfy(p => p.name == "property" && p.GetText() == "OneToOne"); + Assert.That(hbmId.generator.@class, Is.EqualTo("foreign")); + Assert.That(hbmId.generator.param, Is.Not.Null.And.Length.EqualTo(1)); + var p = hbmId.generator.param.Single(); + Assert.That(p.GetText(), Is.EqualTo("OneToOne")); + Assert.That(p.name, Is.EqualTo("property")); } [Test] @@ -95,7 +97,7 @@ public void CanSetGeneratorAssigned() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.Assigned); - hbmId.generator.@class.Should().Be.EqualTo("assigned"); + Assert.That(hbmId.generator.@class, Is.EqualTo("assigned")); } [Test] @@ -103,7 +105,7 @@ public void CanSetGeneratorEnhancedSequence() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.EnhancedSequence); - hbmId.generator.@class.Should().Be.EqualTo("enhanced-sequence"); + Assert.That(hbmId.generator.@class, Is.EqualTo("enhanced-sequence")); } [Test] @@ -111,7 +113,7 @@ public void CanSetGeneratorEnhancedTable() { var hbmId = new HbmId(); new IdMapper(hbmId).Generator(Generators.EnhancedTable); - hbmId.generator.@class.Should().Be.EqualTo("enhanced-table"); + Assert.That(hbmId.generator.@class, Is.EqualTo("enhanced-table")); } private class BaseEntity { @@ -137,7 +139,7 @@ public void WhenHasMemberCanSetAccessor() var hbmId = new HbmId(); var mapper = new IdMapper(member, hbmId); mapper.Access(Accessor.NoSetter); - hbmId.access.Should().Be("nosetter.camelcase"); + Assert.That(hbmId.access, Is.EqualTo("nosetter.camelcase")); } [Test] @@ -146,7 +148,7 @@ public void CanSetColumnName() var hbmId = new HbmId(); var mapper = new IdMapper(null, hbmId); mapper.Column("MyName"); - hbmId.Columns.Single().name.Should().Be("MyName"); + Assert.That(hbmId.Columns.Single().name, Is.EqualTo("MyName")); } [TestCase(-1, "-1")] @@ -156,7 +158,7 @@ public void CanSetUnsavedValue(object unsavedValue, string expectedUnsavedValue) var hbmId = new HbmId(); var mapper = new IdMapper(null, hbmId); mapper.UnsavedValue(unsavedValue); - hbmId.unsavedvalue.Should().Be(expectedUnsavedValue); + Assert.That(hbmId.unsavedvalue, Is.EqualTo(expectedUnsavedValue)); } [Test] @@ -164,7 +166,7 @@ public void UnsavedValueUnsetWhenNotSet() { var hbmId = new HbmId(); var mapper = new IdMapper(null, hbmId); - hbmId.unsavedvalue.Should().Be(null); + Assert.That(hbmId.unsavedvalue, Is.EqualTo(null)); } [Test] @@ -173,7 +175,7 @@ public void CanSetLength() var hbmId = new HbmId(); var mapper = new IdMapper(null, hbmId); mapper.Length(10); - hbmId.length.Should().Be("10"); + Assert.That(hbmId.length, Is.EqualTo("10")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs index 06ddbae340c..82126c327e0 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; @@ -19,16 +20,16 @@ public void WhenCreateWithEmptySplitGroupThenThrows() { var mapdoc = new HbmMapping(); var hbmJoin = new HbmJoin(); - Executing.This(() => new JoinMapper(typeof(MyClass), null, hbmJoin, mapdoc)).Should().Throw(); - Executing.This(() => new JoinMapper(typeof(MyClass), "", hbmJoin, mapdoc)).Should().Throw(); - Executing.This(() => new JoinMapper(typeof(MyClass), " ", hbmJoin, mapdoc)).Should().Throw(); + Assert.That(() => new JoinMapper(typeof(MyClass), null, hbmJoin, mapdoc), Throws.TypeOf()); + Assert.That(() => new JoinMapper(typeof(MyClass), "", hbmJoin, mapdoc), Throws.TypeOf()); + Assert.That(() => new JoinMapper(typeof(MyClass), " ", hbmJoin, mapdoc), Throws.TypeOf()); } [Test] public void WhenCreateWithNullHbmJoinThenThrows() { var mapdoc = new HbmMapping(); - Executing.This(() => new JoinMapper(typeof(MyClass), "AA", null, mapdoc)).Should().Throw(); + Assert.That(() => new JoinMapper(typeof(MyClass), "AA", null, mapdoc), Throws.TypeOf()); } [Test] @@ -37,7 +38,7 @@ public void WhenCreateThenSetDefaultTableName() var mapdoc = new HbmMapping(); var hbmJoin = new HbmJoin(); new JoinMapper(typeof(MyClass), " AA ", hbmJoin, mapdoc); - hbmJoin.table.Should().Be("AA"); + Assert.That(hbmJoin.table, Is.EqualTo("AA")); } [Test] @@ -47,7 +48,7 @@ public void CanSetTable() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Table(" Pizza "); - hbmJoin.table.Should().Be("Pizza"); + Assert.That(hbmJoin.table, Is.EqualTo("Pizza")); } [Test] @@ -56,9 +57,9 @@ public void WhenSetTableNameEmptyThenThrows() var mapdoc = new HbmMapping(); var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); - mapper.Executing(x => x.Table(null)).Throws(); - mapper.Executing(x => x.Table("")).Throws(); - mapper.Executing(x => x.Table(" ")).Throws(); + Assert.That(() => mapper.Table(null), Throws.TypeOf()); + Assert.That(() => mapper.Table(""), Throws.TypeOf()); + Assert.That(() => mapper.Table(" "), Throws.TypeOf()); } [Test] @@ -69,14 +70,14 @@ public void WhenTableNameChangesValueThenNotify() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.TableNameChanged += (m, x) => - { - m.Should().Be.SameInstanceAs(mapper); - x.OldName.Should().Be("AA"); - x.NewName.Should().Be("Pizza"); + { + Assert.That(m, Is.SameAs(mapper)); + Assert.That(x.OldName, Is.EqualTo("AA")); + Assert.That(x.NewName, Is.EqualTo("Pizza")); eventCalled = true; }; mapper.Table(" Pizza "); - eventCalled.Should().Be.True(); + Assert.That(eventCalled, Is.True); } [Test] @@ -86,7 +87,7 @@ public void CanSetCatalog() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Catalog("pizza"); - hbmJoin.catalog.Should().Be("pizza"); + Assert.That(hbmJoin.catalog, Is.EqualTo("pizza")); } [Test] @@ -96,7 +97,7 @@ public void CanSetSchema() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Schema("pizza"); - hbmJoin.schema.Should().Be("pizza"); + Assert.That(hbmJoin.schema, Is.EqualTo("pizza")); } [Test] @@ -107,8 +108,8 @@ public void CanSetSqlInsert() var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.SqlInsert("blah"); - hbmJoin.SqlInsert.Should().Not.Be.Null(); - hbmJoin.SqlInsert.Text[0].Should().Be("blah"); + Assert.That(hbmJoin.SqlInsert, Is.Not.Null); + Assert.That(hbmJoin.SqlInsert.Text[0], Is.EqualTo("blah")); } [Test] @@ -119,8 +120,8 @@ public void SetSqlUpdate() var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.SqlUpdate("blah"); - hbmJoin.SqlUpdate.Should().Not.Be.Null(); - hbmJoin.SqlUpdate.Text[0].Should().Be("blah"); + Assert.That(hbmJoin.SqlUpdate, Is.Not.Null); + Assert.That(hbmJoin.SqlUpdate.Text[0], Is.EqualTo("blah")); } [Test] @@ -131,8 +132,8 @@ public void SetSqlDelete() var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.SqlDelete("blah"); - hbmJoin.SqlDelete.Should().Not.Be.Null(); - hbmJoin.SqlDelete.Text[0].Should().Be("blah"); + Assert.That(hbmJoin.SqlDelete, Is.Not.Null); + Assert.That(hbmJoin.SqlDelete.Text[0], Is.EqualTo("blah")); } [Test] @@ -143,8 +144,8 @@ public void CanSetSqlSubselect() var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Subselect("blah"); - hbmJoin.Subselect.Should().Not.Be.Null(); - hbmJoin.subselect.Text[0].Should().Be("blah"); + Assert.That(hbmJoin.Subselect, Is.Not.Null); + Assert.That(hbmJoin.subselect.Text[0], Is.EqualTo("blah")); } [Test] @@ -154,7 +155,7 @@ public void CanSetInverse() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Inverse(true); - hbmJoin.inverse.Should().Be.True(); + Assert.That(hbmJoin.inverse, Is.True); } [Test] @@ -164,7 +165,7 @@ public void CanSetOptional() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Optional(true); - hbmJoin.optional.Should().Be.True(); + Assert.That(hbmJoin.optional, Is.True); } [Test] @@ -174,7 +175,7 @@ public void CanSetFetch() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.Fetch(FetchKind.Select); - hbmJoin.fetch.Should().Be(HbmJoinFetch.Select); + Assert.That(hbmJoin.fetch, Is.EqualTo(HbmJoinFetch.Select)); } [Test] @@ -187,7 +188,7 @@ public void CallKeyMapper() mapper.Key(km => keyMapperCalled = true); - keyMapperCalled.Should().Be.True(); + Assert.That(keyMapperCalled, Is.True); } [Test] @@ -197,7 +198,7 @@ public void WhenCallKeyMapperThenKeyMapperIsNotNull() var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); - mapper.Key(km => km.Should().Not.Be.Null()); + mapper.Key(km => Assert.That(km, Is.Not.Null)); } [Test] @@ -212,7 +213,7 @@ public void WhenCallKeyMapperMoreThanOnceThenKeyMapperIsTheSame() mapper.Key(km => firstCallInstance = km); mapper.Key(km => secondCallInstance = km); - firstCallInstance.Should().Be.SameInstanceAs(secondCallInstance); + Assert.That(firstCallInstance, Is.SameAs(secondCallInstance)); } [Test] @@ -224,7 +225,7 @@ public void WhenAddPropertyThenAddItem() mapper.Property(For.Property(mc => mc.Something), x => { }); - hbmJoin.Properties.Should().Have.Count.EqualTo(1); + Assert.That(hbmJoin.Properties.Count(), Is.EqualTo(1)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs index 02e8b704c3b..a77fa142a55 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs @@ -23,7 +23,7 @@ public void CanSetPersister() var mapdoc = new HbmMapping(); var rc = new JoinedSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Persister(); - mapdoc.JoinedSubclasses[0].Persister.Should().Contain("JoinedSubclassEntityPersister"); + Assert.That(mapdoc.JoinedSubclasses[0].Persister, Is.StringContaining("JoinedSubclassEntityPersister")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs index 37379014161..b188b7f76bb 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs @@ -22,7 +22,7 @@ public void WhenSetSyncWithNullThenDoesNotThrows() { var mapdoc = new HbmMapping(); var rc = new JoinedSubclassMapper(typeof(InheritedSimple), mapdoc); - rc.Executing(x => x.Synchronize(null)).NotThrows(); + Assert.That(() => rc.Synchronize(null), Throws.Nothing); } [Test] @@ -31,7 +31,7 @@ public void WhenSetSyncMixedWithNullAndEmptyThenAddOnlyValid() var mapdoc = new HbmMapping(); var rc = new JoinedSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("", " ATable ", " ", null); - mapdoc.JoinedSubclasses[0].Synchronize.Single().table.Should().Be("ATable"); + Assert.That(mapdoc.JoinedSubclasses[0].Synchronize.Single().table, Is.EqualTo("ATable")); } [Test] @@ -40,7 +40,7 @@ public void WhenSetMoreSyncThenAddAll() var mapdoc = new HbmMapping(); var rc = new JoinedSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2", "T3", null); - mapdoc.JoinedSubclasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.JoinedSubclasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -50,7 +50,7 @@ public void WhenSetMoreThenOnceThenAddAll() var rc = new JoinedSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2"); rc.Synchronize("T3"); - mapdoc.JoinedSubclasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.JoinedSubclasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -60,7 +60,7 @@ public void WhenSetMoreThenOnceThenDoesNotDuplicate() var rc = new JoinedSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2"); rc.Synchronize("T3", "T2"); - mapdoc.JoinedSubclasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.JoinedSubclasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs index fdc74ab0a46..03113db2f14 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs @@ -35,7 +35,7 @@ public void AssignCascadeStyle() var hbm = new HbmManyToOne(); var mapper = new ManyToOneMapper(null, hbm, hbmMapping); mapper.Cascade(Mapping.ByCode.Cascade.Persist | Mapping.ByCode.Cascade.Remove); - hbm.cascade.Split(',').Select(w => w.Trim()).Should().Contain("persist").And.Contain("delete"); + Assert.That(hbm.cascade.Split(',').Select(w => w.Trim()), Contains.Item("persist").And.Contains("delete")); } [Test] @@ -45,7 +45,7 @@ public void AutoCleanUnsupportedCascadeStyle() var hbm = new HbmManyToOne(); var mapper = new ManyToOneMapper(null, hbm, hbmMapping); mapper.Cascade(Mapping.ByCode.Cascade.Persist | Mapping.ByCode.Cascade.DeleteOrphans | Mapping.ByCode.Cascade.Remove); - hbm.cascade.Split(',').Select(w => w.Trim()).All(w => w.Satisfy(cascade => !cascade.Contains("orphan"))); + Assert.True(hbm.cascade.Split(',').Select(w => w.Trim()).All(w => !w.Contains("orphan"))); } [Test] @@ -57,7 +57,7 @@ public void CanSetAccessor() var mapper = new ManyToOneMapper(member, hbm, hbmMapping); mapper.Access(Accessor.ReadOnly); - hbm.Access.Should().Be("readonly"); + Assert.That(hbm.Access, Is.EqualTo("readonly")); } [Test] @@ -69,8 +69,8 @@ public void WhenSetDifferentColumnNameThenSetTheName() var mapper = new ManyToOneMapper(member, hbm, hbmMapping); mapper.Column(cm => cm.Name("RelationId")); - hbm.Columns.Should().Have.Count.EqualTo(1); - hbm.Columns.Single().name.Should().Be("RelationId"); + Assert.That(hbm.Columns.Count(), Is.EqualTo(1)); + Assert.That(hbm.Columns.Single().name, Is.EqualTo("RelationId")); } [Test] @@ -81,8 +81,8 @@ public void WhenSetDefaultColumnNameThenDoesNotSetTheName() var mapping = new HbmManyToOne(); var mapper = new ManyToOneMapper(member, mapping, hbmMapping); mapper.Column(cm => cm.Name("Relation")); - mapping.column.Should().Be.Null(); - mapping.Columns.Should().Be.Empty(); + Assert.That(mapping.column, Is.Null); + Assert.That(mapping.Columns, Is.Empty); } [Test] @@ -97,10 +97,10 @@ public void WhenSetBasicColumnValuesThenSetPlainValues() cm.UniqueKey("theUnique"); cm.NotNullable(true); }); - mapping.Items.Should().Be.Null(); - mapping.uniquekey.Should().Be("theUnique"); - mapping.notnull.Should().Be(true); - mapping.notnullSpecified.Should().Be(true); + Assert.That(mapping.Items, Is.Null); + Assert.That(mapping.uniquekey, Is.EqualTo("theUnique")); + Assert.That(mapping.notnull, Is.EqualTo(true)); + Assert.That(mapping.notnullSpecified, Is.EqualTo(true)); } [Test] @@ -115,8 +115,8 @@ public void WhenSetColumnValuesThenAddColumnTag() cm.SqlType("BIGINT"); cm.NotNullable(true); }); - mapping.Items.Should().Not.Be.Null(); - mapping.Columns.Should().Have.Count.EqualTo(1); + Assert.That(mapping.Items, Is.Not.Null); + Assert.That(mapping.Columns.Count(), Is.EqualTo(1)); } [Test] @@ -129,10 +129,10 @@ public void WhenSetBasicColumnValuesMoreThanOnesThenMergeColumn() mapper.Column(cm => cm.UniqueKey("theUnique")); mapper.Column(cm => cm.NotNullable(true)); - mapping.Items.Should().Be.Null(); - mapping.uniquekey.Should().Be("theUnique"); - mapping.notnull.Should().Be(true); - mapping.notnullSpecified.Should().Be(true); + Assert.That(mapping.Items, Is.Null); + Assert.That(mapping.uniquekey, Is.EqualTo("theUnique")); + Assert.That(mapping.notnull, Is.EqualTo(true)); + Assert.That(mapping.notnullSpecified, Is.EqualTo(true)); } [Test] @@ -151,7 +151,7 @@ public void WhenSetMultiColumnsValuesThenAddColumns() cm.Name("column2"); cm.SqlType("VARCHAR(10)"); }); - mapping.Columns.Should().Have.Count.EqualTo(2); + Assert.That(mapping.Columns.Count(), Is.EqualTo(2)); } [Test] @@ -162,8 +162,8 @@ public void WhenSetMultiColumnsValuesThenAutoassignColumnNames() var mapping = new HbmManyToOne(); var mapper = new ManyToOneMapper(member, mapping, hbmMapping); mapper.Columns(cm => cm.Length(50), cm => cm.SqlType("VARCHAR(10)")); - mapping.Columns.Should().Have.Count.EqualTo(2); - mapping.Columns.All(cm => cm.name.Satisfy(n => !string.IsNullOrEmpty(n))); + Assert.That(mapping.Columns.Count(), Is.EqualTo(2)); + Assert.That(mapping.Columns.All(cm => !string.IsNullOrEmpty(cm.name)), Is.True); } [Test] @@ -174,7 +174,7 @@ public void AfterSetMultiColumnsCantSetSimpleColumn() var mapping = new HbmManyToOne(); var mapper = new ManyToOneMapper(member, mapping, hbmMapping); mapper.Columns(cm => cm.Length(50), cm => cm.SqlType("VARCHAR(10)")); - Executing.This(() => mapper.Column(cm => cm.Length(50))).Should().Throw(); + Assert.That(() => mapper.Column(cm => cm.Length(50)), Throws.TypeOf()); } [Test] @@ -190,12 +190,12 @@ public void WhenSetBasicColumnValuesThroughShortCutThenMergeColumn() mapper.UniqueKey("AA"); mapper.Index("II"); - mapping.Items.Should().Be.Null(); - mapping.column.Should().Be("pizza"); - mapping.notnull.Should().Be(true); - mapping.unique.Should().Be(true); - mapping.uniquekey.Should().Be("AA"); - mapping.index.Should().Be("II"); + Assert.That(mapping.Items, Is.Null); + Assert.That(mapping.column, Is.EqualTo("pizza")); + Assert.That(mapping.notnull, Is.EqualTo(true)); + Assert.That(mapping.unique, Is.EqualTo(true)); + Assert.That(mapping.uniquekey, Is.EqualTo("AA")); + Assert.That(mapping.index, Is.EqualTo("II")); } [Test(Description = "NH-3618")] @@ -227,8 +227,8 @@ public void WhenSetFetchModeToJoinThenSetFetch() mapper.Fetch(FetchKind.Join); - mapping.fetch.Should().Be(HbmFetchMode.Join); - mapping.fetchSpecified.Should().Be.True(); + Assert.That(mapping.fetch, Is.EqualTo(HbmFetchMode.Join)); + Assert.That(mapping.fetchSpecified, Is.True); } [Test] @@ -241,8 +241,8 @@ public void WhenSetFetchModeToSelectThenResetFetch() mapper.Fetch(FetchKind.Select); - mapping.fetch.Should().Be(HbmFetchMode.Select); - mapping.fetchSpecified.Should().Be.False(); + Assert.That(mapping.fetch, Is.EqualTo(HbmFetchMode.Select)); + Assert.That(mapping.fetchSpecified, Is.False); } [Test] @@ -255,7 +255,7 @@ public void CanForceClassRelation() mapper.Class(typeof(Relation)); - mapping.Class.Should().Contain("Relation").And.Not.Contain("IRelation"); + Assert.That(mapping.Class, Is.StringContaining("Relation").And.Not.Contains("IRelation")); } [Test] @@ -266,7 +266,7 @@ public void WhenForceClassRelationToIncompatibleTypeThenThrows() var mapping = new HbmManyToOne(); var mapper = new ManyToOneMapper(member, mapping, hbmMapping); - Executing.This(() => mapper.Class(typeof(Whatever))).Should().Throw(); + Assert.That(() => mapper.Class(typeof(Whatever)), Throws.TypeOf()); } [Test] @@ -277,8 +277,8 @@ public void CanSetLazyness() var mapping = new HbmManyToOne(); var mapper = new ManyToOneMapper(member, mapping, hbmMapping); mapper.Lazy(LazyRelation.NoProxy); - mapping.Lazy.Should().Have.Value(); - mapping.Lazy.Should().Be(HbmLaziness.NoProxy); + Assert.That(mapping.Lazy, Is.Not.Null); + Assert.That(mapping.Lazy, Is.EqualTo(HbmLaziness.NoProxy)); } [Test] @@ -290,7 +290,7 @@ public void CanSetUpdate() var mapper = new ManyToOneMapper(member, hbm, hbmMapping); mapper.Update(false); - hbm.update.Should().Be.False(); + Assert.That(hbm.update, Is.False); } [Test] @@ -302,7 +302,7 @@ public void CanSetInsert() var mapper = new ManyToOneMapper(member, hbm, hbmMapping); mapper.Insert(false); - hbm.insert.Should().Be.False(); + Assert.That(hbm.insert, Is.False); } [Test] @@ -315,7 +315,7 @@ public void CanSetFk() mapper.ForeignKey("MyFkName"); - hbm.foreignkey.Should().Be("MyFkName"); + Assert.That(hbm.foreignkey, Is.EqualTo("MyFkName")); } [Test] @@ -328,7 +328,7 @@ public void CanSetPropertyRefName() mapper.PropertyRef("PropertyRefName"); - hbm.propertyref.Should().Be("PropertyRefName"); + Assert.That(hbm.propertyref, Is.EqualTo("PropertyRefName")); } [Test] @@ -341,7 +341,7 @@ public void CanSetNotFoundWithExceptionMode() mapper.NotFound(NotFoundMode.Exception); - hbm.notfound.Should().Be(HbmNotFoundMode.Exception); + Assert.That(hbm.notfound, Is.EqualTo(HbmNotFoundMode.Exception)); } [Test] @@ -354,7 +354,7 @@ public void CanSetNotFoundWithIgnoreMode() mapper.NotFound(NotFoundMode.Ignore); - hbm.notfound.Should().Be(HbmNotFoundMode.Ignore); + Assert.That(hbm.notfound, Is.EqualTo(HbmNotFoundMode.Ignore)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs index dc326b2135a..20ab0d5ae8b 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs @@ -23,7 +23,7 @@ public void CanSetMutable() var hbmNaturalId = hbmClass.naturalid; nid.Mutable(true); - hbmNaturalId.mutable.Should().Be.True(); + Assert.That(hbmNaturalId.mutable, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs index 80707da741f..64b233f0cfc 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs @@ -26,7 +26,7 @@ public void AssignCascadeStyle() var hbm = new HbmOneToOne(); var mapper = new OneToOneMapper(null, hbm); mapper.Cascade(Mapping.ByCode.Cascade.Persist | Mapping.ByCode.Cascade.Remove); - hbm.cascade.Split(',').Select(w => w.Trim()).Should().Contain("persist").And.Contain("delete"); + Assert.That(hbm.cascade.Split(',').Select(w => w.Trim()), Contains.Item("persist").And.Contains("delete")); } [Test] @@ -35,7 +35,7 @@ public void AutoCleanUnsupportedCascadeStyle() var hbm = new HbmOneToOne(); var mapper = new OneToOneMapper(null, hbm); mapper.Cascade(Mapping.ByCode.Cascade.Persist | Mapping.ByCode.Cascade.DeleteOrphans | Mapping.ByCode.Cascade.Remove); - hbm.cascade.Split(',').Select(w => w.Trim()).All(w => w.Satisfy(cascade => !cascade.Contains("orphan"))); + Assert.That(hbm.cascade.Split(',').Select(w => w.Trim()).All(cascade => !cascade.Contains("orphan")), Is.True); } [Test] @@ -46,7 +46,7 @@ public void CanSetAccessor() var mapper = new OneToOneMapper(member, hbm); mapper.Access(Accessor.ReadOnly); - hbm.Access.Should().Be("readonly"); + Assert.That(hbm.Access, Is.EqualTo("readonly")); } [Test] @@ -55,8 +55,8 @@ public void CanSetLazyness() var hbm = new HbmOneToOne(); var mapper = new OneToOneMapper(null, hbm); mapper.Lazy(LazyRelation.NoProxy); - hbm.Lazy.Should().Have.Value(); - hbm.Lazy.Should().Be(HbmLaziness.NoProxy); + Assert.That(hbm.Lazy, Is.Not.Null); + Assert.That(hbm.Lazy, Is.EqualTo(HbmLaziness.NoProxy)); } [Test] @@ -65,7 +65,7 @@ public void CanSetConstrained() var hbm = new HbmOneToOne(); var mapper = new OneToOneMapper(null, hbm); mapper.Constrained(true); - hbm.constrained.Should().Be.True(); + Assert.That(hbm.constrained, Is.True); } [Test] @@ -75,7 +75,7 @@ public void CanSetForeignKeyName() var mapper = new OneToOneMapper(null, hbm); mapper.ForeignKey("Id"); - hbm.foreignkey.Should().Be("Id"); + Assert.That(hbm.foreignkey, Is.EqualTo("Id")); } [Test] @@ -85,7 +85,7 @@ public void WhenForeignKeyIsNullForeignKeyMappingIsNull() var mapper = new OneToOneMapper(null, hbm); mapper.ForeignKey(null); - hbm.foreignkey.Should().Be.Null(); + Assert.That(hbm.foreignkey, Is.Null); } [Test] @@ -95,7 +95,7 @@ public void WhenNoMemberPropertyRefAcceptAnything() var mapper = new OneToOneMapper(null, hbm); mapper.PropertyReference(typeof(Array).GetProperty("Length")); - hbm.propertyref.Should().Be("Length"); + Assert.That(hbm.propertyref, Is.EqualTo("Length")); } [Test] @@ -105,7 +105,7 @@ public void WhenNullMemberPropertyRefNull() var mapper = new OneToOneMapper(null, hbm); mapper.PropertyReference(null); - hbm.propertyref.Should().Be.Null(); + Assert.That(hbm.propertyref, Is.Null); } [Test] @@ -115,9 +115,9 @@ public void WhenMemberPropertyRefAcceptOnlyMemberOfExpectedType() var mapper = new OneToOneMapper(typeof(MyClass).GetProperty("Relation"), hbm); mapper.PropertyReference(typeof(Relation).GetProperty("Whatever")); - hbm.propertyref.Should().Be("Whatever"); + Assert.That(hbm.propertyref, Is.EqualTo("Whatever")); - Executing.This(() => mapper.PropertyReference(typeof(Array).GetProperty("Length"))).Should().Throw(); + Assert.That(() => mapper.PropertyReference(typeof(Array).GetProperty("Length")), Throws.TypeOf()); } [Test] @@ -128,7 +128,7 @@ public void CanSetFormula() var mapper = new OneToOneMapper(member, mapping); mapper.Formula("SomeFormula"); - mapping.formula1.Should().Be("SomeFormula"); + Assert.That(mapping.formula1, Is.EqualTo("SomeFormula")); } [Test] @@ -138,8 +138,8 @@ public void WhenSetFormulaWithNullThenSetFormulaWithNull() var mapping = new HbmOneToOne(); var mapper = new OneToOneMapper(member, mapping); mapper.Formula(null); - mapping.formula.Should().Be.Null(); - mapping.formula1.Should().Be.Null(); + Assert.That(mapping.formula, Is.Null); + Assert.That(mapping.formula1, Is.Null); } [Test] @@ -151,12 +151,12 @@ public void WhenSetFormulaWithMultipleLinesThenSetFormulaNode() var formula = @"Line1 Line2"; mapper.Formula(formula); - mapping.formula1.Should().Be.Null(); + Assert.That(mapping.formula1, Is.Null); var hbmFormula = mapping.formula.First(); - hbmFormula.Text.Length.Should().Be(2); - hbmFormula.Text[0].Should().Be("Line1"); - hbmFormula.Text[1].Should().Be("Line2"); - mapping.formula1.Should().Be.Null(); + Assert.That(hbmFormula.Text.Length, Is.EqualTo(2)); + Assert.That(hbmFormula.Text[0], Is.EqualTo("Line1")); + Assert.That(hbmFormula.Text[1], Is.EqualTo("Line2")); + Assert.That(mapping.formula1, Is.Null); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs index 21a740e60d2..4674853017b 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs @@ -48,7 +48,7 @@ public void WhenCreateWithGivenAccessorMapperThenUseTheGivenAccessoMapper() var myAccessorMapper = new MyAccessorMapper(); var mapper = new PropertyMapper(member, mapping, myAccessorMapper); mapper.Access(Accessor.Field); - myAccessorMapper.AccessorCalled.Should().Be.True(); + Assert.That(myAccessorMapper.AccessorCalled, Is.True); } [Test] @@ -58,9 +58,9 @@ public void WhenSettingByTypeThenCheckCompatibility() var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); - Executing.This(() => mapper.Access(typeof(object))).Should().Throw(); - Executing.This(() => mapper.Access(typeof(FieldAccessor))).Should().NotThrow(); - mapping.Access.Should().Be.EqualTo(typeof(FieldAccessor).AssemblyQualifiedName); + Assert.That(() => mapper.Access(typeof(object)), Throws.TypeOf()); + Assert.That(() => mapper.Access(typeof(FieldAccessor)), Throws.Nothing); + Assert.That(mapping.Access, Is.EqualTo(typeof(FieldAccessor).AssemblyQualifiedName)); } [Test] @@ -71,7 +71,7 @@ public void WhenSetTypeByITypeThenSetTypeName() var mapper = new PropertyMapper(member, mapping); mapper.Type(NHibernateUtil.String); - mapping.Type.name.Should().Be.EqualTo("String"); + Assert.That(mapping.Type.name, Is.EqualTo("String")); } [Test] @@ -82,8 +82,8 @@ public void WhenSetTypeByIUserTypeThenSetTypeName() var mapper = new PropertyMapper(member, mapping); mapper.Type(); - mapping.Type.name.Should().Contain("MyType"); - mapping.type.Should().Be.Null(); + Assert.That(mapping.Type.name, Is.StringContaining("MyType")); + Assert.That(mapping.type, Is.Null); } [Test] @@ -94,8 +94,8 @@ public void WhenSetTypeByICompositeUserTypeThenSetTypeName() var mapper = new PropertyMapper(member, mapping); mapper.Type(); - mapping.Type.name.Should().Contain("MyCompoType"); - mapping.type.Should().Be.Null(); + Assert.That(mapping.Type.name, Is.StringContaining("MyCompoType")); + Assert.That(mapping.type, Is.Null); } [Test] @@ -106,11 +106,11 @@ public void WhenSetTypeByIUserTypeWithParamsThenSetType() var mapper = new PropertyMapper(member, mapping); mapper.Type(new { Param1 = "a", Param2 = 12 }); - mapping.type1.Should().Be.Null(); - mapping.Type.name.Should().Contain("MyType"); - mapping.Type.param.Should().Have.Count.EqualTo(2); - mapping.Type.param.Select(p => p.name).Should().Have.SameValuesAs("Param1", "Param2"); - mapping.Type.param.Select(p => p.GetText()).Should().Have.SameValuesAs("a", "12"); + Assert.That(mapping.type1, Is.Null); + Assert.That(mapping.Type.name, Is.StringContaining("MyType")); + Assert.That(mapping.Type.param, Has.Length.EqualTo(2)); + Assert.That(mapping.Type.param.Select(p => p.name), Is.EquivalentTo(new [] {"Param1", "Param2"})); + Assert.That(mapping.Type.param.Select(p => p.GetText()), Is.EquivalentTo(new [] {"a", "12"})); } [Test] @@ -121,8 +121,8 @@ public void WhenSetTypeByIUserTypeWithNullParamsThenSetTypeName() var mapper = new PropertyMapper(member, mapping); mapper.Type(null); - mapping.Type.name.Should().Contain("MyType"); - mapping.type.Should().Be.Null(); + Assert.That(mapping.Type.name, Is.StringContaining("MyType")); + Assert.That(mapping.type, Is.Null); } [Test] @@ -133,8 +133,8 @@ public void WhenSetTypeByITypeTypeThenSetType() var mapper = new PropertyMapper(member, mapping); mapper.Type>(); - mapping.Type.name.Should().Contain(typeof(EnumStringType).FullName); - mapping.type.Should().Be.Null(); + Assert.That(mapping.Type.name, Is.StringContaining(typeof(EnumStringType).FullName)); + Assert.That(mapping.type, Is.Null); } [Test] @@ -143,8 +143,8 @@ public void WhenSetInvalidTypeThenThrow() var member = typeof(MyClass).GetProperty("ReadOnly"); var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); - Executing.This(() => mapper.Type(typeof(object), null)).Should().Throw(); - Executing.This(() => mapper.Type(null, null)).Should().Throw(); + Assert.That(() => mapper.Type(typeof(object), null), Throws.TypeOf()); + Assert.That(() => mapper.Type(null, null), Throws.TypeOf()); } [Test] @@ -155,8 +155,8 @@ public void WhenSetDifferentColumnNameThenSetTheName() var mapper = new PropertyMapper(member, mapping); mapper.Column(cm => cm.Name("pepe")); - mapping.Columns.Should().Have.Count.EqualTo(1); - mapping.Columns.Single().name.Should().Be("pepe"); + Assert.That(mapping.Columns.Count(), Is.EqualTo(1)); + Assert.That(mapping.Columns.Single().name, Is.EqualTo("pepe")); } [Test] @@ -166,9 +166,9 @@ public void WhenSetDefaultColumnNameThenDoesNotSetTheName() var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); mapper.Column(cm => { cm.Name("Autoproperty"); cm.Length(50); }); - mapping.column.Should().Be.Null(); - mapping.length.Should().Be("50"); - mapping.Columns.Should().Be.Empty(); + Assert.That(mapping.column, Is.Null); + Assert.That(mapping.length, Is.EqualTo("50")); + Assert.That(mapping.Columns, Is.Empty); } [Test] @@ -182,10 +182,10 @@ public void WhenSetBasicColumnValuesThenSetPlainValues() cm.Length(50); cm.NotNullable(true); }); - mapping.Items.Should().Be.Null(); - mapping.length.Should().Be("50"); - mapping.notnull.Should().Be(true); - mapping.notnullSpecified.Should().Be(true); + Assert.That(mapping.Items, Is.Null); + Assert.That(mapping.length, Is.EqualTo("50")); + Assert.That(mapping.notnull, Is.EqualTo(true)); + Assert.That(mapping.notnullSpecified, Is.EqualTo(true)); } [Test] @@ -199,8 +199,8 @@ public void WhenSetColumnValuesThenAddColumnTag() cm.SqlType("VARCHAR(50)"); cm.NotNullable(true); }); - mapping.Items.Should().Not.Be.Null(); - mapping.Columns.Should().Have.Count.EqualTo(1); + Assert.That(mapping.Items, Is.Not.Null); + Assert.That(mapping.Columns.Count(), Is.EqualTo(1)); } [Test] @@ -212,10 +212,10 @@ public void WhenSetBasicColumnValuesMoreThanOnesThenMergeColumn() mapper.Column(cm => cm.Length(50)); mapper.Column(cm => cm.NotNullable(true)); - mapping.Items.Should().Be.Null(); - mapping.length.Should().Be("50"); - mapping.notnull.Should().Be(true); - mapping.notnullSpecified.Should().Be(true); + Assert.That(mapping.Items, Is.Null); + Assert.That(mapping.length, Is.EqualTo("50")); + Assert.That(mapping.notnull, Is.EqualTo(true)); + Assert.That(mapping.notnullSpecified, Is.EqualTo(true)); } [Test] @@ -234,7 +234,7 @@ public void WhenSetMultiColumnsValuesThenAddColumns() cm.Name("column2"); cm.SqlType("VARCHAR(10)"); }); - mapping.Columns.Should().Have.Count.EqualTo(2); + Assert.That(mapping.Columns.Count(), Is.EqualTo(2)); } [Test] @@ -244,8 +244,8 @@ public void WhenSetMultiColumnsValuesThenAutoassignColumnNames() var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); mapper.Columns(cm => cm.Length(50), cm => cm.SqlType("VARCHAR(10)")); - mapping.Columns.Should().Have.Count.EqualTo(2); - mapping.Columns.All(cm => cm.name.Satisfy(n => !string.IsNullOrEmpty(n))); + Assert.That(mapping.Columns.Count(), Is.EqualTo(2)); + Assert.True(mapping.Columns.All(cm => !string.IsNullOrEmpty(cm.name))); } [Test] @@ -255,7 +255,7 @@ public void AfterSetMultiColumnsCantSetSimpleColumn() var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); mapper.Columns(cm => cm.Length(50), cm => cm.SqlType("VARCHAR(10)")); - Executing.This(() => mapper.Column(cm => cm.Length(50))).Should().Throw(); + Assert.That(() => mapper.Column(cm => cm.Length(50)), Throws.TypeOf()); } [Test] @@ -273,15 +273,15 @@ public void WhenSetBasicColumnValuesThroughShortCutThenMergeColumn() mapper.UniqueKey("AA"); mapper.Index("II"); - mapping.Items.Should().Be.Null(); - mapping.column.Should().Be("pizza"); - mapping.length.Should().Be("50"); - mapping.precision.Should().Be("10"); - mapping.scale.Should().Be("2"); - mapping.notnull.Should().Be(true); - mapping.unique.Should().Be(true); - mapping.uniquekey.Should().Be("AA"); - mapping.index.Should().Be("II"); + Assert.That(mapping.Items, Is.Null); + Assert.That(mapping.column, Is.EqualTo("pizza")); + Assert.That(mapping.length, Is.EqualTo("50")); + Assert.That(mapping.precision, Is.EqualTo("10")); + Assert.That(mapping.scale, Is.EqualTo("2")); + Assert.That(mapping.notnull, Is.EqualTo(true)); + Assert.That(mapping.unique, Is.EqualTo(true)); + Assert.That(mapping.uniquekey, Is.EqualTo("AA")); + Assert.That(mapping.index, Is.EqualTo("II")); } [Test] @@ -292,8 +292,8 @@ public void WhenSetUpdateThenSetAttributes() var mapper = new PropertyMapper(member, mapping); mapper.Update(false); - mapping.update.Should().Be.False(); - mapping.updateSpecified.Should().Be.True(); + Assert.That(mapping.update, Is.False); + Assert.That(mapping.updateSpecified, Is.True); } [Test] @@ -304,8 +304,8 @@ public void WhenSetInsertThenSetAttributes() var mapper = new PropertyMapper(member, mapping); mapper.Insert(false); - mapping.insert.Should().Be.False(); - mapping.insertSpecified.Should().Be.True(); + Assert.That(mapping.insert, Is.False); + Assert.That(mapping.insertSpecified, Is.True); } [Test] @@ -316,8 +316,8 @@ public void WhenSetLazyThenSetAttributes() var mapper = new PropertyMapper(member, mapping); mapper.Lazy(true); - mapping.lazy.Should().Be.True(); - mapping.IsLazyProperty.Should().Be.True(); + Assert.That(mapping.lazy, Is.True); + Assert.That(mapping.IsLazyProperty, Is.True); } } diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs index 163c1943886..88e603337b0 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs @@ -23,7 +23,7 @@ public void CanSetPersister() var mapdoc = new HbmMapping(); var rc = new SubclassMapper(typeof(HineritedSimple), mapdoc); rc.Persister(); - mapdoc.SubClasses[0].Persister.Should().Contain("SingleTableEntityPersister"); + Assert.That(mapdoc.SubClasses[0].Persister, Is.StringContaining("SingleTableEntityPersister")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs index 15acf884884..d62e51728f0 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs @@ -23,7 +23,7 @@ public void WhenSetSyncWithNullThenDoesNotThrows() { var mapdoc = new HbmMapping(); var rc = new SubclassMapper(typeof(InheritedSimple), mapdoc); - rc.Executing(x => x.Synchronize(null)).NotThrows(); + Assert.That(() => rc.Synchronize(null), Throws.Nothing); } [Test] @@ -32,7 +32,7 @@ public void WhenSetSyncMixedWithNullAndEmptyThenAddOnlyValid() var mapdoc = new HbmMapping(); var rc = new SubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("", " ATable ", " ", null); - mapdoc.SubClasses[0].Synchronize.Single().table.Should().Be("ATable"); + Assert.That(mapdoc.SubClasses[0].Synchronize.Single().table, Is.EqualTo("ATable")); } [Test] @@ -41,7 +41,7 @@ public void WhenSetMoreSyncThenAddAll() var mapdoc = new HbmMapping(); var rc = new SubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2", "T3", null); - mapdoc.SubClasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.SubClasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -51,7 +51,7 @@ public void WhenSetMoreThenOnceThenAddAll() var rc = new SubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2"); rc.Synchronize("T3"); - mapdoc.SubClasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.SubClasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -61,7 +61,7 @@ public void WhenSetMoreThenOnceThenDoesNotDuplicate() var rc = new SubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2"); rc.Synchronize("T3", "T2"); - mapdoc.SubClasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.SubClasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs index cd28a71517a..30675953299 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs @@ -28,9 +28,9 @@ public void WhenDefineJoinThenAddJoinWithTableNameAndKey() var hbmClass = mapdoc.SubClasses[0]; var hbmJoin = hbmClass.Joins.Single(); - hbmJoin.table.Should().Be("MyTable"); - hbmJoin.key.Should().Not.Be.Null(); - hbmJoin.key.column1.Should().Not.Be.Null(); + Assert.That(hbmJoin.table, Is.EqualTo("MyTable")); + Assert.That(hbmJoin.key, Is.Not.Null); + Assert.That(hbmJoin.key.column1, Is.Not.Null); } [Test] @@ -41,11 +41,11 @@ public void WhenDefineJoinThenCallJoinMapper() var called = false; mapper.Join("MyTable", x => { - x.Should().Not.Be.Null(); + Assert.That(x, Is.Not.Null); called = true; }); - called.Should().Be.True(); + Assert.That(called, Is.True); } [Test] @@ -58,8 +58,8 @@ public void WhenDefineMoreJoinsThenTableNameShouldBeUnique() mapper.Join("T2", x => { }); var hbmClass = mapdoc.SubClasses[0]; - hbmClass.Joins.Should().Have.Count.EqualTo(2); - hbmClass.Joins.Select(x => x.table).Should().Have.UniqueValues(); + Assert.That(hbmClass.Joins.Count(), Is.EqualTo(2)); + Assert.That(hbmClass.Joins.Select(x => x.table), Is.Unique); } [Test] @@ -73,9 +73,9 @@ public void WhenDefineMoreJoinsWithSameIdThenUseSameJoinMapperInstance() mapper.Join("T1", x => firstCallInstance = x); mapper.Join("T1", x => secondCallInstance = x); - firstCallInstance.Should().Be.SameInstanceAs(secondCallInstance); + Assert.That(firstCallInstance, Is.SameAs(secondCallInstance)); var hbmClass = mapdoc.SubClasses[0]; - hbmClass.Joins.Should().Have.Count.EqualTo(1); + Assert.That(hbmClass.Joins.Count(), Is.EqualTo(1)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs index 44cbd9029ed..8bde8d3d335 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs @@ -23,7 +23,7 @@ public void CanSetPersister() var mapdoc = new HbmMapping(); var rc = new UnionSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Persister(); - mapdoc.UnionSubclasses[0].Persister.Should().Contain("UnionSubclassEntityPersister"); + Assert.That(mapdoc.UnionSubclasses[0].Persister, Is.StringContaining("UnionSubclassEntityPersister")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs index 1cb7ef881d3..32c2b91a9b7 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs @@ -23,7 +23,7 @@ public void WhenSetSyncWithNullThenDoesNotThrows() { var mapdoc = new HbmMapping(); var rc = new UnionSubclassMapper(typeof(InheritedSimple), mapdoc); - rc.Executing(x => x.Synchronize(null)).NotThrows(); + Assert.That(() => rc.Synchronize(null), Throws.Nothing); } [Test] @@ -32,7 +32,7 @@ public void WhenSetSyncMixedWithNullAndEmptyThenAddOnlyValid() var mapdoc = new HbmMapping(); var rc = new UnionSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("", " ATable ", " ", null); - mapdoc.UnionSubclasses[0].Synchronize.Single().table.Should().Be("ATable"); + Assert.That(mapdoc.UnionSubclasses[0].Synchronize.Single().table, Is.EqualTo("ATable")); } [Test] @@ -41,7 +41,7 @@ public void WhenSetMoreSyncThenAddAll() var mapdoc = new HbmMapping(); var rc = new UnionSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2", "T3", null); - mapdoc.UnionSubclasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.UnionSubclasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -51,7 +51,7 @@ public void WhenSetMoreThenOnceThenAddAll() var rc = new UnionSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2"); rc.Synchronize("T3"); - mapdoc.UnionSubclasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.UnionSubclasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } [Test] @@ -61,7 +61,7 @@ public void WhenSetMoreThenOnceThenDoesNotDuplicate() var rc = new UnionSubclassMapper(typeof(InheritedSimple), mapdoc); rc.Synchronize("T1", "T2"); rc.Synchronize("T3", "T2"); - mapdoc.UnionSubclasses[0].Synchronize.Select(x => x.table).Should().Have.SameValuesAs("T1", "T2", "T3"); + Assert.That(mapdoc.UnionSubclasses[0].Synchronize.Select(x => x.table), Is.EquivalentTo(new [] {"T1", "T2", "T3"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs index 0430cb6c94b..77c72bfe56d 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs @@ -38,7 +38,7 @@ public void MatchWithArrayProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.True(); + Assert.That(inspector.IsArray(mi), Is.True); } [Test] @@ -48,7 +48,7 @@ public void MatchWithArrayField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.True(); + Assert.That(inspector.IsArray(mi), Is.True); } [Test] @@ -58,7 +58,7 @@ public void MatchWithCollectionPropertyAndArrayField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.True(); + Assert.That(inspector.IsArray(mi), Is.True); } [Test] @@ -68,7 +68,7 @@ public void NotMatchWithCollectionField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.False(); + Assert.That(inspector.IsArray(mi), Is.False); } [Test] @@ -78,7 +78,7 @@ public void NotMatchWithCollectionProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.False(); + Assert.That(inspector.IsArray(mi), Is.False); } [Test] @@ -88,7 +88,7 @@ public void NotMatchWithNoArrayCollectionProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.False(); + Assert.That(inspector.IsArray(mi), Is.False); } [Test] @@ -98,7 +98,7 @@ public void NotMatchWithStringProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.False(); + Assert.That(inspector.IsArray(mi), Is.False); } [Test] @@ -108,7 +108,7 @@ public void NotMatchWithByteArrayProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsArray(mi).Should().Be.False(); + Assert.That(inspector.IsArray(mi), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs index a204bfd1ea1..6d61c6d5c64 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs @@ -42,7 +42,7 @@ public void MatchWithEnumerableProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsBag(mi).Should().Be.True(); + Assert.That(inspector.IsBag(mi), Is.True); } [Test] @@ -52,7 +52,7 @@ public void MatchWithEnumerableField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsBag(mi).Should().Be.True(); + Assert.That(inspector.IsBag(mi), Is.True); } [Test] @@ -62,7 +62,7 @@ public void MatchWithObjectPropertyAndEnumerableField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsBag(mi).Should().Be.True(); + Assert.That(inspector.IsBag(mi), Is.True); } [Test] @@ -72,7 +72,7 @@ public void NotMatchWithStringProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsBag(mi).Should().Be.False(); + Assert.That(inspector.IsBag(mi), Is.False); } [Test] @@ -82,7 +82,7 @@ public void NotMatchWithByteArrayProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsBag(mi).Should().Be.False(); + Assert.That(inspector.IsBag(mi), Is.False); } [Test] @@ -94,7 +94,7 @@ public void WhenSetKeyThroughEventThenUseEvent() var hbmMapping = mapper.CompileMappingFor(new[] {typeof(Parent)}); var hbmBag = hbmMapping.RootClasses[0].Properties.OfType().Single(); - hbmBag.Key.Columns.Single().name.Should().Be("ParentId"); + Assert.That(hbmBag.Key.Columns.Single().name, Is.EqualTo("ParentId")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs index 12443e4c020..b7bae336173 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs @@ -62,7 +62,7 @@ public void WhenCustomizeConditionsThenUseCustomConditionsToRecognizeRootEntitie }); mapper.Subclass(map => map.DiscriminatorValue(1)); - mapper.Executing(m=> m.CompileMappingFor(new[] { typeof(Activity), typeof(FormActivity) })).NotThrows(); + Assert.That(() => mapper.CompileMappingFor(new[] { typeof(Activity), typeof(FormActivity) }), Throws.Nothing); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs index 32f88991c8c..64b52a9d194 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs @@ -33,7 +33,7 @@ public void WhenAClassIsExplicitlyDeclaredAsComponentThenIsComponent() mapper.Component(map => { }); var inspector = (IModelInspector)autoinspector; - inspector.IsComponent(typeof(AEntity)).Should().Be.True(); + Assert.That(inspector.IsComponent(typeof(AEntity)), Is.True); } [Test] @@ -41,7 +41,7 @@ public void ClassWithoutPoidIsComponent() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsComponent(typeof(AComponent)).Should().Be.True(); + Assert.That(inspector.IsComponent(typeof(AComponent)), Is.True); } [Test] @@ -49,7 +49,7 @@ public void ClassWithPoidIsNotComponent() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsComponent(typeof(AEntity)).Should().Be.False(); + Assert.That(inspector.IsComponent(typeof(AEntity)), Is.False); } [Test] @@ -57,7 +57,7 @@ public void ClassWithPoidFieldIsNotComponent() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsComponent(typeof(Entity)).Should().Be.False(); + Assert.That(inspector.IsComponent(typeof(Entity)), Is.False); } [Test] @@ -65,7 +65,7 @@ public void EnumIsNotComponent() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsComponent(typeof(Something)).Should().Be.False(); + Assert.That(inspector.IsComponent(typeof(Something)), Is.False); } [Test] @@ -73,7 +73,7 @@ public void StringIsNotComponent() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsComponent(typeof(string)).Should().Be.False(); + Assert.That(inspector.IsComponent(typeof(string)), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs index 805b4e69384..911fc48cd15 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs @@ -23,8 +23,8 @@ public void WhenNotExplicitlyDeclaredThenIsTablePerClass() mapper.Class(x => { }); var inspector = (IModelInspector)autoinspector; - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.True(); - inspector.IsTablePerClass(typeof(Inherited)).Should().Be.True(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.True); + Assert.That(inspector.IsTablePerClass(typeof(Inherited)), Is.True); } [Test] @@ -37,8 +37,8 @@ public void WhenExplicitlyDeclaredAsSubclassThenIsNotTablePerClass() var inspector = (IModelInspector)autoinspector; - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClass(typeof(Inherited)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClass(typeof(Inherited)), Is.False); } [Test] @@ -51,8 +51,8 @@ public void WhenExplicitlyDeclaredAsUnionSubclassThenIsNotTablePerClass() var inspector = (IModelInspector)autoinspector; - inspector.IsTablePerClass(typeof(MyClass)).Should().Be.False(); - inspector.IsTablePerClass(typeof(Inherited)).Should().Be.False(); + Assert.That(inspector.IsTablePerClass(typeof(MyClass)), Is.False); + Assert.That(inspector.IsTablePerClass(typeof(Inherited)), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs index 064ea0ba317..16d9766b798 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs @@ -32,7 +32,7 @@ public void MatchWithDictionaryProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsDictionary(mi).Should().Be.True(); + Assert.That(inspector.IsDictionary(mi), Is.True); } [Test] @@ -42,7 +42,7 @@ public void MatchWithDictionaryField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsDictionary(mi).Should().Be.True(); + Assert.That(inspector.IsDictionary(mi), Is.True); } [Test] @@ -52,7 +52,7 @@ public void MatchWithCollectionPropertyAndDictionaryField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsDictionary(mi).Should().Be.True(); + Assert.That(inspector.IsDictionary(mi), Is.True); } [Test] @@ -62,7 +62,7 @@ public void NotMatchWithCollectionField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsDictionary(mi).Should().Be.False(); + Assert.That(inspector.IsDictionary(mi), Is.False); } [Test] @@ -72,7 +72,7 @@ public void NotMatchWithCollectionProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsDictionary(mi).Should().Be.False(); + Assert.That(inspector.IsDictionary(mi), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs index ec326833170..80586b9e905 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs @@ -32,7 +32,7 @@ public void WhenAClassIsExplicitlyDeclaredAsEntityThenIsEntity() mapper.Class(map => { }); var inspector = (IModelInspector)autoinspector; - inspector.IsEntity(typeof(AComponent)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(AComponent)), Is.True); } [Test] @@ -40,7 +40,7 @@ public void ClassWithPoidIsEntity() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsEntity(typeof(AEntity)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(AEntity)), Is.True); } [Test] @@ -48,7 +48,7 @@ public void ClassWithoutPoidIsNotEntity() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsEntity(typeof(AComponent)).Should().Be.False(); + Assert.That(inspector.IsEntity(typeof(AComponent)), Is.False); } [Test] @@ -56,7 +56,7 @@ public void ClassWithPoidFieldIsEntity() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsEntity(typeof(Entity)).Should().Be.True(); + Assert.That(inspector.IsEntity(typeof(Entity)), Is.True); } [Test] @@ -64,7 +64,7 @@ public void EnumIsNotEntity() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsEntity(typeof(Something)).Should().Be.False(); + Assert.That(inspector.IsEntity(typeof(Something)), Is.False); } [Test] @@ -72,7 +72,7 @@ public void StringIsNotEntity() { var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsEntity(typeof(string)).Should().Be.False(); + Assert.That(inspector.IsEntity(typeof(string)), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs index 87876d0341a..6e9ca46303c 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs @@ -28,7 +28,7 @@ public void WhenPropertyVersionFromBaseEntityThenFindItAsVersion() map.Version(x => x.Version, vm => { }); }); - inspector.IsVersion(For.Property(x => x.Version)).Should().Be.True(); + Assert.That(inspector.IsVersion(For.Property(x => x.Version)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs index faa04e4da3e..49482789b3a 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs @@ -25,7 +25,7 @@ public void WhenRelationWithTwoEntityThenIsManyToOne() autoinspector.IsEntity((t, declared) => typeof(AEntity).Equals(t) || typeof(BEntity).Equals(t)); var inspector = (IModelInspector)autoinspector; - inspector.IsManyToOne(typeof(AEntity).GetProperty("B")).Should().Be.True(); + Assert.That(inspector.IsManyToOne(typeof(AEntity).GetProperty("B")), Is.True); } [Test] @@ -35,7 +35,7 @@ public void WhenSimplePropertyThenIsNotManyToOne() autoinspector.IsEntity((t, declared) => typeof(AEntity).Equals(t) || typeof(BEntity).Equals(t)); var inspector = (IModelInspector)autoinspector; - inspector.IsManyToOne(typeof(AEntity).GetProperty("Name")).Should().Be.False(); + Assert.That(inspector.IsManyToOne(typeof(AEntity).GetProperty("Name")), Is.False); } [Test] @@ -46,7 +46,7 @@ public void WhenRelatedMatchComponentThenIsNotManyToOne() autoinspector.IsComponent((t, declared) => typeof(BEntity).Equals(t)); var inspector = (IModelInspector)autoinspector; - inspector.IsManyToOne(typeof(AEntity).GetProperty("B")).Should().Be.False(); + Assert.That(inspector.IsManyToOne(typeof(AEntity).GetProperty("B")), Is.False); } [Test] @@ -57,7 +57,7 @@ public void WhenRelatedDeclaredAsOneToOneThenIsNotManyToOne() mapper.Class(map => map.OneToOne(a => a.B, x => { })); mapper.Class(x=> { }); var inspector = (IModelInspector)autoinspector; - inspector.IsManyToOne(typeof(AEntity).GetProperty("B")).Should().Be.False(); + Assert.That(inspector.IsManyToOne(typeof(AEntity).GetProperty("B")), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs index 5a9277a1358..640a7381e88 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs @@ -48,7 +48,7 @@ public void WhenNoCollectionPropertyThenNoMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.Something); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.False(); + Assert.That(inspector.IsOneToMany(pi), Is.False); } [Test] @@ -57,7 +57,7 @@ public void WhenCollectionOfComponentsThenNoMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.Components); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.False(); + Assert.That(inspector.IsOneToMany(pi), Is.False); } [Test] @@ -66,7 +66,7 @@ public void WhenCollectionBidirectionalThenMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.Children); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.True(); + Assert.That(inspector.IsOneToMany(pi), Is.True); } [Test] @@ -75,7 +75,7 @@ public void WhenCollectionOfElementsThenNoMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.Elements); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.False(); + Assert.That(inspector.IsOneToMany(pi), Is.False); } [Test] @@ -84,7 +84,7 @@ public void WhenCollectionUnidirectionalThenMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.Relateds); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.True(); + Assert.That(inspector.IsOneToMany(pi), Is.True); } [Test] @@ -93,7 +93,7 @@ public void WhenDictionaryBidirectionalThenMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.DicChildren); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.True(); + Assert.That(inspector.IsOneToMany(pi), Is.True); } [Test] @@ -102,7 +102,7 @@ public void WhenDictionaryUnidirectionalThenMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.DicRelateds); var inspector = GetConfiguredInspector(); - inspector.IsOneToMany(pi).Should().Be.True(); + Assert.That(inspector.IsOneToMany(pi), Is.True); } [Test] @@ -117,7 +117,7 @@ public void WhenCollectionUnidirectionalDeclaredManyToManyThenNoMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.Relateds); - inspector.IsOneToMany(pi).Should().Be.False(); + Assert.That(inspector.IsOneToMany(pi), Is.False); } [Test] @@ -132,7 +132,7 @@ public void WhenDictionaryUnidirectionalDeclaredManyToManyThenNoMatch() var pi = Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(x => x.DicRelateds); - inspector.IsOneToMany(pi).Should().Be.False(); + Assert.That(inspector.IsOneToMany(pi), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs index b4433bb4659..ccbaecc5612 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs @@ -30,7 +30,7 @@ public void WhenExplicitDeclaredThenMatch() mapper.Class(map => map.Id(x => x.EntityIdentificator)); var inspector = (IModelInspector)autoinspector; - inspector.IsPersistentId(typeof(MyClass).GetProperty("EntityIdentificator")).Should().Be.True(); + Assert.That(inspector.IsPersistentId(typeof(MyClass).GetProperty("EntityIdentificator")), Is.True); } [Test] @@ -39,12 +39,12 @@ public void WhenNotExplicitlyDeclaredMatchDefaultDelegate() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsPersistentId(typeof(TestEntity).GetProperty("Id")).Should().Be.True(); - inspector.IsPersistentId(typeof(TestEntity).GetProperty("id")).Should().Be.True(); - inspector.IsPersistentId(typeof(TestEntity).GetProperty("PoId")).Should().Be.True(); - inspector.IsPersistentId(typeof(TestEntity).GetProperty("POID")).Should().Be.True(); - inspector.IsPersistentId(typeof(TestEntity).GetProperty("OId")).Should().Be.True(); - inspector.IsPersistentId(typeof(TestEntity).GetProperty("TestEntityId")).Should().Be.True(); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("Id")), Is.True); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("id")), Is.True); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("PoId")), Is.True); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("POID")), Is.True); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("OId")), Is.True); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("TestEntityId")), Is.True); } [Test] @@ -53,8 +53,8 @@ public void WhenNotExplicitlyDeclaredThenNoMatchPropertiesOutOfDefaultDelegate() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsPersistentId(typeof(TestEntity).GetProperty("testEntityId")).Should().Be.False(); - inspector.IsPersistentId(typeof(TestEntity).GetProperty("Something")).Should().Be.False(); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("testEntityId")), Is.False); + Assert.That(inspector.IsPersistentId(typeof(TestEntity).GetProperty("Something")), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs index b248f8567d8..26ff5186f32 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs @@ -49,7 +49,7 @@ public void WhenMapIdThroughBaseInterfaceThenFindIt() { map.Id(x => x.Id, idmap => { }); }); - inspector.IsPersistentId(typeof(Product).GetProperty("Id", RootClassPropertiesBindingFlags)).Should().Be.True(); + Assert.That(inspector.IsPersistentId(typeof(Product).GetProperty("Id", RootClassPropertiesBindingFlags)), Is.True); } [Test] @@ -60,7 +60,7 @@ public void WhenMapPropertyThroughBaseConcreteClassThenFindIt() mapper.Class(map => map.Property(x => x.LastChange)); - inspector.IsPersistentProperty(typeof(Product).GetProperty("LastChange", RootClassPropertiesBindingFlags)).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(typeof(Product).GetProperty("LastChange", RootClassPropertiesBindingFlags)), Is.True); } [Test] @@ -71,7 +71,7 @@ public void WhenMapPropertyThroughBaseInterfaceThenFindIt() mapper.Class(map => map.Property(x => x.Description)); - inspector.IsPersistentProperty(typeof(Product).GetProperty("Description", RootClassPropertiesBindingFlags)).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(typeof(Product).GetProperty("Description", RootClassPropertiesBindingFlags)), Is.True); } [Test] @@ -82,7 +82,7 @@ public void WhenMapPropertyThroughBaseAbstractClassThenFindIt() mapper.Class(map => map.Property(x => x.Description)); - inspector.IsPersistentProperty(typeof(Product).GetProperty("Description", RootClassPropertiesBindingFlags)).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(typeof(Product).GetProperty("Description", RootClassPropertiesBindingFlags)), Is.True); } [Test] @@ -93,7 +93,7 @@ public void WhenMapPropertyThroughClassThenFindIt() mapper.Class(map => map.Property(x => x.Description)); - inspector.IsPersistentProperty(typeof(Product).GetProperty("Description", RootClassPropertiesBindingFlags)).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(typeof(Product).GetProperty("Description", RootClassPropertiesBindingFlags)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs index f6ec01e7929..8a54933f06a 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs @@ -46,7 +46,7 @@ public void WhenReadonlyDeclaredThenIsPersistentProperty() mapper.Class(map => map.Property(x => x.ReadOnly)); var inspector = (IModelInspector)autoinspector; - inspector.IsPersistentProperty(typeof(MyEntity).GetProperty("ReadOnly")).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(typeof(MyEntity).GetProperty("ReadOnly")), Is.True); } [Test] @@ -55,7 +55,7 @@ public void WhenReadonlyNotDeclaredThenIsNotPersistentProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsPersistentProperty(typeof(MyEntity).GetProperty("ReadOnly")).Should().Be.False(); + Assert.That(inspector.IsPersistentProperty(typeof(MyEntity).GetProperty("ReadOnly")), Is.False); } [Test] @@ -65,7 +65,7 @@ public void IncludesReadOnlyWithField() var inspector = (IModelInspector)autoinspector; PropertyInfo pi = typeof(MyEntity).GetProperty("NoReadOnlyWithField"); - inspector.IsPersistentProperty(pi).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(pi), Is.True); } [Test] @@ -75,10 +75,10 @@ public void IncludesNoReadOnly() var inspector = (IModelInspector)autoinspector; PropertyInfo pi = typeof(MyEntity).GetProperty("NoReadOnly"); - inspector.IsPersistentProperty(pi).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(pi), Is.True); pi = typeof(MyEntity).GetProperty("WriteOnly"); - inspector.IsPersistentProperty(pi).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(pi), Is.True); } [Test] @@ -90,7 +90,7 @@ public void IncludesFieldsWhenExplicitDeclared() var inspector = (IModelInspector)autoinspector; var pi = typeof(MyEntity).GetField("pizza", BindingFlags.Instance | BindingFlags.NonPublic); - inspector.IsPersistentProperty(pi).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(pi), Is.True); } [Test] @@ -100,7 +100,7 @@ public void DoesNotIncludesFieldsByDefault() var inspector = (IModelInspector)autoinspector; var pi = typeof(MyEntity).GetField("pizza", BindingFlags.Instance | BindingFlags.NonPublic); - inspector.IsPersistentProperty(pi).Should().Be.False(); + Assert.That(inspector.IsPersistentProperty(pi), Is.False); } [Test] @@ -110,7 +110,7 @@ public void IncludesAutoprop() var inspector = (IModelInspector)autoinspector; var pi = typeof(MyEntity).GetProperty("AutoPropWithPrivateSet"); - inspector.IsPersistentProperty(pi).Should().Be.True(); + Assert.That(inspector.IsPersistentProperty(pi), Is.True); } } diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs index fe0ac1efe58..0a7265ab6ba 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs @@ -26,8 +26,8 @@ public void ByDefaultInheritedFromObject() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsRootEntity(typeof(Person)).Should().Be.True(); - inspector.IsRootEntity(typeof(Product)).Should().Be.False(); + Assert.That(inspector.IsRootEntity(typeof(Person)), Is.True); + Assert.That(inspector.IsRootEntity(typeof(Product)), Is.False); } [Test] @@ -38,8 +38,8 @@ public void WhenCustomizedThenUseCustomizedPredicate() var inspector = (IModelInspector)autoinspector; - inspector.IsRootEntity(typeof(Person)).Should().Be.False(); - inspector.IsRootEntity(typeof(Product)).Should().Be.True(); + Assert.That(inspector.IsRootEntity(typeof(Person)), Is.False); + Assert.That(inspector.IsRootEntity(typeof(Product)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs index 3d5017a64a6..51a5f80ac55 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs @@ -32,7 +32,7 @@ public void MatchWithSetProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsSet(mi).Should().Be.True(); + Assert.That(inspector.IsSet(mi), Is.True); } [Test] @@ -42,7 +42,7 @@ public void MatchWithSetField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsSet(mi).Should().Be.True(); + Assert.That(inspector.IsSet(mi), Is.True); } [Test] @@ -52,7 +52,7 @@ public void MatchWithCollectionPropertyAndSetField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsSet(mi).Should().Be.True(); + Assert.That(inspector.IsSet(mi), Is.True); } [Test] @@ -62,7 +62,7 @@ public void NotMatchWithCollectionField() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsSet(mi).Should().Be.False(); + Assert.That(inspector.IsSet(mi), Is.False); } [Test] @@ -72,7 +72,7 @@ public void NotMatchWithCollectionProperty() var autoinspector = new SimpleModelInspector(); var inspector = (IModelInspector)autoinspector; - inspector.IsSet(mi).Should().Be.False(); + Assert.That(inspector.IsSet(mi), Is.False); } [Test] @@ -84,7 +84,7 @@ public void WhenExplicitDeclaredThenMatchWithCollectionProperty() mapper.Class(map => map.Set(x => x.Others, x => { }, y=> {})); var inspector = (IModelInspector)autoinspector; - inspector.IsSet(mi).Should().Be.True(); + Assert.That(inspector.IsSet(mi), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs b/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs index a10cdc35675..797981cfaff 100644 --- a/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs +++ b/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs @@ -320,8 +320,8 @@ public void AddAsDynamicComponent(MemberInfo member, System.Type componentTempla [Test] public void WhenMergeNullsThenNotThrows() { - Executing.This(() => ((ExplicitDeclarationsHolder) null).Merge(new ExplicitDeclarationsHolder())).Should().NotThrow(); - Executing.This(() => (new ExplicitDeclarationsHolder()).Merge(null)).Should().NotThrow(); + Assert.That(() => ((ExplicitDeclarationsHolder) null).Merge(new ExplicitDeclarationsHolder()), Throws.Nothing); + Assert.That(() => (new ExplicitDeclarationsHolder()).Merge(null), Throws.Nothing); } [Test] @@ -332,7 +332,7 @@ public void MergeSplitDefinitions() source.AddAsPropertySplit(new SplitDefinition(typeof (MyClass), "foo", property)); destination.Merge(source); - destination.SplitDefinitions.Should().Have.Count.EqualTo(1); + Assert.That(destination.SplitDefinitions, Has.Count.EqualTo(1)); } [Test] @@ -343,7 +343,7 @@ public void MergePersistentMembers() source.AddAsPersistentMember(property); destination.Merge(source); - destination.PersistentMembers.Should().Have.Count.EqualTo(1); + Assert.That(destination.PersistentMembers, Has.Count.EqualTo(1)); } [Test] @@ -354,7 +354,7 @@ public void MergeProperties() source.AddAsProperty(property); destination.Merge(source); - destination.Properties.Should().Have.Count.EqualTo(1); + Assert.That(destination.Properties, Has.Count.EqualTo(1)); } [Test] @@ -365,7 +365,7 @@ public void MergeDictionaries() source.AddAsMap(property); destination.Merge(source); - destination.Dictionaries.Should().Have.Count.EqualTo(1); + Assert.That(destination.Dictionaries, Has.Count.EqualTo(1)); } [Test] @@ -376,7 +376,7 @@ public void MergeArrays() source.AddAsArray(property); destination.Merge(source); - destination.Arrays.Should().Have.Count.EqualTo(1); + Assert.That(destination.Arrays, Has.Count.EqualTo(1)); } [Test] @@ -387,7 +387,7 @@ public void MergeLists() source.AddAsList(property); destination.Merge(source); - destination.Lists.Should().Have.Count.EqualTo(1); + Assert.That(destination.Lists, Has.Count.EqualTo(1)); } [Test] @@ -398,7 +398,7 @@ public void MergeIdBags() source.AddAsIdBag(property); destination.Merge(source); - destination.IdBags.Should().Have.Count.EqualTo(1); + Assert.That(destination.IdBags, Has.Count.EqualTo(1)); } [Test] @@ -409,7 +409,7 @@ public void MergeBags() source.AddAsBag(property); destination.Merge(source); - destination.Bags.Should().Have.Count.EqualTo(1); + Assert.That(destination.Bags, Has.Count.EqualTo(1)); } [Test] @@ -420,7 +420,7 @@ public void MergeSets() source.AddAsSet(property); destination.Merge(source); - destination.Sets.Should().Have.Count.EqualTo(1); + Assert.That(destination.Sets, Has.Count.EqualTo(1)); } [Test] @@ -431,7 +431,7 @@ public void MergeNaturalIds() source.AddAsNaturalId(property); destination.Merge(source); - destination.NaturalIds.Should().Have.Count.EqualTo(1); + Assert.That(destination.NaturalIds, Has.Count.EqualTo(1)); } [Test] @@ -442,7 +442,7 @@ public void MergeVersionProperties() source.AddAsVersionProperty(property); destination.Merge(source); - destination.VersionProperties.Should().Have.Count.EqualTo(1); + Assert.That(destination.VersionProperties, Has.Count.EqualTo(1)); } [Test] @@ -453,7 +453,7 @@ public void MergePoids() source.AddAsPoid(property); destination.Merge(source); - destination.Poids.Should().Have.Count.EqualTo(1); + Assert.That(destination.Poids, Has.Count.EqualTo(1)); } [Test] @@ -464,7 +464,7 @@ public void MergeAny() source.AddAsAny(property); destination.Merge(source); - destination.Any.Should().Have.Count.EqualTo(1); + Assert.That(destination.Any, Has.Count.EqualTo(1)); } [Test] @@ -475,7 +475,7 @@ public void MergeOneToManyRelations() source.AddAsOneToManyRelation(property); destination.Merge(source); - destination.OneToManyRelations.Should().Have.Count.EqualTo(1); + Assert.That(destination.OneToManyRelations, Has.Count.EqualTo(1)); } [Test] @@ -486,7 +486,7 @@ public void MergeManyToAnyRelations() source.AddAsManyToAnyRelation(property); destination.Merge(source); - destination.ManyToAnyRelations.Should().Have.Count.EqualTo(1); + Assert.That(destination.ManyToAnyRelations, Has.Count.EqualTo(1)); } [Test] @@ -497,7 +497,7 @@ public void MergeManyToManyRelations() source.AddAsManyToManyRelation(property); destination.Merge(source); - destination.ManyToManyRelations.Should().Have.Count.EqualTo(1); + Assert.That(destination.ManyToManyRelations, Has.Count.EqualTo(1)); } [Test] @@ -508,7 +508,7 @@ public void MergeManyToOneRelations() source.AddAsManyToOneRelation(property); destination.Merge(source); - destination.ManyToOneRelations.Should().Have.Count.EqualTo(1); + Assert.That(destination.ManyToOneRelations, Has.Count.EqualTo(1)); } [Test] @@ -519,7 +519,7 @@ public void MergeOneToOneRelations() source.AddAsOneToOneRelation(property); destination.Merge(source); - destination.OneToOneRelations.Should().Have.Count.EqualTo(1); + Assert.That(destination.OneToOneRelations, Has.Count.EqualTo(1)); } [Test] @@ -530,7 +530,7 @@ public void MergeTablePerConcreteClassEntities() source.AddAsTablePerConcreteClassEntity(typeof (MyClass)); destination.Merge(source); - destination.TablePerConcreteClassEntities.Should().Have.Count.EqualTo(1); + Assert.That(destination.TablePerConcreteClassEntities, Has.Count.EqualTo(1)); } [Test] @@ -541,7 +541,7 @@ public void MergeTablePerClassHierarchyEntities() source.AddAsTablePerClassHierarchyEntity(typeof (MyClass)); destination.Merge(source); - destination.TablePerClassHierarchyEntities.Should().Have.Count.EqualTo(1); + Assert.That(destination.TablePerClassHierarchyEntities, Has.Count.EqualTo(1)); } [Test] @@ -552,7 +552,7 @@ public void MergeTablePerClassEntities() source.AddAsTablePerClassEntity(typeof (MyClass)); destination.Merge(source); - destination.TablePerClassEntities.Should().Have.Count.EqualTo(1); + Assert.That(destination.TablePerClassEntities, Has.Count.EqualTo(1)); } [Test] @@ -563,7 +563,7 @@ public void MergeComponents() source.AddAsComponent(typeof (MyClass)); destination.Merge(source); - destination.Components.Should().Have.Count.EqualTo(1); + Assert.That(destination.Components, Has.Count.EqualTo(1)); } [Test] @@ -574,7 +574,7 @@ public void MergeRootEntities() source.AddAsRootEntity(typeof (MyClass)); destination.Merge(source); - destination.RootEntities.Should().Have.Count.EqualTo(1); + Assert.That(destination.RootEntities, Has.Count.EqualTo(1)); } [Test] @@ -585,8 +585,8 @@ public void MergeDynamicComponents() source.AddAsDynamicComponent(property, typeof(MyClass)); destination.Merge(source); - destination.DynamicComponents.Should().Have.Count.EqualTo(1); - destination.GetDynamicComponentTemplate(property).Should().Be(typeof(MyClass)); + Assert.That(destination.DynamicComponents, Has.Count.EqualTo(1)); + Assert.That(destination.GetDynamicComponentTemplate(property), Is.EqualTo(typeof(MyClass))); } [Test] @@ -597,7 +597,7 @@ public void MergeComposedId() source.AddAsPartOfComposedId(property); destination.Merge(source); - destination.ComposedIds.Should().Have.Count.EqualTo(1); + Assert.That(destination.ComposedIds, Has.Count.EqualTo(1)); } [Test] @@ -612,7 +612,7 @@ public void MergeShouldGetAllPropertiesOfPatternsAppliersHolderOfBothSide() first.Merge(second); - second.PropertiesGettersUsed.Should().Have.SameValuesAs(propertiesOfIPatternsAppliersHolder); + Assert.That(second.PropertiesGettersUsed, Is.EquivalentTo(propertiesOfIPatternsAppliersHolder)); } #region Nested type: MyClass diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs index baeab1b5418..01cbf7f018e 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs @@ -23,7 +23,7 @@ public void GetFirstPropertyOfTypeShouldUseSameConceptsOfCandidatePersistentMemb var properties = memberProvider.GetRootEntityMembers(typeof(Geo)); if(properties.Select(p => p.Name).Contains("Parent")) { - typeof(Geo).GetFirstPropertyOfType(typeof(Geo)).Should().Not.Be.Null(); + Assert.That(typeof(Geo).GetFirstPropertyOfType(typeof(Geo)), Is.Not.Null); } } } diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs index 0b6dd458932..1f2a2bd6c19 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs @@ -26,28 +26,28 @@ private class MyClass4 : MyClass3 [Test] public void WhenImplIsAtSameLevelThenReturnImplementor() { - typeof(MyClass1).GetFirstImplementorOf(typeof(MyClass1)).Should().Be(typeof(MyClass1)); - typeof(MyClass2).GetFirstImplementorOf(typeof(MyClass2)).Should().Be(typeof(MyClass2)); - typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass3)).Should().Be(typeof(MyClass3)); - typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass4)).Should().Be(typeof(MyClass4)); + Assert.That(typeof(MyClass1).GetFirstImplementorOf(typeof(MyClass1)), Is.EqualTo(typeof(MyClass1))); + Assert.That(typeof(MyClass2).GetFirstImplementorOf(typeof(MyClass2)), Is.EqualTo(typeof(MyClass2))); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass3)), Is.EqualTo(typeof(MyClass3))); + Assert.That(typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass4)), Is.EqualTo(typeof(MyClass4))); } [Test] public void WhenImplIsAtDifferentLevelThenReturnImplementor() { - typeof(MyClass2).GetFirstImplementorOf(typeof(MyClass1)).Should().Be(typeof(MyClass2)); - typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass1)).Should().Be(typeof(MyClass2)); - typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass2)).Should().Be(typeof(MyClass3)); - typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass1)).Should().Be(typeof(MyClass2)); - typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass2)).Should().Be(typeof(MyClass3)); - typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass3)).Should().Be(typeof(MyClass4)); + Assert.That(typeof(MyClass2).GetFirstImplementorOf(typeof(MyClass1)), Is.EqualTo(typeof(MyClass2))); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass1)), Is.EqualTo(typeof(MyClass2))); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass2)), Is.EqualTo(typeof(MyClass3))); + Assert.That(typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass1)), Is.EqualTo(typeof(MyClass2))); + Assert.That(typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass2)), Is.EqualTo(typeof(MyClass3))); + Assert.That(typeof(MyClass4).GetFirstImplementorOf(typeof(MyClass3)), Is.EqualTo(typeof(MyClass4))); } [Test] public void WhenImplIsAtUpLevelThenReturnNull() { - typeof(MyClass2).GetFirstImplementorOf(typeof(MyClass3)).Should().Be.Null(); - typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass4)).Should().Be.Null(); + Assert.That(typeof(MyClass2).GetFirstImplementorOf(typeof(MyClass3)), Is.Null); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(MyClass4)), Is.Null); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs index c01912ae649..4bcb3c1d246 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs @@ -43,36 +43,36 @@ private class MyClass3 : MyClass2, IInterface3 [Test] public void WhenInvalidThenThrows() { - Executing.This(()=>((System.Type) null).GetFirstImplementorOf(typeof(IInterfaceNoImpl))).Should().Throw(); - Executing.This(() => typeof(IInterfaceNoImpl).GetFirstImplementorOf(null)).Should().Throw(); + Assert.That(() => ((System.Type) null).GetFirstImplementorOf(typeof(IInterfaceNoImpl)), Throws.TypeOf()); + Assert.That(() => typeof(IInterfaceNoImpl).GetFirstImplementorOf(null), Throws.TypeOf()); } [Test] public void WhenIsInterfaceThenNoImplementor() { - typeof(IInterfaceNoImpl).GetFirstImplementorOf(typeof(IInterfaceNoImpl)).Should().Be.Null(); + Assert.That(typeof(IInterfaceNoImpl).GetFirstImplementorOf(typeof(IInterfaceNoImpl)), Is.Null); } [Test] public void WhenImplAsNoInterfaceThenNoImplementor() { - typeof(MyClassNoInterface).GetFirstImplementorOf(typeof(IInterfaceNoImpl)).Should().Be.Null(); + Assert.That(typeof(MyClassNoInterface).GetFirstImplementorOf(typeof(IInterfaceNoImpl)), Is.Null); } [Test] public void WhenImplIsAtSameLevelThenReturnImplementor() { - typeof(MyClass1).GetFirstImplementorOf(typeof(IInterface1)).Should().Be(typeof(MyClass1)); - typeof(MyClass2).GetFirstImplementorOf(typeof(IInterface2)).Should().Be(typeof(MyClass2)); - typeof(MyClass3).GetFirstImplementorOf(typeof(IInterface3)).Should().Be(typeof(MyClass3)); + Assert.That(typeof(MyClass1).GetFirstImplementorOf(typeof(IInterface1)), Is.EqualTo(typeof(MyClass1))); + Assert.That(typeof(MyClass2).GetFirstImplementorOf(typeof(IInterface2)), Is.EqualTo(typeof(MyClass2))); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(IInterface3)), Is.EqualTo(typeof(MyClass3))); } [Test] public void WhenImplIsAtDifferentLevelThenReturnImplementor() { - typeof(MyClass2).GetFirstImplementorOf(typeof(IInterface1)).Should().Be(typeof(MyClass1)); - typeof(MyClass3).GetFirstImplementorOf(typeof(IInterface2)).Should().Be(typeof(MyClass2)); - typeof(MyClass3).GetFirstImplementorOf(typeof(IInterface1)).Should().Be(typeof(MyClass1)); + Assert.That(typeof(MyClass2).GetFirstImplementorOf(typeof(IInterface1)), Is.EqualTo(typeof(MyClass1))); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(IInterface2)), Is.EqualTo(typeof(MyClass2))); + Assert.That(typeof(MyClass3).GetFirstImplementorOf(typeof(IInterface1)), Is.EqualTo(typeof(MyClass1))); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs index 179e2e58c5d..60998546d6c 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs @@ -42,41 +42,41 @@ private interface IInheritedHasSomething : IHasSomething [Test] public void WhenNullArgumentThenThrows() { - Executing.This(() => ((MemberInfo)null).GetPropertyFromInterfaces().ToList()).Should().Throw(); + Assert.That(() => ((MemberInfo)null).GetPropertyFromInterfaces().ToList(), Throws.TypeOf()); } [Test] public void WhenNoInterfaceThenEmptyList() { - For.Property(x=> x.Id).GetPropertyFromInterfaces().Should().Be.Empty(); + Assert.That(For.Property(x=> x.Id).GetPropertyFromInterfaces(), Is.Empty); } [Test] public void WhenFieldThenEmptyList() { - ForClass.Field("someField").GetPropertyFromInterfaces().Should().Be.Empty(); + Assert.That(ForClass.Field("someField").GetPropertyFromInterfaces(), Is.Empty); } [Test] public void WhenOneInterfaceThenReturnMemberInfoOfInterface() { var members = For.Property(x => x.IsValid).GetPropertyFromInterfaces(); - members.Single().Should().Be(For.Property(x=> x.IsValid)); + Assert.That(members.Single(), Is.EqualTo(For.Property(x=> x.IsValid))); } [Test] public void WhenTwoInterfacesThenReturnMemberInfoOfEachInterface() { var members = For.Property(x => x.Something).GetPropertyFromInterfaces(); - members.Should().Contain(For.Property(x => x.Something)); - members.Should().Contain(For.Property(x => x.Something)); + Assert.That(members, Contains.Item(For.Property(x => x.Something))); + Assert.That(members, Contains.Item(For.Property(x => x.Something))); } [Test] public void WhenPropertyOfInterfaceThenNotThrows() { var member = For.Property(x => x.Blah); - member.Executing(x=> x.GetPropertyFromInterfaces().Any()).NotThrows(); + Assert.That(() => member.GetPropertyFromInterfaces().Any(), Throws.Nothing); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs index d527087d04a..27164c31a71 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs @@ -55,34 +55,34 @@ public int SomethingElse [Test] public void WhenNullMemberThenThrows() { - Executing.This(() => ((MemberInfo)null).GetMemberFromReflectedType(typeof(MyClass))).Should().Throw(); + Assert.That(() => ((MemberInfo)null).GetMemberFromReflectedType(typeof(MyClass)), Throws.TypeOf()); } [Test] public void WhenNullTypeThenThrows() { - Executing.This(() => typeof(MyClassWithExplicitImpl).GetProperty("SomethingElse").GetMemberFromReflectedType(null)).Should().Throw(); + Assert.That(() => typeof(MyClassWithExplicitImpl).GetProperty("SomethingElse").GetMemberFromReflectedType(null), Throws.TypeOf()); } [Test] public void WhenNotExistentThenOriginal() { var propertyInfo = typeof(MyClassWithExplicitImpl).GetProperty("SomethingElse"); - propertyInfo.GetMemberFromReflectedType(typeof(object)).Should().Be(propertyInfo); + Assert.That(propertyInfo.GetMemberFromReflectedType(typeof(object)), Is.EqualTo(propertyInfo)); } [Test] public void WhenNotAccessibleFieldThenOriginal() { var memberInfo = typeof(MyClass).GetField("pField", PrivateMembersFlags); - memberInfo.GetMemberFromReflectedType(typeof(Inherited)).Should().Be(memberInfo); + Assert.That(memberInfo.GetMemberFromReflectedType(typeof(Inherited)), Is.EqualTo(memberInfo)); } [Test] public void WhenNotAccessiblePropertyThenOriginal() { var memberInfo = typeof(MyClass).GetProperty("PrivateProperty", PrivateMembersFlags); - memberInfo.GetMemberFromReflectedType(typeof(Inherited)).Should().Be(memberInfo); + Assert.That(memberInfo.GetMemberFromReflectedType(typeof(Inherited)), Is.EqualTo(memberInfo)); } [Test] @@ -90,8 +90,8 @@ public void WhenAccessiblePropertyThenReflected() { var memberInfo = typeof(MyClass).GetProperty("ProtectedProperty", PrivateMembersFlags); var result = memberInfo.GetMemberFromReflectedType(typeof(Inherited)); - result.ReflectedType.Should().Be(typeof(Inherited)); - result.DeclaringType.Should().Be(typeof(MyClass)); + Assert.That(result.ReflectedType, Is.EqualTo(typeof(Inherited))); + Assert.That(result.DeclaringType, Is.EqualTo(typeof(MyClass))); } [Test] @@ -99,8 +99,8 @@ public void WhenPrivateFieldOnInheritedThenFindItOnInherited() { var memberInfo = typeof(Inherited).GetField("pField", PrivateMembersFlags); var result = memberInfo.GetMemberFromReflectedType(typeof(MyClass)); - result.ReflectedType.Should().Be(typeof(Inherited)); - result.DeclaringType.Should().Be(typeof(Inherited)); + Assert.That(result.ReflectedType, Is.EqualTo(typeof(Inherited))); + Assert.That(result.DeclaringType, Is.EqualTo(typeof(Inherited))); } [Test] @@ -108,8 +108,8 @@ public void WhenPublicPropertyOfBaseOnInheritedThenFindItOnInherited() { var memberInfo = typeof(MyClass).GetProperty("AnotherProperty"); var result = memberInfo.GetMemberFromReflectedType(typeof(Inherited)); - result.ReflectedType.Should().Be(typeof(Inherited)); - result.DeclaringType.Should().Be(typeof(MyClass)); + Assert.That(result.ReflectedType, Is.EqualTo(typeof(Inherited))); + Assert.That(result.DeclaringType, Is.EqualTo(typeof(MyClass))); } [Test] @@ -117,8 +117,8 @@ public void WhenPropertyOfInterfaceThenFindItOnClass() { var memberInfo = typeof(IInterface).GetProperty("SomethingElse"); var result = memberInfo.GetMemberFromReflectedType(typeof(MyClassWithExplicitImpl)); - result.DeclaringType.Should().Be(typeof(MyClassWithExplicitImpl)); - result.ReflectedType.Should().Be(typeof(MyClassWithExplicitImpl)); + Assert.That(result.DeclaringType, Is.EqualTo(typeof(MyClassWithExplicitImpl))); + Assert.That(result.ReflectedType, Is.EqualTo(typeof(MyClassWithExplicitImpl))); } [Test] @@ -126,8 +126,8 @@ public void WhenPropertyOfExplicitInterfaceThenFindItOnClass() { var memberInfo = typeof(IInterface).GetProperty("Something"); var result = memberInfo.GetMemberFromReflectedType(typeof(MyClassWithExplicitImpl)); - result.DeclaringType.Should().Be(typeof(MyClassWithExplicitImpl)); - result.ReflectedType.Should().Be(typeof(MyClassWithExplicitImpl)); + Assert.That(result.DeclaringType, Is.EqualTo(typeof(MyClassWithExplicitImpl))); + Assert.That(result.ReflectedType, Is.EqualTo(typeof(MyClassWithExplicitImpl))); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs index f7cf0830dba..c99be655998 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs @@ -52,127 +52,126 @@ public int SomethingElse [Test] public void WhenNullTypeThenThrows() { - Executing.This(() => ((System.Type)null).GetPropertyOrFieldMatchingName("A")).Should().Throw(); + Assert.That(() => ((System.Type)null).GetPropertyOrFieldMatchingName("A"), Throws.TypeOf()); } [Test] public void WhenAskNullThenNull() { - typeof(MyClass).GetPropertyOrFieldMatchingName(null).Should().Be.Null(); + Assert.That(typeof(MyClass).GetPropertyOrFieldMatchingName(null), Is.Null); } [Test] public void WhenAskNotExistentThenNull() { - typeof(MyClass).GetPropertyOrFieldMatchingName("NotExistent").Should().Be.Null(); + Assert.That(typeof(MyClass).GetPropertyOrFieldMatchingName("NotExistent"), Is.Null); } [Test] public void WhenAskPrivateFieldThenFindIt() { var memberInfo = typeof(MyClass).GetPropertyOrFieldMatchingName("pField"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("pField"); - memberInfo.Should().Be.InstanceOf().And.ValueOf.DeclaringType.Should().Be(typeof(MyClass)); + Assert.That(memberInfo, Is.Not.Null.And.InstanceOf()); + Assert.That(memberInfo.Name, Is.EqualTo("pField")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof (MyClass))); } [Test] public void WhenAskPrivateFieldWithBlanksThenFindIt() { var memberInfo = typeof(MyClass).GetPropertyOrFieldMatchingName(" pField "); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("pField"); - memberInfo.Should().Be.InstanceOf().And.ValueOf.DeclaringType.Should().Be(typeof(MyClass)); + Assert.That(memberInfo, Is.Not.Null.And.InstanceOf()); + Assert.That(memberInfo.Name, Is.EqualTo("pField")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(MyClass))); } [Test] public void WhenAskPrivatePropertyThenFindIt() { var memberInfo = typeof(MyClass).GetPropertyOrFieldMatchingName("PrivateProperty"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("PrivateProperty"); - memberInfo.Should().Be.InstanceOf().And.ValueOf.DeclaringType.Should().Be(typeof(MyClass)); + Assert.That(memberInfo, Is.Not.Null.And.InstanceOf()); + Assert.That(memberInfo.Name, Is.EqualTo("PrivateProperty")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof (MyClass))); } [Test] public void WhenAskProtectedPropertyThenFindIt() { var memberInfo = typeof(MyClass).GetPropertyOrFieldMatchingName("ProtectedProperty"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("ProtectedProperty"); - memberInfo.Should().Be.InstanceOf().And.ValueOf.DeclaringType.Should().Be(typeof(MyClass)); + Assert.That(memberInfo, Is.Not.Null.And.InstanceOf()); + Assert.That(memberInfo.Name, Is.EqualTo("ProtectedProperty")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(MyClass))); } [Test] public void WhenAskMethodThenNull() { - typeof(MyClass).GetPropertyOrFieldMatchingName("Method").Should().Be.Null(); + Assert.That(typeof(MyClass).GetPropertyOrFieldMatchingName("Method"), Is.Null); } [Test] public void WhenAskPrivateFieldOnInheritedThenFindItOnInherited() { var memberInfo = typeof(Inherited).GetPropertyOrFieldMatchingName("pField"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("pField"); - memberInfo.DeclaringType.Should().Be(typeof(Inherited)); - memberInfo.ReflectedType.Should().Be(typeof(Inherited)); - memberInfo.Should().Be.InstanceOf(); + Assert.That(memberInfo, Is.Not.Null.And.InstanceOf()); + Assert.That(memberInfo.Name, Is.EqualTo("pField")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(Inherited))); + Assert.That(memberInfo.ReflectedType, Is.EqualTo(typeof(Inherited))); } [Test] public void WhenAskPrivatePropertyOnInheritedThenFindItOnInherited() { var memberInfo = typeof(Inherited).GetPropertyOrFieldMatchingName("PrivateProperty"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("PrivateProperty"); - memberInfo.DeclaringType.Should().Be(typeof(Inherited)); - memberInfo.ReflectedType.Should().Be(typeof(Inherited)); - memberInfo.Should().Be.InstanceOf(); + Assert.That(memberInfo, Is.Not.Null); + Assert.That(memberInfo.Name, Is.EqualTo("PrivateProperty")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(Inherited))); + Assert.That(memberInfo.ReflectedType, Is.EqualTo(typeof(Inherited))); + Assert.That(memberInfo, Is.InstanceOf()); } [Test] public void WhenAskPrivatePropertyOfBaseOnInheritedThenFindItOnBase() { var memberInfo = typeof(Inherited).GetPropertyOrFieldMatchingName("AnotherPrivateProperty"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("AnotherPrivateProperty"); - memberInfo.DeclaringType.Should().Be(typeof(MyClass)); - memberInfo.ReflectedType.Should().Be(typeof(MyClass)); - memberInfo.Should().Be.InstanceOf(); + Assert.That(memberInfo, Is.Not.Null); + Assert.That(memberInfo.Name, Is.EqualTo("AnotherPrivateProperty")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(MyClass))); + Assert.That(memberInfo.ReflectedType, Is.EqualTo(typeof(MyClass))); + Assert.That(memberInfo, Is.InstanceOf()); } [Test] public void WhenAskPropertyOfInterfaceThenFindIt() { var memberInfo = typeof(IInterface).GetPropertyOrFieldMatchingName("Something"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("Something"); - memberInfo.DeclaringType.Should().Be(typeof(IInterface)); - memberInfo.ReflectedType.Should().Be(typeof(IInterface)); - memberInfo.Should().Be.InstanceOf(); + Assert.That(memberInfo, Is.Not.Null); + Assert.That(memberInfo.Name, Is.EqualTo("Something")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(IInterface))); + Assert.That(memberInfo.ReflectedType, Is.EqualTo(typeof(IInterface))); + Assert.That(memberInfo, Is.InstanceOf()); } [Test] public void WhenAskPropertyOfExplicitInterfaceThenFindItOnInterface() { var memberInfo = typeof(MyClassWithExplicitImpl).GetPropertyOrFieldMatchingName("Something"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("Something"); - memberInfo.DeclaringType.Should().Be(typeof(IInterface)); - memberInfo.ReflectedType.Should().Be(typeof(IInterface)); - memberInfo.Should().Be.InstanceOf(); + Assert.That(memberInfo, Is.Not.Null); + Assert.That(memberInfo.Name, Is.EqualTo("Something")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(IInterface))); + Assert.That(memberInfo.ReflectedType, Is.EqualTo(typeof(IInterface))); + Assert.That(memberInfo, Is.InstanceOf()); } [Test] public void WhenAskPropertyOfImplementedInterfaceThenFindItOnType() { var memberInfo = typeof(MyClassWithExplicitImpl).GetPropertyOrFieldMatchingName("SomethingElse"); - memberInfo.Should().Not.Be.Null(); - memberInfo.Name.Should().Be("SomethingElse"); - memberInfo.DeclaringType.Should().Be(typeof(MyClassWithExplicitImpl)); - memberInfo.ReflectedType.Should().Be(typeof(MyClassWithExplicitImpl)); - memberInfo.Should().Be.InstanceOf(); + Assert.That(memberInfo, Is.Not.Null); + Assert.That(memberInfo.Name, Is.EqualTo("SomethingElse")); + Assert.That(memberInfo.DeclaringType, Is.EqualTo(typeof(MyClassWithExplicitImpl))); + Assert.That(memberInfo.ReflectedType, Is.EqualTo(typeof(MyClassWithExplicitImpl))); + Assert.That(memberInfo, Is.InstanceOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/TypeExtensionsTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/TypeExtensionsTest.cs index 1401756f285..758d11b4e97 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/TypeExtensionsTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/TypeExtensionsTest.cs @@ -6,7 +6,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { @@ -17,25 +16,25 @@ public class TypeExtensionsTest [Test] public void CanDetermineDictionaryKeyType() { - typeof (IDictionary).DetermineDictionaryKeyType().Should().Be.EqualTo(); + Assert.That(typeof (IDictionary).DetermineDictionaryKeyType(), Is.EqualTo(typeof(string))); } [Test] public void WhenNoGenericDictionaryThenDetermineNullDictionaryKeyType() { - typeof(IEnumerable).DetermineDictionaryKeyType().Should().Be.Null(); + Assert.That(typeof(IEnumerable).DetermineDictionaryKeyType(), Is.Null); } [Test] public void CanDetermineDictionaryValueType() { - typeof(IDictionary).DetermineDictionaryValueType().Should().Be.EqualTo(); + Assert.That(typeof(IDictionary).DetermineDictionaryValueType(), Is.EqualTo(typeof(int))); } [Test] public void WhenNoGenericDictionaryThenDetermineNullDictionaryValueType() { - typeof(IEnumerable).DetermineDictionaryValueType().Should().Be.Null(); + Assert.That(typeof(IEnumerable).DetermineDictionaryValueType(), Is.Null); } private class MyBaseClass @@ -44,6 +43,7 @@ private class MyBaseClass public bool BaseBool { get; set; } private double SomethingPrivate { get; set; } } + private class MyClass : MyBaseClass { @@ -52,43 +52,55 @@ private class MyClass : MyBaseClass [Test] public void DecodeMemberAccessExpressionShouldReturnMemberOfDeclaringClass() { - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseProperty).Satisfy( - mi => mi.ReflectedType == typeof(MyBaseClass) && mi.DeclaringType == typeof(MyBaseClass)); - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseBool).Satisfy( - mi => mi.ReflectedType == typeof(MyBaseClass) && mi.DeclaringType == typeof(MyBaseClass)); + var mi1 = TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseProperty); + Assert.That(mi1.DeclaringType, Is.EqualTo(typeof (MyBaseClass))); + Assert.That(mi1.ReflectedType, Is.EqualTo(typeof (MyBaseClass))); + + var mi2 = TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseBool); + Assert.That(mi2.DeclaringType, Is.EqualTo(typeof(MyBaseClass))); + Assert.That(mi2.ReflectedType, Is.EqualTo(typeof(MyBaseClass))); } [Test] public void GenericDecodeMemberAccessExpressionShouldReturnMemberOfDeclaringClass() { - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseProperty).Satisfy( - mi => mi.ReflectedType == typeof(MyBaseClass) && mi.DeclaringType == typeof(MyBaseClass)); - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseBool).Satisfy( - mi => mi.ReflectedType == typeof(MyBaseClass) && mi.DeclaringType == typeof(MyBaseClass)); + var mi1 = TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseProperty); + Assert.That(mi1.DeclaringType, Is.EqualTo(typeof(MyBaseClass))); + Assert.That(mi1.ReflectedType, Is.EqualTo(typeof(MyBaseClass))); + + var mi2 = TypeExtensions.DecodeMemberAccessExpression(mc => mc.BaseBool); + Assert.That(mi2.DeclaringType, Is.EqualTo(typeof(MyBaseClass))); + Assert.That(mi2.ReflectedType, Is.EqualTo(typeof(MyBaseClass))); } [Test] public void DecodeMemberAccessExpressionOfShouldReturnMemberOfRequiredClass() { - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseProperty).Satisfy( - mi => mi.ReflectedType == typeof (MyClass) && mi.DeclaringType == typeof (MyBaseClass)); - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseBool).Satisfy( - mi => mi.ReflectedType == typeof(MyClass) && mi.DeclaringType == typeof(MyBaseClass)); + var mi1 = TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseProperty); + Assert.That(mi1.DeclaringType, Is.EqualTo(typeof (MyBaseClass))); + Assert.That(mi1.ReflectedType, Is.EqualTo(typeof (MyClass))); + + var mi2 = TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseBool); + Assert.That(mi2.DeclaringType, Is.EqualTo(typeof(MyBaseClass))); + Assert.That(mi2.ReflectedType, Is.EqualTo(typeof(MyClass))); } [Test] public void GenericDecodeMemberAccessExpressionOfShouldReturnMemberOfRequiredClass() { - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseProperty).Satisfy( - mi => mi.ReflectedType == typeof(MyClass) && mi.DeclaringType == typeof(MyBaseClass)); - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseBool).Satisfy( - mi => mi.ReflectedType == typeof(MyClass) && mi.DeclaringType == typeof(MyBaseClass)); + var mi1 = TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseProperty); + Assert.That(mi1.DeclaringType, Is.EqualTo(typeof(MyBaseClass))); + Assert.That(mi1.ReflectedType, Is.EqualTo(typeof(MyClass))); + + var mi2 = TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseBool); + Assert.That(mi2.DeclaringType, Is.EqualTo(typeof(MyBaseClass))); + Assert.That(mi2.ReflectedType, Is.EqualTo(typeof(MyClass))); } [Test] public void GetBaseTypesIncludesInterfaces() { - typeof (Collection<>).GetBaseTypes().Should().Contain(typeof (IEnumerable)); + Assert.That(typeof (Collection<>).GetBaseTypes(), Contains.Item(typeof (IEnumerable))); } private interface IEntity @@ -114,10 +126,13 @@ private class MyEntity: BaseEntity [Test] public void DecodeMemberAccessExpressionOfWithGenericShouldReturnMemberOfRequiredClass() { - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.Id).Satisfy( - mi => mi.ReflectedType == typeof(MyEntity) && mi.DeclaringType == typeof(BaseEntity)); - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseBool).Satisfy( - mi => mi.ReflectedType == typeof(MyEntity) && mi.DeclaringType == typeof(BaseEntity)); + var mi1 = TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.Id); + Assert.That(mi1.DeclaringType, Is.EqualTo(typeof (BaseEntity))); + Assert.That(mi1.ReflectedType, Is.EqualTo(typeof (MyEntity))); + + var mi2 = TypeExtensions.DecodeMemberAccessExpressionOf(mc => mc.BaseBool); + Assert.That(mi2.DeclaringType, Is.EqualTo(typeof(BaseEntity))); + Assert.That(mi2.ReflectedType, Is.EqualTo(typeof(MyEntity))); } [Test] @@ -125,8 +140,8 @@ public void WhenBaseIsAbstractGenericGetMemberFromDeclaringType() { var mi = typeof(MyEntity).GetProperty("Id", typeof(int)); var declaringMi = mi.GetMemberFromDeclaringType(); - declaringMi.DeclaringType.Should().Be(); - declaringMi.ReflectedType.Should().Be(); + Assert.That(declaringMi.DeclaringType, Is.EqualTo(typeof(BaseEntity))); + Assert.That(declaringMi.ReflectedType, Is.EqualTo(typeof(BaseEntity))); } [Test] @@ -134,34 +149,32 @@ public void WhenBaseIsAbstractGetMemberFromDeclaringType() { var mi = typeof(MyEntity).GetProperty("BaseBool", typeof(bool)); var declaringMi = mi.GetMemberFromDeclaringType(); - declaringMi.DeclaringType.Should().Be(); - declaringMi.ReflectedType.Should().Be(); + Assert.That(declaringMi.DeclaringType, Is.EqualTo(typeof(BaseEntity))); + Assert.That(declaringMi.ReflectedType, Is.EqualTo(typeof(BaseEntity))); } [Test] public void GetFirstPropertyOfTypeWithNulls() { System.Type myType = null; - myType.GetFirstPropertyOfType(typeof (int), BindingFlagsIncludePrivate).Should().Be.Null(); + Assert.That(myType.GetFirstPropertyOfType(typeof (int), BindingFlagsIncludePrivate), Is.Null); myType = typeof (Array); - myType.GetFirstPropertyOfType(null, BindingFlagsIncludePrivate).Should().Be.Null(); + Assert.That(myType.GetFirstPropertyOfType(null, BindingFlagsIncludePrivate), Is.Null); } [Test] public void GetFirstPropertyOfType_WhenPropertyExistThenFindProperty() { - typeof (MyBaseClass).GetFirstPropertyOfType(typeof (string)).Should().Be( - typeof (MyBaseClass).GetProperty("BaseProperty")); - typeof (MyBaseClass).GetFirstPropertyOfType(typeof (bool)).Should().Be(typeof (MyBaseClass).GetProperty("BaseBool")); - typeof (MyBaseClass).GetFirstPropertyOfType(typeof (double), BindingFlagsIncludePrivate).Should().Be( - typeof (MyBaseClass).GetProperty("SomethingPrivate", BindingFlagsIncludePrivate)); + Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (string)), Is.EqualTo(typeof (MyBaseClass).GetProperty("BaseProperty"))); + Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (bool)), Is.EqualTo(typeof (MyBaseClass).GetProperty("BaseBool"))); + Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (double), BindingFlagsIncludePrivate), Is.EqualTo(typeof (MyBaseClass).GetProperty("SomethingPrivate", BindingFlagsIncludePrivate))); } [Test] public void GetFirstPropertyOfType_WhenPropertyNotExistThenNull() { - typeof (MyBaseClass).GetFirstPropertyOfType(typeof (float)).Should().Be.Null(); - // typeof (MyBaseClass).GetFirstPropertyOfType(typeof (double)).Should().Be.Null(); <= by default check private prop. + Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (float)), Is.Null); + //Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (double)), Is.Null); <= by default check private prop. } private interface IMyEntity : IEntity @@ -172,37 +185,37 @@ private interface IMyEntity : IEntity [Test] public void WhenDecodeMemberAccessExpressionOfOnInheritedEntityInterfaceThenDecodeMember() { - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(m => m.Id).Should().Not.Be.Null(); - Mapping.ByCode.TypeExtensions.DecodeMemberAccessExpressionOf(m => m.Id).Should().Not.Be.Null(); + Assert.That(TypeExtensions.DecodeMemberAccessExpressionOf(m => m.Id), Is.Not.Null); + Assert.That(TypeExtensions.DecodeMemberAccessExpressionOf(m => m.Id), Is.Not.Null); } [Test] public void TheSequenceOfGetHierarchyFromBaseShouldStartFromBaseClassUpToGivenClass() { // excluding System.Object - typeof(MyEntity).GetHierarchyFromBase().Should().Have.SameSequenceAs(typeof(AbstractEntity), typeof(BaseEntity), typeof(MyEntity)); + var expected = new[] {typeof (AbstractEntity), typeof (BaseEntity), typeof (MyEntity)}; + Assert.That(typeof (MyEntity).GetHierarchyFromBase(), Is.EquivalentTo(expected)); } [Test] public void GetFirstPropertyOfType_WhenDelegateIsNullThenThrow() { var myType = typeof(Array); - Executing.This(()=> myType.GetFirstPropertyOfType(typeof(int), BindingFlagsIncludePrivate, null)).Should().Throw(); + Assert.That(() => myType.GetFirstPropertyOfType(typeof(int), BindingFlagsIncludePrivate, null), Throws.TypeOf()); } [Test] public void GetFirstPropertyOfType_WhenAsDelegateThenUseDelegateToFilterProperties() { - typeof (MyBaseClass).GetFirstPropertyOfType(typeof (string), BindingFlags.Public | BindingFlags.Instance, x => false).Should().Be.Null(); - typeof (MyBaseClass).GetFirstPropertyOfType(typeof (string), BindingFlags.Public | BindingFlags.Instance, x => true).Should().Be( - typeof (MyBaseClass).GetProperty("BaseProperty")); + Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (string), BindingFlags.Public | BindingFlags.Instance, x => false), Is.Null); + Assert.That(typeof (MyBaseClass).GetFirstPropertyOfType(typeof (string), BindingFlags.Public | BindingFlags.Instance, x => true), Is.EqualTo(typeof (MyBaseClass).GetProperty("BaseProperty"))); } [Test] public void HasPublicPropertyOf_WhenAsDelegateThenUseDelegateToFilterProperties() { - typeof(MyBaseClass).HasPublicPropertyOf(typeof(string), x => false).Should().Be.False(); - typeof(MyBaseClass).HasPublicPropertyOf(typeof(string), x => true).Should().Be.True(); + Assert.That(typeof(MyBaseClass).HasPublicPropertyOf(typeof(string), x => false), Is.False); + Assert.That(typeof(MyBaseClass).HasPublicPropertyOf(typeof(string), x => true), Is.True); } private abstract class MyAbstract @@ -224,10 +237,10 @@ public void GetMemberFromDeclaringClasses_WhenPropertyThenFindAbstract() { var member = typeof(MyConcrete).GetProperty("Description", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy); var found = member.GetMemberFromDeclaringClasses().ToList(); - found.Count.Should().Be(2); + Assert.That(found.Count, Is.EqualTo(2)); var concreteMember = For.Property(x => x.Description).GetMemberFromReflectedType(typeof(MyConcrete)); var abstractMember = For.Property(x => x.Description); - found.Should().Have.SameValuesAs(concreteMember, abstractMember); + Assert.That(found, Is.EquivalentTo(new [] {concreteMember, abstractMember})); } [Test] @@ -235,10 +248,10 @@ public void GetMemberFromDeclaringClasses_WhenFieldThenFindAbstract() { var member = typeof(MyConcrete).GetField("aField", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy); var found = member.GetMemberFromDeclaringClasses().ToList(); - found.Count.Should().Be(1); + Assert.That(found.Count, Is.EqualTo(1)); var foundMember = found.Single(); - foundMember.DeclaringType.Should().Be(typeof(MyAbstract)); - foundMember.ReflectedType.Should().Be(typeof(MyAbstract)); + Assert.That(foundMember.DeclaringType, Is.EqualTo(typeof(MyAbstract))); + Assert.That(foundMember.ReflectedType, Is.EqualTo(typeof(MyAbstract))); } private class MyCustomCollection : List @@ -249,21 +262,21 @@ private class MyCustomCollection : List public void DetermineCollectionElementTypeShouldDetermineElementTypeWhenCollectionTypeIsGeneric() { var elementType = typeof(List).DetermineCollectionElementType(); - elementType.Should().Be(typeof(MyEntity)); + Assert.That(elementType, Is.EqualTo(typeof(MyEntity))); } [Test(Description = "NH-3054")] public void DetermineCollectionElementTypeShouldDetermineElementTypeWhenCollectionTypeIsNonGeneric() { var elementType = typeof(MyCustomCollection).DetermineCollectionElementType(); - elementType.Should().Be(typeof(MyEntity)); + Assert.That(elementType, Is.EqualTo(typeof(MyEntity))); } [Test] public void DetermineCollectionElementTypeShouldNotDetermineElementTypeWhenTypeIsNotACollection() { var elementType = typeof(MyEntity).DetermineCollectionElementType(); - elementType.Should().Be.Null(); + Assert.That(elementType, Is.Null); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs b/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs index d775a3e8704..1ccb5305df8 100644 --- a/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs +++ b/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs @@ -21,20 +21,20 @@ public class TypeNameUtilTests public void WhenTypeNullThenNull() { System.Type variableType = null; - variableType.GetShortClassName(new HbmMapping()).Should().Be.Null(); + Assert.That(variableType.GetShortClassName(new HbmMapping()), Is.Null); } [Test] public void WhenMapDocNullThenAssemblyQualifiedName() { - typeof(MyEntity).GetShortClassName(null).Should().Be.EqualTo(typeof(MyEntity).AssemblyQualifiedName); + Assert.That(typeof(MyEntity).GetShortClassName(null), Is.EqualTo(typeof(MyEntity).AssemblyQualifiedName)); } [Test] public void WhenMapDocDoesNotHaveDefaultsThenAssemblyQualifiedName() { var mapDoc = new HbmMapping(); - typeof(MyEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyEntity).AssemblyQualifiedName); + Assert.That(typeof(MyEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyEntity).AssemblyQualifiedName)); } [Test] @@ -42,7 +42,7 @@ public void WhenMapDocHaveDefaultAssemblyThenFullName() { var mapDoc = new HbmMapping(); mapDoc.assembly = typeof(MyEntity).Assembly.FullName; - typeof(MyEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyEntity).FullName); + Assert.That(typeof(MyEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyEntity).FullName)); } [Test] @@ -50,7 +50,7 @@ public void WhenMapDocHaveDefaultAssemblyNameThenFullName() { var mapDoc = new HbmMapping(); mapDoc.assembly = typeof(MyEntity).Assembly.GetName().Name; - typeof(MyEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyEntity).FullName); + Assert.That(typeof(MyEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyEntity).FullName)); } [Test] @@ -59,7 +59,7 @@ public void WhenMapDocHaveDefaultsThenName() var mapDoc = new HbmMapping(); mapDoc.assembly = typeof(MyEntity).Assembly.FullName; mapDoc.@namespace = typeof(MyEntity).Namespace; - typeof(MyEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyEntity).Name); + Assert.That(typeof(MyEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyEntity).Name)); } [Test] @@ -68,7 +68,7 @@ public void WhenMapDocDefaultsDoesNotMatchsThenAssemblyQualifiedName() var mapDoc = new HbmMapping(); mapDoc.assembly = "whatever"; mapDoc.@namespace = "whatever"; - typeof(MyEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyEntity).AssemblyQualifiedName); + Assert.That(typeof(MyEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyEntity).AssemblyQualifiedName)); } [Test] @@ -78,20 +78,20 @@ public void WhenMatchNamespaceButNotAssemblyThenOnlyNameAndAssembly() var mapDoc = new HbmMapping(); mapDoc.assembly = "whatever"; mapDoc.@namespace = typeof(MyEntity).Namespace; - typeof(MyEntity).GetShortClassName(mapDoc).Should().StartWith(typeof(MyEntity).Name).And.EndWith(", " + typeof(MyEntity).Assembly.GetName().Name); + Assert.That(typeof(MyEntity).GetShortClassName(mapDoc), Is.StringStarting(typeof(MyEntity).Name).And.EndsWith(", " + typeof(MyEntity).Assembly.GetName().Name)); } [Test] public void WithGenericWhenMapDocNullThenAssemblyQualifiedName() { - typeof(MyGenericEntity).GetShortClassName(null).Should().Be.EqualTo(typeof(MyGenericEntity).AssemblyQualifiedName); + Assert.That(typeof(MyGenericEntity).GetShortClassName(null), Is.EqualTo(typeof(MyGenericEntity).AssemblyQualifiedName)); } [Test] public void WithGenericWhenMapDocDoesNotHaveDefaultsThenAssemblyQualifiedName() { var mapDoc = new HbmMapping(); - typeof(MyGenericEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyGenericEntity).AssemblyQualifiedName); + Assert.That(typeof(MyGenericEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyGenericEntity).AssemblyQualifiedName)); } [Test] @@ -99,7 +99,7 @@ public void WithGenericWhenMapDocHaveDefaultAssemblyThenFullName() { var mapDoc = new HbmMapping(); mapDoc.assembly = typeof(MyGenericEntity<>).Assembly.FullName; - typeof(MyGenericEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyGenericEntity).FullName); + Assert.That(typeof(MyGenericEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyGenericEntity).FullName)); } [Test] @@ -107,7 +107,7 @@ public void WithGenericWhenMapDocHaveDefaultAssemblyNameThenFullName() { var mapDoc = new HbmMapping(); mapDoc.assembly = typeof(MyGenericEntity<>).Assembly.GetName().Name; - typeof(MyGenericEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyGenericEntity).FullName); + Assert.That(typeof(MyGenericEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyGenericEntity).FullName)); } [Test] @@ -116,7 +116,7 @@ public void WithGenericWhenMapDocHaveDefaultsThenName() var mapDoc = new HbmMapping(); mapDoc.assembly = typeof(MyGenericEntity<>).Assembly.FullName; mapDoc.@namespace = typeof(MyGenericEntity<>).Namespace; - typeof(MyGenericEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyGenericEntity).FullName); + Assert.That(typeof(MyGenericEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyGenericEntity).FullName)); } [Test] @@ -125,7 +125,7 @@ public void WithGenericWhenMapDocDefaultsDoesNotMatchsThenAssemblyQualifiedName( var mapDoc = new HbmMapping(); mapDoc.assembly = "whatever"; mapDoc.@namespace = "whatever"; - typeof(MyGenericEntity).GetShortClassName(mapDoc).Should().Be.EqualTo(typeof(MyGenericEntity).AssemblyQualifiedName); + Assert.That(typeof(MyGenericEntity).GetShortClassName(mapDoc), Is.EqualTo(typeof(MyGenericEntity).AssemblyQualifiedName)); } [Test] @@ -135,7 +135,7 @@ public void WithGenericWhenMatchNamespaceButNotAssemblyThenOnlyNameAndAssembly() var mapDoc = new HbmMapping(); mapDoc.assembly = "whatever"; mapDoc.@namespace = typeof(MyGenericEntity<>).Namespace; - typeof(MyGenericEntity).GetShortClassName(mapDoc).Should().StartWith(typeof(MyGenericEntity).FullName).And.EndWith(", " + typeof(MyGenericEntity).Assembly.GetName().Name); + Assert.That(typeof(MyGenericEntity).GetShortClassName(mapDoc), Is.StringStarting(typeof(MyGenericEntity).FullName).And.EndsWith(", " + typeof(MyGenericEntity).Assembly.GetName().Name)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs index d3cc5bcb1e6..fbe9820527f 100644 --- a/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs @@ -45,8 +45,7 @@ public void CanUseDatareadersGetValue() var multi = s.CreateMultiCriteria(); multi.Add(crit); var res = (IList) multi.List()[0]; - res.Count - .Should().Be.EqualTo(1); + Assert.That(res.Count, Is.EqualTo(1)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs b/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs index d839c5d1567..fe521c486ac 100644 --- a/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs @@ -48,7 +48,7 @@ public void SavingAndRetrievingTest() using (ITransaction tx = s.BeginTransaction()) { var datesRecovered = s.CreateQuery("from AllDates").UniqueResult(); - datesRecovered.Sql_datetimeoffset.Should().Be(NowOS); + Assert.That(datesRecovered.Sql_datetimeoffset, Is.EqualTo(NowOS)); } using (ISession s = OpenSession()) @@ -65,7 +65,7 @@ public void WhenEqualTicksThenShouldMatchIsEqual() { var type = new DateTimeOffsetType(); var now = DateTimeOffset.Now; - type.IsEqual(new DateTimeOffset(now.Ticks, now.Offset), new DateTimeOffset(now.Ticks, now.Offset)).Should().Be.True(); + Assert.That(type.IsEqual(new DateTimeOffset(now.Ticks, now.Offset), new DateTimeOffset(now.Ticks, now.Offset)), Is.True); } [Test] @@ -73,7 +73,7 @@ public void WhenNotEqualTicksThenShouldNotMatchIsEqual() { var type = new DateTimeOffsetType(); var now = DateTimeOffset.Now; - type.IsEqual(new DateTimeOffset(now.Ticks - 1, now.Offset), new DateTimeOffset(now.Ticks, now.Offset)).Should().Be.False(); + Assert.That(type.IsEqual(new DateTimeOffset(now.Ticks - 1, now.Offset), new DateTimeOffset(now.Ticks, now.Offset)), Is.False); } [Test] @@ -82,24 +82,24 @@ public void HashCodeShouldHaveSameBehaviorOfNetType() var type = new DateTimeOffsetType(); var now = DateTimeOffset.Now; var exactClone = new DateTimeOffset(now.Ticks, now.Offset); - (now.GetHashCode() == exactClone.GetHashCode()).Should().Be.EqualTo(now.GetHashCode() == type.GetHashCode(exactClone, EntityMode.Poco)); + Assert.That((now.GetHashCode() == exactClone.GetHashCode()), Is.EqualTo(now.GetHashCode() == type.GetHashCode(exactClone, EntityMode.Poco))); } [Test] public void Next() { - var type = (DateTimeOffsetType)NHibernateUtil.DateTimeOffset; + var type = NHibernateUtil.DateTimeOffset; var current = DateTimeOffset.Now.AddTicks(-1); object next = type.Next(current, null); - next.Should().Be.OfType().And.ValueOf.Ticks.Should().Be.GreaterThan(current.Ticks); + Assert.That(next, Is.TypeOf().And.Property("Ticks").GreaterThan(current.Ticks)); } [Test] public void Seed() { - var type = (DateTimeOffsetType)NHibernateUtil.DateTimeOffset; - type.Seed(null).Should().Be.OfType(); + var type = NHibernateUtil.DateTimeOffset; + Assert.That(type.Seed(null), Is.TypeOf()); } } diff --git a/src/NHibernate.Test/NHSpecificTest/Futures/FutureQueryFixture.cs b/src/NHibernate.Test/NHSpecificTest/Futures/FutureQueryFixture.cs index 1375cbce0a6..7101a592f37 100644 --- a/src/NHibernate.Test/NHSpecificTest/Futures/FutureQueryFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/Futures/FutureQueryFixture.cs @@ -5,11 +5,11 @@ namespace NHibernate.Test.NHSpecificTest.Futures { - using System.Collections; + using System.Collections; - [TestFixture] - public class FutureQueryFixture : FutureFixture - { + [TestFixture] + public class FutureQueryFixture : FutureFixture + { [Test] public void DefaultReadOnlyTest() { @@ -24,124 +24,123 @@ public void DefaultReadOnlyTest() } } - [Test] - public void CanUseFutureQuery() - { - using (var s = sessions.OpenSession()) - { + [Test] + public void CanUseFutureQuery() + { + using (var s = sessions.OpenSession()) + { IgnoreThisTestIfMultipleQueriesArentSupportedByDriver(); - var persons10 = s.CreateQuery("from Person") - .SetMaxResults(10) - .Future(); - var persons5 = s.CreateQuery("from Person") - .SetMaxResults(5) - .Future(); + var persons10 = s.CreateQuery("from Person") + .SetMaxResults(10) + .Future(); + var persons5 = s.CreateQuery("from Person") + .SetMaxResults(5) + .Future(); + + using (var logSpy = new SqlLogSpy()) + { + foreach (var person in persons5) + { + + } + + foreach (var person in persons10) + { + + } + + var events = logSpy.Appender.GetEvents(); + Assert.AreEqual(1, events.Length); + } + } + } + + [Test] + public void TwoFuturesRunInTwoRoundTrips() + { + using (var s = sessions.OpenSession()) + { + IgnoreThisTestIfMultipleQueriesArentSupportedByDriver(); - using (var logSpy = new SqlLogSpy()) - { - foreach (var person in persons5) - { + using (var logSpy = new SqlLogSpy()) + { + var persons10 = s.CreateQuery("from Person") + .SetMaxResults(10) + .Future(); - } + foreach (var person in persons10) { } // fire first future round-trip - foreach (var person in persons10) - { + var persons5 = s.CreateQuery("from Person") + .SetMaxResults(5) + .Future(); - } + foreach (var person in persons5) { } // fire second future round-trip - var events = logSpy.Appender.GetEvents(); - Assert.AreEqual(1, events.Length); - } - } - } + var events = logSpy.Appender.GetEvents(); + Assert.AreEqual(2, events.Length); + } + } + } - [Test] - public void TwoFuturesRunInTwoRoundTrips() - { - using (var s = sessions.OpenSession()) - { + [Test] + public void CanCombineSingleFutureValueWithEnumerableFutures() + { + using (var s = sessions.OpenSession()) + { IgnoreThisTestIfMultipleQueriesArentSupportedByDriver(); - using (var logSpy = new SqlLogSpy()) - { - var persons10 = s.CreateQuery("from Person") - .SetMaxResults(10) - .Future(); + var persons = s.CreateQuery("from Person") + .SetMaxResults(10) + .Future(); - foreach (var person in persons10) { } // fire first future round-trip + var personCount = s.CreateQuery("select count(*) from Person") + .FutureValue(); - var persons5 = s.CreateQuery("from Person") - .SetMaxResults(5) - .Future(); + using (var logSpy = new SqlLogSpy()) + { + long count = personCount.Value; - foreach (var person in persons5) { } // fire second future round-trip + foreach (var person in persons) + { + } - var events = logSpy.Appender.GetEvents(); - Assert.AreEqual(2, events.Length); - } - } - } + var events = logSpy.Appender.GetEvents(); + Assert.AreEqual(1, events.Length); + } + } + } - [Test] - public void CanCombineSingleFutureValueWithEnumerableFutures() - { - using (var s = sessions.OpenSession()) - { + [Test] + public void CanExecuteMultipleQueryWithSameParameterName() + { + using (var s = sessions.OpenSession()) + { IgnoreThisTestIfMultipleQueriesArentSupportedByDriver(); + + var meContainer = s.CreateQuery("from Person p where p.Id = :personId") + .SetParameter("personId", 1) + .FutureValue(); + + var possiblefriends = s.CreateQuery("from Person p where p.Id != :personId") + .SetParameter("personId", 2) + .Future(); - var persons = s.CreateQuery("from Person") - .SetMaxResults(10) - .Future(); - - var personCount = s.CreateQuery("select count(*) from Person") - .FutureValue(); - - using (var logSpy = new SqlLogSpy()) - { - long count = personCount.Value; - - foreach (var person in persons) - { - } - - var events = logSpy.Appender.GetEvents(); - Assert.AreEqual(1, events.Length); - } - } - } - - [Test] - public void CanExecuteMultipleQueryWithSameParameterName() - { - using (var s = sessions.OpenSession()) - { - IgnoreThisTestIfMultipleQueriesArentSupportedByDriver(); - - var meContainer = s.CreateQuery("from Person p where p.Id = :personId") - .SetParameter("personId", 1) - .FutureValue(); - - var possiblefriends = s.CreateQuery("from Person p where p.Id != :personId") - .SetParameter("personId", 2) - .Future(); - - using (var logSpy = new SqlLogSpy()) - { - var me = meContainer.Value; + using (var logSpy = new SqlLogSpy()) + { + var me = meContainer.Value; + + foreach (var person in possiblefriends) + { + } - foreach (var person in possiblefriends) - { - } - - var events = logSpy.Appender.GetEvents(); - Assert.AreEqual(1, events.Length); - var wholeLog = logSpy.GetWholeLog(); - string paramPrefix = ((DriverBase) Sfi.ConnectionProvider.Driver).NamedPrefix; - Assert.True(wholeLog.Contains(paramPrefix + "p0 = 1 [Type: Int32 (0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0)]")); - } - } - - } - } + var events = logSpy.Appender.GetEvents(); + Assert.AreEqual(1, events.Length); + var wholeLog = logSpy.GetWholeLog(); + string paramPrefix = ((DriverBase) Sfi.ConnectionProvider.Driver).NamedPrefix; + Assert.That(wholeLog.Contains(paramPrefix + "p0 = 1 [Type: Int32 (0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0)]"), Is.True); + } + } + } + } } diff --git a/src/NHibernate.Test/NHSpecificTest/Futures/LinqFutureFixture.cs b/src/NHibernate.Test/NHSpecificTest/Futures/LinqFutureFixture.cs index 7ac1123ead9..ca8762bd4a4 100644 --- a/src/NHibernate.Test/NHSpecificTest/Futures/LinqFutureFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/Futures/LinqFutureFixture.cs @@ -353,11 +353,9 @@ public void CanExecuteMultipleQueriesOnSameExpression() Assert.AreEqual(1, events.Length); var wholeLog = logSpy.GetWholeLog(); string paramPrefix = ((DriverBase)Sfi.ConnectionProvider.Driver).NamedPrefix; - Assert.True(wholeLog.Contains(paramPrefix + "p0 = 1 [Type: Int32 (0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0)]")); + Assert.That(wholeLog.Contains(paramPrefix + "p0 = 1 [Type: Int32 (0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0)]"), Is.True); } } - } - } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/Logs/LogsFixture.cs b/src/NHibernate.Test/NHSpecificTest/Logs/LogsFixture.cs index fd616ee071c..3bc10acc717 100644 --- a/src/NHibernate.Test/NHSpecificTest/Logs/LogsFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/Logs/LogsFixture.cs @@ -41,7 +41,7 @@ public void WillGetSessionIdFromSessionLogs() s.Get(1);//will execute some sql var loggingEvent = spy.Events[0]; - Assert.True(loggingEvent.Contains(sessionId.ToString())); + Assert.That(loggingEvent.Contains(sessionId.ToString()), Is.True); } } @@ -66,7 +66,7 @@ public TextLogSpy(string loggerName, string pattern) { Layout = new PatternLayout(pattern), Threshold = Level.All, - Writer = new StringWriter(stringBuilder) + Writer = new StringWriter(stringBuilder) }; loggerImpl = (Logger)LogManager.GetLogger(loggerName).Logger; loggerImpl.AddAppender(appender); diff --git a/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs index abe5197d240..48a868ea828 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs @@ -14,34 +14,34 @@ private HbmMapping GetMappings() { var mapper = new ModelMapper(); mapper.Class(rt => - { - rt.Id(x => x.Id, map => map.Generator(Generators.Guid)); - rt.Property(x => x.Name); + { + rt.Id(x => x.Id, map => map.Generator(Generators.Guid)); + rt.Property(x => x.Name); rt.Set(x => x.Roles, map => { map.Table("UsersToRoles"); map.Inverse(true); map.Key(km => km.Column("UserId")); }, rel => rel.ManyToMany(mm => - { + { mm.Column("RoleId"); - mm.ForeignKey("FK_RoleInUser"); - })); - }); + mm.ForeignKey("FK_RoleInUser"); + })); + }); mapper.Class(rt => - { - rt.Id(x => x.Id, map => map.Generator(Generators.Guid)); - rt.Property(x => x.Name); - rt.Set(x => x.Users, map => - { - map.Table("UsersToRoles"); + { + rt.Id(x => x.Id, map => map.Generator(Generators.Guid)); + rt.Property(x => x.Name); + rt.Set(x => x.Users, map => + { + map.Table("UsersToRoles"); map.Key(km => km.Column("RoleId")); }, rel => rel.ManyToMany(mm => - { + { mm.Column("UserId"); - mm.ForeignKey("FK_UserInRole"); - })); - }); + mm.ForeignKey("FK_UserInRole"); + })); + }); var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); return mappings; } @@ -55,7 +55,7 @@ public void WhenMapCustomFkNamesThenUseIt() var sb = new StringBuilder(); (new SchemaExport(conf)).Create(s => sb.AppendLine(s), true); - sb.ToString().Should().Contain("FK_RoleInUser").And.Contain("FK_UserInRole"); + Assert.That(sb.ToString(), Is.StringContaining("FK_RoleInUser").And.StringContaining("FK_UserInRole")); (new SchemaExport(conf)).Drop(false, true); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs b/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs index acb76057612..dc94ed1835a 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs @@ -68,9 +68,9 @@ public void WhenReassociateCollectionUsingMergeThenReassingOwner() using (session.BeginTransaction()) { var merged = (MyClass)session.Merge(scenario.Entity); - ((IPersistentCollection)merged.Children).Owner.Should().Not.Be.Null(); - ((IPersistentCollection)merged.Components).Owner.Should().Not.Be.Null(); - ((IPersistentCollection)merged.Elements).Owner.Should().Not.Be.Null(); + Assert.That(((IPersistentCollection)merged.Children).Owner, Is.Not.Null); + Assert.That(((IPersistentCollection)merged.Components).Owner, Is.Not.Null); + Assert.That(((IPersistentCollection)merged.Elements).Owner, Is.Not.Null); session.Transaction.Commit(); } } @@ -101,9 +101,9 @@ public void WhenReassociateCollectionUsingLockThenTheCommitNotThrows() using (session.BeginTransaction()) { var fresh = session.Get(scenario.Entity.Id); - fresh.Children.Should().Have.Count.EqualTo(2); - fresh.Components.Should().Have.Count.EqualTo(2); - fresh.Elements.Should().Have.Count.EqualTo(2); + Assert.That(fresh.Children, Has.Count.EqualTo(2)); + Assert.That(fresh.Components, Has.Count.EqualTo(2)); + Assert.That(fresh.Elements, Has.Count.EqualTo(2)); session.Transaction.Commit(); } } @@ -133,9 +133,9 @@ public void WhenReassociateCollectionUsingUpdateThenTheCommitNotThrows() using (session.BeginTransaction()) { var fresh = session.Get(scenario.Entity.Id); - fresh.Children.Should().Have.Count.EqualTo(2); - fresh.Components.Should().Have.Count.EqualTo(2); - fresh.Elements.Should().Have.Count.EqualTo(2); + Assert.That(fresh.Children, Has.Count.EqualTo(2)); + Assert.That(fresh.Components, Has.Count.EqualTo(2)); + Assert.That(fresh.Elements, Has.Count.EqualTo(2)); session.Transaction.Commit(); } } @@ -165,9 +165,9 @@ public void WhenReassociateCollectionUsingSaveOrUpdateThenTheCommitNotThrows() using (session.BeginTransaction()) { var fresh = session.Get(scenario.Entity.Id); - fresh.Children.Should().Have.Count.EqualTo(2); - fresh.Components.Should().Have.Count.EqualTo(2); - fresh.Elements.Should().Have.Count.EqualTo(2); + Assert.That(fresh.Children, Has.Count.EqualTo(2)); + Assert.That(fresh.Components, Has.Count.EqualTo(2)); + Assert.That(fresh.Elements, Has.Count.EqualTo(2)); session.Transaction.Commit(); } } @@ -193,7 +193,7 @@ public void WhenReassociateCollectionUsingDeleteThenTheCommitNotThrows() using (session.BeginTransaction()) { var fresh = session.Get(scenario.Entity.Id); - fresh.Should().Be.Null(); + Assert.That(fresh, Is.Null); session.Transaction.Commit(); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs index 68479cba554..f4c78eef01b 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs @@ -39,8 +39,8 @@ public void UsingTwoInstancesWithSameValuesTheFkNameIsTheSame() string t1Fk_ = table1_.UniqueColumnString(new object[] { table1ITestManyA_ }, "BluewireTechnologies.Core.Framework.DynamicTypes2.Albatross.ITestManyA"); string t2Fk_ = table1_.UniqueColumnString(new object[] { table1ITestManyB_ }, "BluewireTechnologies.Core.Framework.DynamicTypes2.Albatross.ITestManyB"); - t1Fk_.Should().Be.EqualTo(t1Fk); - t2Fk_.Should().Be.EqualTo(t2Fk); + Assert.That(t1Fk_, Is.EqualTo(t1Fk)); + Assert.That(t2Fk_, Is.EqualTo(t2Fk)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs index 6b901d83abb..e5c20a2a8ea 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs @@ -15,7 +15,7 @@ public void WhenParameterListIsEmptyArrayUsingQueryThenDoesNotTrowsNullReference using (var s = OpenSession()) { var query = s.CreateQuery("from AnEntity a where a.id in (:myList)"); - query.Executing(x => x.SetParameterList("myList", new long[0])).Throws().And.Exception.Should().Not.Be.InstanceOf(); + Assert.That(() => query.SetParameterList("myList", new long[0]), Throws.Exception.Not.InstanceOf()); } } @@ -25,7 +25,7 @@ public void WhenParameterListIsEmptyGenericCollectionUsingQueryThenDoesNotTrowsN using (var s = OpenSession()) { var query = s.CreateQuery("from AnEntity a where a.id in (:myList)"); - query.Executing(x => x.SetParameterList("myList", new Collection())).Throws().And.Exception.Should().Not.Be.InstanceOf(); + Assert.That(() => query.SetParameterList("myList", new Collection()), Throws.Exception.Not.InstanceOf()); } } @@ -47,7 +47,7 @@ public void WhenParameterListIsNullUsingQueryThenTrowsArgumentException() using (var s = OpenSession()) { var query = s.CreateQuery("from AnEntity a where a.id in (:myList)"); - query.Executing(x => x.SetParameterList("myList", null)).Throws().And.Exception.Should().Be.InstanceOf(); + Assert.That(() => query.SetParameterList("myList", null), Throws.Exception.InstanceOf()); } } @@ -57,9 +57,8 @@ public void WhenParameterListIsEmptyUsingQueryThenDoesNotTrowsNullReferenceExcep using (var s = OpenSession()) { var query = s.CreateQuery("from AnEntity a where a.id in (:myList)"); - query.Executing(x => x.SetParameterList("myList", new long[0]).List()).Throws().And.Exception.Should().Not.Be.InstanceOf(); + Assert.That(() => query.SetParameterList("myList", new long[0]).List(), Throws.Exception.Not.InstanceOf()); } } - } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs index b295b155b14..52ebe163f49 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs @@ -1,6 +1,11 @@ using NUnit.Framework; using SharpTestsEx; +namespace SharpTestsEx +{ + + +} namespace NHibernate.Test.NHSpecificTest.NH1508 { [TestFixture] @@ -66,7 +71,7 @@ public void DoesntThrowsExceptionWhenSqlQueryIsGiven() { var sqlQuery = session.CreateSQLQuery("select * from Document"); var multiquery = session.CreateMultiQuery(); - multiquery.Executing(x => x.Add(sqlQuery)).NotThrows(); + Assert.That(() => multiquery.Add(sqlQuery), Throws.Nothing); } } @@ -78,7 +83,7 @@ public void DoesntThrowsExceptionWhenNamedSqlQueryIsGiven() { var multiquery = session.CreateMultiQuery(); - multiquery.Executing(x => x.AddNamedQuery("SampleSqlQuery")).NotThrows(); + Assert.That(() => multiquery.AddNamedQuery("SampleSqlQuery"), Throws.Nothing); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs index 0f237084ccf..0d95f43fdd8 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs @@ -37,9 +37,9 @@ public void AliasToBeanTransformerShouldApplyCorrectlyToMultiQuery() ); IList results = null; - Executing.This(() => results = multiQuery.List()).Should().NotThrow(); + Assert.That(() => results = multiQuery.List(), Throws.Nothing); var elementOfFirstResult = ((IList)results[0])[0]; - elementOfFirstResult.Should().Be.OfType().And.ValueOf.EntityId.Should().Be(1); + Assert.That(elementOfFirstResult, Is.TypeOf().And.Property("EntityId").EqualTo(1)); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH1850/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1850/Fixture.cs index 91f94ae97e5..061b58fd972 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1850/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1850/Fixture.cs @@ -14,10 +14,10 @@ protected override void Configure(NHibernate.Cfg.Configuration configuration) configuration.SetProperty(Environment.BatchSize, "1"); } - protected override bool AppliesTo(Dialect.Dialect dialect) - { - return dialect.SupportsSqlBatches; - } + protected override bool AppliesTo(Dialect.Dialect dialect) + { + return dialect.SupportsSqlBatches; + } [Test] public void CanGetQueryDurationForDelete() @@ -29,9 +29,7 @@ public void CanGetQueryDurationForDelete() session.CreateQuery("delete Customer").ExecuteUpdate(); var wholeLog = spy.GetWholeLog(); - Assert.True( - wholeLog.Contains("ExecuteNonQuery took") - ); + Assert.That(wholeLog.Contains("ExecuteNonQuery took"), Is.True); tx.Rollback(); } @@ -79,12 +77,8 @@ public void CanGetQueryDurationForSelect() session.CreateQuery("from Customer").List(); var wholeLog = spy.GetWholeLog(); - Assert.True( - wholeLog.Contains("ExecuteReader took") - ); - Assert.True( - wholeLog.Contains("DataReader was closed after") - ); + Assert.That(wholeLog.Contains("ExecuteReader took"), Is.True); + Assert.That(wholeLog.Contains("DataReader was closed after"), Is.True); tx.Rollback(); } diff --git a/src/NHibernate.Test/NHSpecificTest/NH1882/TestCollectionInitializingDuringFlush.cs b/src/NHibernate.Test/NHSpecificTest/NH1882/TestCollectionInitializingDuringFlush.cs index 5bed4ed93e2..6338488b743 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1882/TestCollectionInitializingDuringFlush.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1882/TestCollectionInitializingDuringFlush.cs @@ -112,8 +112,8 @@ public void TestInitializationDuringFlush() s.Transaction.Commit(); s.Clear(); s.Close(); - Assert.True(listener.Executed); - Assert.True(listener.FoundAny); + Assert.That(listener.Executed, Is.True); + Assert.That(listener.FoundAny, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs b/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs index 8aa9cef39d8..e32bc31c3d6 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs @@ -24,10 +24,10 @@ protected override HbmMapping GetMappings() var mapper = new ModelMapper(); // Note: DeleteOrphans has no sense, only added to match the case reported. mapper.Class(cm => - { - cm.Id(x => x.Id, map => map.Generator(Generators.Identity)); + { + cm.Id(x => x.Id, map => map.Generator(Generators.Identity)); cm.Bag(x => x.Children, map => map.Cascade(Mapping.ByCode.Cascade.All.Include(Mapping.ByCode.Cascade.DeleteOrphans)), rel => rel.OneToMany()); - }); + }); var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); return mappings; } @@ -45,7 +45,7 @@ public void WhenReattachThenNotThrows() using (var session = OpenSession()) { - session.Executing(x => x.Lock(cat, LockMode.None)).NotThrows(); + Assert.That(() => session.Lock(cat, LockMode.None), Throws.Nothing); } using (var session = OpenSession()) diff --git a/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs index 38a09a56956..ac00cde5990 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs @@ -57,7 +57,7 @@ public void ISQLExceptionConverter_gets_called_if_batch_size_enabled() { var one = s.Load(oneId); s.Delete(one); - tx.Executing(transaction => transaction.Commit()).Throws(); + Assert.That(() => tx.Commit(), Throws.TypeOf()); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs b/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs index 27f4074c5b9..41ba313a042 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs @@ -22,7 +22,7 @@ public void TheModuleOperationShouldAddParenthesisToAvoidWrongSentence() { // The expected value should be "(5+1)%(1+1)" instead "5+ 1%1 +1" var sqlQuery = GetSql("select mod(5+1,1+1) from MyClass"); - sqlQuery.Should().Contain("(5+1)").And.Contain("(1+1)"); + Assert.That(sqlQuery, Is.StringContaining("(5+1)").And.StringContaining("(1+1)")); } public string GetSql(string query) diff --git a/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs index 8b0ef82bef3..9e0753ceb3a 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs @@ -14,8 +14,8 @@ public void WhenJoinTableContainComponentsThenColumnsShouldBeInJoinedTable() cfg.AddResource("NHibernate.Test.NHSpecificTest.NH2041.Mappings.hbm.xml", GetType().Assembly); var mappings = cfg.CreateMappings(Dialect.Dialect.GetDialect(cfg.Properties)); var table = mappings.GetTable(null, null, "Locations"); - table.Should().Not.Be.Null(); - table.ColumnIterator.Select(c => c.Name).Should().Have.SameValuesAs("myclassId", "latitudecol", "longitudecol"); + Assert.That(table, Is.Not.Null); + Assert.That(table.ColumnIterator.Select(c => c.Name), Is.EquivalentTo(new [] {"myclassId", "latitudecol", "longitudecol"})); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs index e1f71e44da8..8b761764711 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs @@ -51,10 +51,10 @@ public void CanUpdateInheritedClass() using (var t = session.BeginTransaction()) { var updated = (IDictionary) session.Get("Address", savedId); - updated["BaseF1"].Should().Be("base1"); - updated["BaseF2"].Should().Be("base2"); - updated["AddressF1"].Should().Be("foo"); - updated["AddressF2"].Should().Be("bar"); + Assert.That(updated["BaseF1"], Is.EqualTo("base1")); + Assert.That(updated["BaseF2"], Is.EqualTo("base2")); + Assert.That(updated["AddressF1"], Is.EqualTo("foo")); + Assert.That(updated["AddressF2"], Is.EqualTo("bar")); t.Commit(); } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2057/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2057/Fixture.cs index 1bad6767f3f..9339f28a508 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2057/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2057/Fixture.cs @@ -26,8 +26,7 @@ public void WillCloseWhenUsingDTC() Assert.False(s.IsClosed); tx.Complete(); } - Assert.True(s.IsClosed); + Assert.That(s.IsClosed, Is.True); } - } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs index c6921aff1c8..6871ca6e2dd 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs @@ -25,11 +25,11 @@ public void ConstrainedLazyLoadedOneToOneUsingCastleProxy() { var employee = s.Get(1); - Assert.False(NHibernateUtil.IsInitialized(employee.Person)); + Assert.That(NHibernateUtil.IsInitialized(employee.Person), Is.False); - Assert.AreEqual(employee.Person.Name, "Person1"); + Assert.That("Person1", Is.EqualTo(employee.Person.Name)); - Assert.True(NHibernateUtil.IsInitialized(employee.Person)); + Assert.That(NHibernateUtil.IsInitialized(employee.Person), Is.True); } } finally diff --git a/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs index 55f201751ed..f2bd6664cf3 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs @@ -6,43 +6,43 @@ namespace NHibernate.Test.NHSpecificTest.NH2094 [TestFixture] public class Fixture : BugTestCase { - [Test] - public void CanAccessInitializedPropertiesOutsideOfSession() - { - try - { - using (var s = OpenSession()) - { - var p = new Person { Id = 1, Name = "Person1", LazyField = "Long field"}; + [Test] + public void CanAccessInitializedPropertiesOutsideOfSession() + { + try + { + using (var s = OpenSession()) + { + var p = new Person { Id = 1, Name = "Person1", LazyField = "Long field"}; - s.Save(p); + s.Save(p); - s.Flush(); - } + s.Flush(); + } - Person person; + Person person; - using (var s = OpenSession()) - { - person = s.Get(1); + using (var s = OpenSession()) + { + person = s.Get(1); - Assert.AreEqual("Person1", person.Name); - Assert.AreEqual("Long field", person.LazyField); - } + Assert.AreEqual("Person1", person.Name); + Assert.AreEqual("Long field", person.LazyField); + } - Assert.AreEqual("Person1", person.Name); - Assert.AreEqual("Long field", person.LazyField); - } - finally - { - using (var s = OpenSession()) - { - s.Delete("from Person"); + Assert.AreEqual("Person1", person.Name); + Assert.AreEqual("Long field", person.LazyField); + } + finally + { + using (var s = OpenSession()) + { + s.Delete("from Person"); - s.Flush(); - } - } - } + s.Flush(); + } + } + } [Test] public void WhenAccessNoLazyPropertiesOutsideOfSessionThenNotThrows() @@ -65,7 +65,7 @@ public void WhenAccessNoLazyPropertiesOutsideOfSessionThenNotThrows() person = s.Get(1); } string personName; - Executing.This(()=> personName = person.Name).Should().NotThrow(); + Assert.That(() => personName = person.Name, Throws.Nothing); } finally { @@ -99,9 +99,9 @@ public void WhenAccessLazyPropertiesOutsideOfSessionThenThrows() person = s.Get(1); } string lazyField; - var lazyException = Executing.This(() => lazyField = person.LazyField).Should().Throw().Exception; - lazyException.EntityName.Should().Not.Be.Null(); - lazyException.Message.Should().Contain("LazyField"); + var lazyException = Assert.Throws(() => lazyField = person.LazyField); + Assert.That(lazyException.EntityName, Is.Not.Null); + Assert.That(lazyException.Message, Is.StringContaining("LazyField")); } finally { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs index 5a0040de250..790cac7f89b 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs @@ -80,17 +80,17 @@ public void WhenTwoTransactionInSameSessionThenNotChangeVersion() tx.Commit(); } // After close the second transaction the version was not changed - c1_1.EntityVersion.Should().Be(originalVersionC1_1); - c1_2.EntityVersion.Should().Be(originalVersionC1_2); - c2_1.EntityVersion.Should().Be(originalVersionC2_1); - c2_2.EntityVersion.Should().Be(originalVersionC2_2); + Assert.That(c1_1.EntityVersion, Is.EqualTo(originalVersionC1_1)); + Assert.That(c1_2.EntityVersion, Is.EqualTo(originalVersionC1_2)); + Assert.That(c2_1.EntityVersion, Is.EqualTo(originalVersionC2_1)); + Assert.That(c2_2.EntityVersion, Is.EqualTo(originalVersionC2_2)); } // After close the session the version was not changed - c1_1.EntityVersion.Should().Be(originalVersionC1_1); - c1_2.EntityVersion.Should().Be(originalVersionC1_2); - c2_1.EntityVersion.Should().Be(originalVersionC2_1); - c2_2.EntityVersion.Should().Be(originalVersionC2_2); + Assert.That(c1_1.EntityVersion, Is.EqualTo(originalVersionC1_1)); + Assert.That(c1_2.EntityVersion, Is.EqualTo(originalVersionC1_2)); + Assert.That(c2_1.EntityVersion, Is.EqualTo(originalVersionC2_1)); + Assert.That(c2_2.EntityVersion, Is.EqualTo(originalVersionC2_2)); using (ISession s = OpenSession()) { @@ -102,10 +102,10 @@ public void WhenTwoTransactionInSameSessionThenNotChangeVersion() c1_2 = s.Get(c1_2.ID); // to be 100% sure the version was not changed in DB - c1_1.EntityVersion.Should().Be(originalVersionC1_1); - c1_2.EntityVersion.Should().Be(originalVersionC1_2); - c2_1.EntityVersion.Should().Be(originalVersionC2_1); - c2_2.EntityVersion.Should().Be(originalVersionC2_2); + Assert.That(c1_1.EntityVersion, Is.EqualTo(originalVersionC1_1)); + Assert.That(c1_2.EntityVersion, Is.EqualTo(originalVersionC1_2)); + Assert.That(c2_1.EntityVersion, Is.EqualTo(originalVersionC2_1)); + Assert.That(c2_2.EntityVersion, Is.EqualTo(originalVersionC2_2)); s.Delete(c2_1); s.Delete(c1_1); diff --git a/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs index 6ac1e398b4f..6f4277fcff2 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs @@ -26,7 +26,7 @@ public void EntityWithConstrainedLazyLoadedOneToOneShouldNotGenerateFieldInterce { var employee = s.Get(1); - employee.Should().Be.OfType(); + Assert.That(employee, Is.TypeOf()); } } finally diff --git a/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs index e92c991eddb..cd97e7fd73d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs @@ -12,10 +12,10 @@ public void AfterAddAppingShouldHaveAResultsetWithEntityName() { var cfg = TestConfigurationHelper.GetDefaultConfiguration(); cfg.AddResource("NHibernate.Test.NHSpecificTest.NH2138.Mappings.hbm.xml", GetType().Assembly); - cfg.Executing(c => c.BuildMappings()).NotThrows(); + Assert.That(() => cfg.BuildMappings(), Throws.Nothing); var sqlQuery = cfg.NamedSQLQueries["AllCoders"]; var rootReturn = (NativeSQLQueryRootReturn)sqlQuery.QueryReturns[0]; - rootReturn.ReturnEntityName.Should().Be("Coder"); + Assert.That(rootReturn.ReturnEntityName, Is.EqualTo("Coder")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs b/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs index 95aaca21b6d..ad399d24797 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs @@ -21,10 +21,10 @@ public void WhenNoDefaultAndNoSpecificThenUse1() cfg.AddResource("NHibernate.Test.NHSpecificTest.NH2147.Mappings.hbm.xml", GetType().Assembly); var sf = (ISessionFactoryImplementor)cfg.BuildSessionFactory(); var persister = sf.GetEntityPersister("MyClassWithoutBatchSize"); - persister.IsBatchLoadable.Should().Be.False(); + Assert.That(persister.IsBatchLoadable, Is.False); // hack - fieldInfo.GetValue(persister).Should().Be(1); + Assert.That(fieldInfo.GetValue(persister), Is.EqualTo(1)); } [Test] @@ -37,10 +37,10 @@ public void WhenDefaultAndNoSpecificThenUseDefault() var sf = (ISessionFactoryImplementor)cfg.BuildSessionFactory(); var persister = sf.GetEntityPersister("MyClassWithoutBatchSize"); - persister.IsBatchLoadable.Should().Be.True(); + Assert.That(persister.IsBatchLoadable, Is.True); // hack - fieldInfo.GetValue(persister).Should().Be(20); + Assert.That(fieldInfo.GetValue(persister), Is.EqualTo(20)); } [Test] @@ -53,10 +53,10 @@ public void WhenDefaultAndSpecificThenUseSpecific() var sf = (ISessionFactoryImplementor)cfg.BuildSessionFactory(); var persister = sf.GetEntityPersister("MyClassWithBatchSize"); - persister.IsBatchLoadable.Should().Be.True(); + Assert.That(persister.IsBatchLoadable, Is.True); // hack - fieldInfo.GetValue(persister).Should().Be(10); + Assert.That(fieldInfo.GetValue(persister), Is.EqualTo(10)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs index 42f5395760d..ad388e35277 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs @@ -18,7 +18,7 @@ public void WhenUniqueResultShouldCallConverter() { using (var s = OpenSession()) { - Executing.This(()=> s.CreateSQLQuery("select make from ItFunky").UniqueResult()).Should().Throw(); + Assert.That(() => s.CreateSQLQuery("select make from ItFunky").UniqueResult(), Throws.TypeOf()); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs b/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs index 199480f3efd..2973d6ff32d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs @@ -26,7 +26,7 @@ public void WhenSerchInMultiplePathsThenNotThrows() AppDomain.CurrentDomain.AppendPrivatePath("bin"); AppDomain.CurrentDomain.AppendPrivatePath("DbScripts"); var configuration = new MyNhConfiguration(); - configuration.DefaultConfigurationFilePath().Should().Be(expected); + Assert.That(configuration.DefaultConfigurationFilePath(), Is.EqualTo(expected)); } finally { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs index 1479a2846f8..a87cb581010 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs @@ -1,4 +1,5 @@ using System.Linq; +using NHibernate.DomainModel; using NHibernate.Linq; using NUnit.Framework; using SharpTestsEx; @@ -33,7 +34,8 @@ public void QueryShouldWork() .Where(a => a.Name.StartsWith("F")) .ToArray(); - actual.Select(a => a.Name).Should().Have.SameSequenceAs("Fez", "Foo"); + var expected = new[] {"Fez", "Foo"}; + Assert.That(actual.Select(a => a.Name), Is.EquivalentTo(expected)); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs b/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs index 52bba5c2927..9d7d0a2b040 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs @@ -80,7 +80,7 @@ public void Dates_Before_1753_Should_Not_Insert_Null() using (var tx = session.BeginTransaction()) { var savedObj = session.Get(savedId); - savedObj.Date.Should().Be(expectedStoredValue); + Assert.That(savedObj.Date, Is.EqualTo(expectedStoredValue)); session.Delete(savedObj); tx.Commit(); } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs index 315dfa6ad4a..2d02a154f9b 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs @@ -52,22 +52,22 @@ public void WhenStaleObjectStateThenMessageContainsEntity() { using (var scenario = new ParentWithTwoChildrenScenario(Sfi)) { - using (var client1 = OpenSession()) - { - var parentFromClient1 = client1.Get(scenario.ParentId); - NHibernateUtil.Initialize(parentFromClient1.Children); - var firstChildId = parentFromClient1.Children[0].Id; + using (var client1 = OpenSession()) + { + var parentFromClient1 = client1.Get(scenario.ParentId); + NHibernateUtil.Initialize(parentFromClient1.Children); + var firstChildId = parentFromClient1.Children[0].Id; - DeleteChildUsingAnotherSession(firstChildId); + DeleteChildUsingAnotherSession(firstChildId); - using (var tx1 = client1.BeginTransaction()) - { - parentFromClient1.Children[0].Description = "Modified info"; - var expectedException = tx1.Executing(x => x.Commit()).Throws().Exception; - expectedException.EntityName.Should().Be(typeof (Child).FullName); - expectedException.Identifier.Should().Be(firstChildId); - } - } + using (var tx1 = client1.BeginTransaction()) + { + parentFromClient1.Children[0].Description = "Modified info"; + var expectedException = Assert.Throws(() => tx1.Commit()); + Assert.That(expectedException.EntityName, Is.EqualTo(typeof (Child).FullName)); + Assert.That(expectedException.Identifier, Is.EqualTo(firstChildId)); + } + } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs index e5a905fcd78..ad5f847cfda 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs @@ -15,10 +15,10 @@ public void CanCreacteRetrieveDeleteComponentsWithPrivateReferenceSetterToParent var component = new MyComponentWithParent(entity){Something = "A"}; entity.Component = component; entity.Children = new List - { - new MyComponentWithParent(entity){Something = "B"}, + { + new MyComponentWithParent(entity){Something = "B"}, new MyComponentWithParent(entity){Something = "C"} - }; + }; object poid; using (var s = OpenSession()) using (var tx = s.BeginTransaction()) @@ -32,12 +32,12 @@ public void CanCreacteRetrieveDeleteComponentsWithPrivateReferenceSetterToParent { var savedEntity = s.Get(poid); var myComponentWithParent = savedEntity.Component; - myComponentWithParent.Should().Not.Be.Null(); - myComponentWithParent.Parent.Should().Be.SameInstanceAs(savedEntity); - myComponentWithParent.Something.Should().Be("A"); + Assert.That(myComponentWithParent, Is.Not.Null); + Assert.That(myComponentWithParent.Parent, Is.SameAs(savedEntity)); + Assert.That(myComponentWithParent.Something, Is.EqualTo("A")); - savedEntity.Children.Select(c => c.Something).Should().Have.SameValuesAs("B", "C"); - savedEntity.Children.Select(child=> child.Parent).All(parent => parent.Satisfy(myEntity => ReferenceEquals(myEntity, savedEntity))); + Assert.That(savedEntity.Children.Select(c => c.Something), Is.EquivalentTo(new [] {"B", "C"})); + Assert.That(savedEntity.Children.All(c => ReferenceEquals(c.Parent, savedEntity)), Is.True); s.Delete(savedEntity); tx.Commit(); diff --git a/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs index 77a96df426d..57f5b878ddd 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs @@ -17,13 +17,13 @@ public class Fixture: BugTestCase [Test] public void CanQueryViaLinq() { - using (var s = OpenSession()) - { - var qry = from item in s.Query() where item.Relation == MyUserTypes.Value1 select item; + using (var s = OpenSession()) + { + var qry = from item in s.Query() where item.Relation == MyUserTypes.Value1 select item; - qry.ToList(); - qry.Executing(q => q.ToList()).NotThrows(); - } + qry.ToList(); + Assert.That(() => qry.ToList(), Throws.Nothing); + } } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs index 53e76669bd4..b41310e555e 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs @@ -21,7 +21,7 @@ public void ShouldCreateSchemaWithDefaultClause() cfg.AddInputStream(stream); new SchemaExport(cfg).Execute(s => script.AppendLine(s), false, false); - script.ToString().Should().Contain("MyNameForFK"); + Assert.That(script.ToString(), Is.StringContaining("MyNameForFK")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs index 0656d37c19e..911d5b8c797 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs @@ -47,7 +47,7 @@ public void TestDelete_OptimisticLockNone() // Now delete from second session using (ITransaction trans2 = session2.BeginTransaction()) { - session2.Executing(s=> s.Delete(f2)).NotThrows(); + Assert.That(() => session2.Delete(f2), Throws.Nothing); trans2.Commit(); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs index 4dda6c88a32..d9d5ff59c18 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs @@ -19,12 +19,11 @@ public void WhenUseFutureSkipTakeThenNotThrow() int rowcount; Foo[] items; - Executing.This(() => - { - rowcount = rowcountQuery.Value; - items = resultsQuery.ToArray(); - } - ).Should().NotThrow(); + Assert.That(() => + { + rowcount = rowcountQuery.Value; + items = resultsQuery.ToArray(); + }, Throws.Nothing); } } @@ -40,12 +39,11 @@ public void EnlistingFirstThePaginationAndThenTheRowCountDoesNotThrows() int rowcount; Foo[] items; - Executing.This(() => + Assert.That(() => { rowcount = rowcountQuery.Value; items = resultsQuery.ToArray(); - } - ).Should().NotThrow(); + }, Throws.Nothing); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs index 942bbce5ea8..9ce05da7618 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs @@ -12,8 +12,9 @@ public void WhenBuildSessionFactoryThenThrows() { Configuration cfg = TestConfigurationHelper.GetDefaultConfiguration(); cfg.AddResource("NHibernate.Test.NHSpecificTest.NH2266.Mappings.hbm.xml", GetType().Assembly); - cfg.Executing(c => c.BuildSessionFactory()).Throws() - .And.ValueOf.Message.Should().Contain("does not have mapped subclasses").And.Contain(typeof(TemporaryToken).FullName); + Assert.That(() => cfg.BuildSessionFactory(), Throws.TypeOf() + .And.Message.ContainsSubstring("does not have mapped subclasses") + .And.Message.ContainsSubstring(typeof (TemporaryToken).FullName)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs index 89f1ccff655..a7044bd7c23 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs @@ -13,7 +13,7 @@ public void DotInStringLiteralsConstant() using (ISession session = OpenSession()) { var query = string.Format("from Foo f {0}where f.", Environment.NewLine); - session.Executing(s => s.CreateQuery(query).List()).Throws(); + Assert.That(() => session.CreateQuery(query).List(), Throws.TypeOf()); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs index ab6bfcea46f..e5a5b98c4ae 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs @@ -22,8 +22,7 @@ private static void AssertThatCheckOnTableExistenceIsCorrect(Configuration confi var sb = new StringBuilder(500); su.Execute(x => sb.AppendLine(x), false, false); string script = sb.ToString(); - script.Should().Contain( - "if exists (select 1 from sys.objects where object_id = OBJECT_ID(N'dbo.[Aclasses_Id_FK]') AND parent_object_id = OBJECT_ID('dbo.Aclass'))"); + Assert.That(script, Is.StringContaining("if exists (select 1 from sys.objects where object_id = OBJECT_ID(N'dbo.[Aclasses_Id_FK]') AND parent_object_id = OBJECT_ID('dbo.Aclass'))")); } [Test] diff --git a/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs index 3d30964406b..11d3ffee251 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs @@ -20,7 +20,7 @@ public void WhenQueryHasJustAfromThenThrowQuerySyntaxException() { using (ISession session = OpenSession()) { - session.Executing(s => s.CreateQuery("from").List()).Throws(); + Assert.That(() => session.CreateQuery("from").List(), Throws.TypeOf()); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs index 479a22f7ed4..ae194107d23 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs @@ -20,7 +20,7 @@ public void WhenQueryHasJustAWhereThenThrowQuerySyntaxException() { using (ISession session = OpenSession()) { - session.Executing(s => s.CreateQuery("where").List()).Throws(); + Assert.That(() => session.CreateQuery("where").List(), Throws.TypeOf()); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs index 1e081c20e64..a527bfcdf65 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs @@ -66,7 +66,7 @@ public void Test() // count of entities we want: int ourEntities = orders.Count + orders.Sum(o => o.Products.Count); - s.Statistics.EntityCount.Should().Be(ourEntities); + Assert.That(s.Statistics.EntityCount, Is.EqualTo(ourEntities)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs index ea1751a8185..39c8240e7a1 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs @@ -10,10 +10,9 @@ public class Fixture public void IndependentSubclassElementCanExtendSubclass() { Configuration cfg = TestConfigurationHelper.GetDefaultConfiguration(); - cfg.Executing(c => c.AddResource("NHibernate.Test.NHSpecificTest.NH2303.Mappings.hbm.xml", GetType().Assembly)). - NotThrows(); + Assert.That(() => cfg.AddResource("NHibernate.Test.NHSpecificTest.NH2303.Mappings.hbm.xml", GetType().Assembly), Throws.Nothing); cfg.BuildSessionFactory(); - cfg.Executing(c => c.BuildSessionFactory()).NotThrows(); + Assert.That(() => cfg.BuildSessionFactory(), Throws.Nothing); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs index 93762b489be..6e990d1201c 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs @@ -11,7 +11,8 @@ public void WhenLoadWorngMappingThenMessageShouldContaingWrongClassName() { Configuration cfg = TestConfigurationHelper.GetDefaultConfiguration(); cfg.AddResource("NHibernate.Test.NHSpecificTest.NH2313.Mappings.hbm.xml", GetType().Assembly); - cfg.Executing(c=> c.BuildSessionFactory()).Throws().And.ValueOf.Message.Should().Contain("TheOther"); + Assert.That(() => cfg.BuildSessionFactory(), Throws.TypeOf() + .And.Message.ContainsSubstring("TheOther")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs index 404c487c4dc..a90c6f97330 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs @@ -35,7 +35,7 @@ public void QueryShouldWork() var expected = session.CreateQuery("select a.id from Artist a take 3").List(); var actual = session.Query().Take(3).Select(a => a.Id).ToArray(); - actual.Should().Have.SameValuesAs(expected); + Assert.That(actual, Is.EquivalentTo(expected)); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs b/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs index 4b617dd35a7..5bee039f7cb 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs @@ -17,9 +17,9 @@ public Scenario(ISessionFactory factory) using (ITransaction t = s.BeginTransaction()) { var e = new Entity - { - Data = new CompositeData {DataA = new DateTime(2010, 1, 1), DataB = new DateTime(2010, 2, 2)} - }; + { + Data = new CompositeData {DataA = new DateTime(2010, 1, 1), DataB = new DateTime(2010, 2, 2)} + }; s.Save(e); t.Commit(); } @@ -50,7 +50,7 @@ public void ShouldAllowBulkupdateWithCompositeUserType() .SetDateTime("dataA", new DateTime(2010, 3, 3)) .SetDateTime("dataB", new DateTime(2010, 4, 4)); - query.Executing(q => q.ExecuteUpdate()).NotThrows(); + Assert.That(() => query.ExecuteUpdate(), Throws.Nothing); t.Commit(); } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs b/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs index 2068ab341cd..9e6779344c7 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs @@ -24,54 +24,54 @@ protected override void OnSetUp() base.OnSetUp(); var person0 = new Person - { - Name = "Schorsch", - }; + { + Name = "Schorsch", + }; var person1 = new Person - { - Name = "Sepp", - }; + { + Name = "Sepp", + }; var person2 = new Person - { - Name = "Detlef", - }; + { + Name = "Detlef", + }; var forum0 = new Forum - { - Name = "Oof", - Dollars = 1887.00, - }; + { + Name = "Oof", + Dollars = 1887.00, + }; var forum1 = new Forum - { - Name = "Rab", - Dollars = 33.00, - }; + { + Name = "Rab", + Dollars = 33.00, + }; var forum2 = new Forum - { - Name = "Main", - Dollars = 42.42, - }; + { + Name = "Main", + Dollars = 42.42, + }; var group0 = new MemberGroup - { - Name = "Gruppe Bla", - Members = new List(), - Forums = new List(), - }; + { + Name = "Gruppe Bla", + Members = new List(), + Forums = new List(), + }; group0.Members.Add(person0); group0.Forums.Add(forum0); group0.Forums.Add(forum1); var group1 = new MemberGroup - { - Name = "Gruppe Blub", - Members = new List(), - Forums = new List(), - }; + { + Name = "Gruppe Blub", + Members = new List(), + Forums = new List(), + }; group1.Members.Add(person1); group1.Members.Add(person2); group1.Forums.Add(forum2); @@ -106,46 +106,46 @@ public void DetachedCriteriaCorrelatedQueryExplodes() { using (ISession session = OpenSession()) { - DetachedCriteria memberGroupCriteria - = DetachedCriteria - .For() - .CreateAlias("Members", "m") - .CreateAlias("Forums", "f") - .Add(Restrictions.EqProperty("m.Id", "p.Id")) - .SetProjection(Projections.Property("f.Id")) - ; - - var ids = new List(); - ids.Add(person0Id); - ids.Add(person1Id); - - DetachedCriteria forumCriteria - = DetachedCriteria - .For("fff") - .Add(Restrictions.NotEqProperty("Id", "p.Id")) - .Add(Subqueries.PropertyIn("Id", memberGroupCriteria)) - .SetProjection - ( - Projections.Sum("Dollars") - ) - ; - - DetachedCriteria personCriteria - = DetachedCriteria - .For("p") - .Add(Restrictions.InG("Id", ids)) - .SetProjection - ( - Projections - .ProjectionList() - .Add(Projections.Property("Name"), "Name") - .Add(Projections.SubQuery(forumCriteria), "Sum") - ) - .SetResultTransformer(Transformers.AliasToBean(typeof (Bar))) - ; - - ICriteria criteria = personCriteria.GetExecutableCriteria(session); - criteria.Executing(c => c.List()).NotThrows(); + DetachedCriteria memberGroupCriteria + = DetachedCriteria + .For() + .CreateAlias("Members", "m") + .CreateAlias("Forums", "f") + .Add(Restrictions.EqProperty("m.Id", "p.Id")) + .SetProjection(Projections.Property("f.Id")) + ; + + var ids = new List(); + ids.Add(person0Id); + ids.Add(person1Id); + + DetachedCriteria forumCriteria + = DetachedCriteria + .For("fff") + .Add(Restrictions.NotEqProperty("Id", "p.Id")) + .Add(Subqueries.PropertyIn("Id", memberGroupCriteria)) + .SetProjection + ( + Projections.Sum("Dollars") + ) + ; + + DetachedCriteria personCriteria + = DetachedCriteria + .For("p") + .Add(Restrictions.InG("Id", ids)) + .SetProjection + ( + Projections + .ProjectionList() + .Add(Projections.Property("Name"), "Name") + .Add(Projections.SubQuery(forumCriteria), "Sum") + ) + .SetResultTransformer(Transformers.AliasToBean(typeof (Bar))) + ; + + ICriteria criteria = personCriteria.GetExecutableCriteria(session); + Assert.That(() => criteria.List(), Throws.Nothing); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs index c0413962f8e..b6b62de860a 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs @@ -22,7 +22,7 @@ public void WhenSaveInstanceOfConcreteInheritedThenNotThrows() using (var tx = session.BeginTransaction()) { var entity = new ConcreteB(); - session.Executing(s => s.Save(entity)).NotThrows(); + Assert.That(() => session.Save(entity), Throws.Nothing); tx.Commit(); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs index 7f1554bb4fc..5b111094ea5 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs @@ -47,7 +47,7 @@ public void Test() { using (ISession session = OpenSession()) { - session.Executing(s=> s.CreateQuery("from One").List()).NotThrows(); + Assert.That(() => session.CreateQuery("from One").List(), Throws.Nothing); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs index ae52d3f154f..ac9b8850f3c 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs @@ -64,7 +64,7 @@ public void WhenTakeBeforeCountShouldApplyTake() // This is another case where we have to work with subqueries and we have to write a specific query rewriter for Skip/Take instead flat the query in QueryReferenceExpressionFlattener //var actual = session.CreateQuery("select count(s) from Something s where s in (from Something take 3)").UniqueResult(); var actual = session.Query().Take(3).Count(); - actual.Should().Be(3); + Assert.That(actual, Is.EqualTo(3)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs index 17cb3e94b33..d6097150066 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs @@ -21,10 +21,10 @@ public FetchSelectScenario(ISessionFactory factory) using (ITransaction t = s.BeginTransaction()) { var entity = new Derived1 - { - ShortContent = "Short", - LongContent = "LongLongLongLongLong", - }; + { + ShortContent = "Short", + LongContent = "LongLongLongLongLong", + }; s.Save(entity); t.Commit(); } @@ -55,10 +55,10 @@ public FetchJoinScenario(ISessionFactory factory) using (ITransaction t = s.BeginTransaction()) { var entity = new Derived2 - { - ShortContent = "Short", - LongContent = "LongLongLongLongLong", - }; + { + ShortContent = "Short", + LongContent = "LongLongLongLongLong", + }; s.Save(entity); t.Commit(); } @@ -127,13 +127,13 @@ public void ShouldNotQueryLazyProperties_FetchJoin() using (var ls = new SqlLogSpy()) { items = s.CreateQuery("from Base2").List(); - ls.GetWholeLog().Should().Not.Contain("LongContent"); + Assert.That(ls.GetWholeLog(), Is.Not.StringContaining("LongContent")); } var item = (Derived2) items[0]; - NHibernateUtil.IsPropertyInitialized(item, "LongContent").Should().Be.False(); + Assert.That(NHibernateUtil.IsPropertyInitialized(item, "LongContent"), Is.False); string lc = item.LongContent; - lc.Should().Not.Be.NullOrEmpty(); - NHibernateUtil.IsPropertyInitialized(item, "LongContent").Should().Be.True(); + Assert.That(lc, Is.Not.Null.And.Not.Empty); + Assert.That(NHibernateUtil.IsPropertyInitialized(item, "LongContent"), Is.True); } } } @@ -152,13 +152,13 @@ public void ShouldNotQueryLazyProperties_FetchSelect() using(var ls = new SqlLogSpy()) { items = s.CreateQuery("from Base1").List(); - ls.GetWholeLog().Should().Not.Contain("LongContent"); + Assert.That(ls.GetWholeLog(), Is.Not.StringContaining("LongContent")); } var item = (Derived1) items[0]; - NHibernateUtil.IsPropertyInitialized(item, "LongContent").Should().Be.False(); + Assert.That(NHibernateUtil.IsPropertyInitialized(item, "LongContent"), Is.False); string lc = item.LongContent; - lc.Should().Not.Be.NullOrEmpty(); - NHibernateUtil.IsPropertyInitialized(item, "LongContent").Should().Be.True(); + Assert.That(lc, Is.Not.Null.And.Not.Empty); + Assert.That(NHibernateUtil.IsPropertyInitialized(item, "LongContent"), Is.True); } } } @@ -177,13 +177,13 @@ public void ShouldNotQueryLazyProperties_Joinedsubclass() using (var ls = new SqlLogSpy()) { items = s.CreateQuery("from Base3").List(); - ls.GetWholeLog().Should().Not.Contain("LongContent"); + Assert.That(ls.GetWholeLog(), Is.Not.StringContaining("LongContent")); } var item = (Derived3)items[0]; - NHibernateUtil.IsPropertyInitialized(item, "LongContent").Should().Be.False(); + Assert.That(NHibernateUtil.IsPropertyInitialized(item, "LongContent"), Is.False); string lc = item.LongContent; - lc.Should().Not.Be.NullOrEmpty(); - NHibernateUtil.IsPropertyInitialized(item, "LongContent").Should().Be.True(); + Assert.That(lc, Is.Not.Null.And.Not.Empty); + Assert.That(NHibernateUtil.IsPropertyInitialized(item, "LongContent"), Is.True); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs index 9c8565b8efd..0d075ec4f0d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs @@ -58,22 +58,22 @@ public MapScenario(ISessionFactory factory) { var entity = new Base(); entity.NamedChildren = new Dictionary - { - {"Child1", new Child()}, - {"NullChild", null}, - }; + { + {"Child1", new Child()}, + {"NullChild", null}, + }; - var child1 = new AnotherChild { Name = "AnotherChild1" }; - var child2 = new AnotherChild { Name = "AnotherChild2" }; + var child1 = new AnotherChild { Name = "AnotherChild1" }; + var child2 = new AnotherChild { Name = "AnotherChild2" }; - s.Save(child1); - s.Save(child2); + s.Save(child1); + s.Save(child2); - entity.OneToManyNamedChildren = new Dictionary - { - {"AnotherChild1" , child1}, - {"AnotherChild2" , child2} - }; + entity.OneToManyNamedChildren = new Dictionary + { + {"AnotherChild1" , child1}, + {"AnotherChild2" , child2} + }; s.Save(entity); t.Commit(); @@ -109,9 +109,9 @@ public void List_InvalidIndex() // accessing an invalid index should throw an exception var entity = s.CreateQuery("from Base").UniqueResult(); // null collection members don't seem to work, at least for lazy="extra" collections - entity.Children.Count.Should().Be.EqualTo(2); - NHibernateUtil.IsInitialized(entity.Children).Should().Be.False(); - Executing.This(() => { Child ignored = entity.Children[2]; }).Should().Throw(); + Assert.That(entity.Children.Count, Is.EqualTo(2)); + Assert.That(NHibernateUtil.IsInitialized(entity.Children), Is.False); + Assert.That(() => { Child ignored = entity.Children[2]; }, Throws.TypeOf()); } } } @@ -130,14 +130,14 @@ public void List_NullChild() // accessing an invalid index should throw an exception var entity = s.CreateQuery("from Base").UniqueResult(); // null collection members don't seem to work, at least for lazy="extra" collections - entity.Children.Count.Should().Not.Be.EqualTo(0); + Assert.That(entity.Children.Count, Is.Not.EqualTo(0)); //entity.Children.Count.Should().Be.EqualTo(2); - NHibernateUtil.IsInitialized(entity.Children).Should().Be.False(); + Assert.That(NHibernateUtil.IsInitialized(entity.Children), Is.False); var sigil = new Child(); Child child = sigil; - Executing.This(() => { child = entity.Children[0]; }).Should().NotThrow(); - child.Should().Not.Be.EqualTo(sigil); - child.Should().Be.Null(); + Assert.That(() => { child = entity.Children[0]; }, Throws.Nothing); + Assert.That(child, Is.Not.EqualTo(sigil)); + Assert.That(child, Is.Null); } } } @@ -155,12 +155,12 @@ public void Map_Item() // accessing an invalid key should fail or throw an exception, depending on method var entity = s.CreateQuery("from Base").UniqueResult(); // null collection members don't seem to work, at least for lazy="extra" collections - entity.NamedChildren.Count.Should().Be.EqualTo(2); - entity.OneToManyNamedChildren.Count.Should().Be.EqualTo(2); - NHibernateUtil.IsInitialized(entity.NamedChildren).Should().Be.False(); - Executing.This(() => { Child ignored = entity.NamedChildren["InvalidKey"]; }).Should().Throw(); - Executing.This(() => { AnotherChild ignored = entity.OneToManyNamedChildren["InvalidKey"]; }).Should().Throw(); - NHibernateUtil.IsInitialized(entity.NamedChildren).Should().Be.False(); + Assert.That(entity.NamedChildren.Count, Is.EqualTo(2)); + Assert.That(entity.OneToManyNamedChildren.Count, Is.EqualTo(2)); + Assert.That(NHibernateUtil.IsInitialized(entity.NamedChildren), Is.False); + Assert.That(() => { Child ignored = entity.NamedChildren["InvalidKey"]; }, Throws.TypeOf()); + Assert.That(() => { AnotherChild ignored = entity.OneToManyNamedChildren["InvalidKey"]; }, Throws.TypeOf()); + Assert.That(NHibernateUtil.IsInitialized(entity.NamedChildren), Is.False); } } } @@ -178,15 +178,15 @@ public void Map_TryGetValue_Invalid() // accessing an invalid key should fail or throw an exception, depending on method var entity = s.CreateQuery("from Base").UniqueResult(); // null collection members don't seem to work, at least for lazy="extra" collections - entity.NamedChildren.Count.Should().Be.EqualTo(2); - NHibernateUtil.IsInitialized(entity.NamedChildren).Should().Be.False(); + Assert.That(entity.NamedChildren.Count, Is.EqualTo(2)); + Assert.That(NHibernateUtil.IsInitialized(entity.NamedChildren), Is.False); Child child; - entity.NamedChildren.TryGetValue("InvalidKey", out child).Should().Be.False(); - child.Should().Be.Null(); - AnotherChild anotherChild; - entity.OneToManyNamedChildren.TryGetValue("InvalidKey", out anotherChild).Should().Be.False(); - child.Should().Be.Null(); - NHibernateUtil.IsInitialized(entity.NamedChildren).Should().Be.False(); + Assert.That(entity.NamedChildren.TryGetValue("InvalidKey", out child), Is.False); + Assert.That(child, Is.Null); + AnotherChild anotherChild; + Assert.That(entity.OneToManyNamedChildren.TryGetValue("InvalidKey", out anotherChild), Is.False); + Assert.That(child, Is.Null); + Assert.That(NHibernateUtil.IsInitialized(entity.NamedChildren), Is.False); } } } @@ -203,15 +203,15 @@ public void Map_NullChild() { var entity = s.CreateQuery("from Base").UniqueResult(); // null collection members don't seem to work, at least for lazy="extra" collections - entity.NamedChildren.Count.Should().Not.Be.EqualTo(0); + Assert.That(entity.NamedChildren.Count, Is.Not.EqualTo(0)); //entity.NamedChildren.Count.Should().Be.EqualTo(2); - NHibernateUtil.IsInitialized(entity.NamedChildren).Should().Be.False(); + Assert.That(NHibernateUtil.IsInitialized(entity.NamedChildren), Is.False); // null valued child shouldn't cause errors var sigil = new Child(); Child child = sigil; Assert.DoesNotThrow(() => { child = entity.NamedChildren["NullChild"]; }); - child.Should().Not.Be.EqualTo(sigil); - child.Should().Be.Null(); + Assert.That(child, Is.Not.EqualTo(sigil)); + Assert.That(child, Is.Null); } } } @@ -228,14 +228,13 @@ public void Map_NullChild_TryGetValue() { var entity = s.CreateQuery("from Base").UniqueResult(); // null collection members don't seem to work, at least for lazy="extra" collections - entity.NamedChildren.Count.Should().Not.Be.EqualTo(0); + Assert.That(entity.NamedChildren.Count, Is.Not.EqualTo(0)); //entity.NamedChildren.Count.Should().Be.EqualTo(2); // null valued child shouldn't cause errors - NHibernateUtil.IsInitialized(entity.NamedChildren).Should().Be.False(); + Assert.That(NHibernateUtil.IsInitialized(entity.NamedChildren), Is.False); Child child; - entity.NamedChildren.TryGetValue("NullChild", out child) - .Should().Be.True(); - child.Should().Be.Null(); + Assert.That(entity.NamedChildren.TryGetValue("NullChild", out child), Is.True); + Assert.That(child, Is.Null); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs index 7316e3ba316..8879292bd17 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs @@ -32,7 +32,7 @@ public void BadSqlFromJoinLogicError() using (ITransaction t = s.BeginTransaction()) { var q = s.CreateQuery("from Base"); - q.Executing(query => query.List()).NotThrows(); + Assert.That(() => q.List(), Throws.Nothing); } } finally diff --git a/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs index ad80c15d9a3..34a805042a6 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs @@ -57,7 +57,7 @@ public void InheritanceSameColumnName() // this line crashes because it tries to find the base class by // the wrong column name. BaseClass another; - Executing.This(() => another = referencing.SubClass.Another).Should().NotThrow(); + Assert.That(() => another = referencing.SubClass.Another, Throws.Nothing); transaction.Commit(); } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs index 886a71fd2a8..9d16829d2af 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs @@ -60,13 +60,15 @@ public void WhenQueryConstantEqualToMemberThenDoesNotUseTheCaseConstructor() { using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => x.Alive == false).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(0); + var list = session.Query().Where(x => x.Alive == false).ToList(); + Assert.That(list, Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(0)); } using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => true == x.Alive).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(0); + var list = session.Query().Where(x => true == x.Alive).ToList(); + Assert.That(list, Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(0)); } } } @@ -81,13 +83,13 @@ public void WhenQueryConstantNotEqualToMemberThenDoesNotUseTheCaseConstructor() { using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => x.Alive != false).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(0); + Assert.That(session.Query().Where(x => x.Alive != false).ToList(), Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(0)); } using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => true != x.Alive).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(0); + Assert.That(session.Query().Where(x => true != x.Alive).ToList(), Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(0)); } } } @@ -103,7 +105,7 @@ public void WhenQueryComplexEqualToComplexThentUseTheCaseConstructorForBoth() using (var sqls = new SqlLogSpy()) { session.Query().Where(x => (5 > x.Something) == (x.Something < 10)).ToList(); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(2); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(2)); } } } @@ -118,13 +120,13 @@ public void WhenQueryConstantEqualToNullableMemberThenUseTheCaseConstructorForMe { using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => x.MayBeAlive == false).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(1); + Assert.That(session.Query().Where(x => x.MayBeAlive == false).ToList(), Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(1)); } using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => true == x.MayBeAlive).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(1); + Assert.That(session.Query().Where(x => true == x.MayBeAlive).ToList(), Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(1)); } } } @@ -140,12 +142,12 @@ public void WhenQueryConstantEqualToNullableMemberValueThenDoesNotUseTheCaseCons using (var sqls = new SqlLogSpy()) { session.Query().Where(x => x.MayBeAlive.Value == false).ToList(); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(1); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(1)); } using (var sqls = new SqlLogSpy()) { session.Query().Where(x => true == x.MayBeAlive.Value).ToList(); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(1); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(1)); } } } @@ -160,13 +162,13 @@ public void WhenQueryConstantNotEqualToNullableMemberThenUseTheCaseConstructorFo { using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => x.MayBeAlive != false).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(1); + Assert.That(session.Query().Where(x => x.MayBeAlive != false).ToList(), Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(1)); } using (var sqls = new SqlLogSpy()) { - session.Query().Where(x => true != x.MayBeAlive).Should().Have.Count.EqualTo(1); - caseClause.Matches(sqls.GetWholeLog()).Count.Should().Be(1); + Assert.That(session.Query().Where(x => true != x.MayBeAlive).ToList(), Has.Count.EqualTo(1)); + Assert.That(caseClause.Matches(sqls.GetWholeLog()).Count, Is.EqualTo(1)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs index d1ec4222242..6bcab8805c9 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs @@ -47,7 +47,7 @@ public void WhenTryToGetHighThenExceptionShouldContainWhereClause() using (var tx = session.BeginTransaction()) { var customer = new Customer { Name = "Mengano" }; - session.Executing(s => s.Persist(customer)).Throws().And.ValueOf.Message.Should().Contain("Entity = 'Customer'"); + Assert.That(() => session.Persist(customer), Throws.Exception.Message.ContainsSubstring("Entity = 'Customer'")); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs index 82c001e308e..9c940c517d8 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs @@ -52,7 +52,7 @@ public void WhenUseLoadThenCanUsePersistToModify() var task = s.Load(scenario.TaskId); task.Description = "Could be something nice"; s.Persist(task); - s.Executing(session => session.Persist(task)).NotThrows(); + Assert.That(() => s.Persist(task), Throws.Nothing); tx.Commit(); } } @@ -68,7 +68,7 @@ public void WhenUseGetThenCanUsePersistToModify() { var task = s.Get(scenario.TaskId); task.Description = "Could be something nice"; - s.Executing(session => session.Persist(task)).NotThrows(); + Assert.That(() => s.Persist(task), Throws.Nothing); tx.Commit(); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs b/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs index f393eb36bc0..55ddbb5c80d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs @@ -28,10 +28,10 @@ private HbmMapping GetMappings() var mapper = new ModelMapper(); mapper.Class(rm=> rm.Id(x=> x.Id)); mapper.Class(rm => - { - rm.Id(x => x.Id); - rm.Bag(x => x.Relateds, am => am.Persister(), rel=> rel.OneToMany()); - }); + { + rm.Id(x => x.Id); + rm.Bag(x => x.Relateds, am => am.Persister(), rel => rel.OneToMany()); + }); var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); return mappings; } @@ -41,7 +41,7 @@ public void BuildingSessionFactoryShouldNotThrows() { Configuration cfg = TestConfigurationHelper.GetDefaultConfiguration(); cfg.AddMapping(GetMappings()); - cfg.Executing(c=>c.BuildSessionFactory()).NotThrows(); + Assert.That(() => cfg.BuildSessionFactory(), Throws.Nothing); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs index ef41f6ae8c2..ca58c17d961 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs @@ -18,21 +18,21 @@ public void WhenMapHiloToDifferentSchemaThanClassThenIdHasTheMappedSchema() { var mapper = new ModelMapper(); mapper.Class(cm => - { + { cm.Schema("aSchema"); cm.Id(x => x.Id, idm => idm.Generator(Generators.HighLow, gm => gm.Params(new - { - table = "hilosequences", - schema="gSchema" - }))); - }); + { + table = "hilosequences", + schema="gSchema" + }))); + }); var conf = new Configuration(); conf.DataBaseIntegration(x=> x.Dialect()); conf.AddDeserializedMapping(mapper.CompileMappingForAllExplicitlyAddedEntities(), "wholeDomain"); var mappings = conf.CreateMappings(Dialect.Dialect.GetDialect()); var pc = mappings.GetClass(typeof(MyClass).FullName); - ((SimpleValue)pc.Identifier).IdentifierGeneratorProperties["schema"].Should().Be("gSchema"); + Assert.That(((SimpleValue)pc.Identifier).IdentifierGeneratorProperties["schema"], Is.EqualTo("gSchema")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs index ad5495298b0..61db6840e98 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs @@ -15,8 +15,8 @@ public void WhenPersisterNotFoundShouldThrowAMoreExplicitException() { using (var s = OpenSession()) { - var exeption = s.Executing(x=> x.Get(1)).Throws().Exception; - exeption.Message.ToLowerInvariant().Should().Contain("possible cause"); + var exeption = Assert.Throws(() => s.Get(1)); + Assert.That(exeption.Message.ToLowerInvariant(), Is.StringContaining("possible cause")); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs index 4fd1fb3a59e..c339af0c314 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs @@ -17,28 +17,24 @@ public ListScenario(ISessionFactory factory) { this.factory = factory; using (ISession s = factory.OpenSession()) + using (ITransaction t = s.BeginTransaction()) { - using (ITransaction t = s.BeginTransaction()) - { - var entity = new Parent(); - var child = new Child(); - entity.ListChildren = new List {null, child, null}; - s.Save(entity); - t.Commit(); - } + var entity = new Parent(); + var child = new Child(); + entity.ListChildren = new List {null, child, null}; + s.Save(entity); + t.Commit(); } } public void Dispose() { using (ISession s = factory.OpenSession()) + using (ITransaction t = s.BeginTransaction()) { - using (ITransaction t = s.BeginTransaction()) - { - s.Delete("from Parent"); - s.Delete("from Child"); - t.Commit(); - } + s.Delete("from Parent"); + s.Delete("from Child"); + t.Commit(); } } } @@ -51,32 +47,28 @@ public MapScenario(ISessionFactory factory) { this.factory = factory; using (ISession s = factory.OpenSession()) + using (ITransaction t = s.BeginTransaction()) { - using (ITransaction t = s.BeginTransaction()) + var entity = new Parent(); + entity.MapChildren = new Dictionary { - var entity = new Parent(); - entity.MapChildren = new Dictionary - { - {0, null}, - {1, new Child()}, - {2, null}, - }; - s.Save(entity); - t.Commit(); - } + {0, null}, + {1, new Child()}, + {2, null}, + }; + s.Save(entity); + t.Commit(); } } public void Dispose() { using (ISession s = factory.OpenSession()) + using (ITransaction t = s.BeginTransaction()) { - using (ITransaction t = s.BeginTransaction()) - { - s.Delete("from Parent"); - s.Delete("from Child"); - t.Commit(); - } + s.Delete("from Parent"); + s.Delete("from Child"); + t.Commit(); } } } @@ -92,20 +84,18 @@ public void List() // the effective ammount store will be 1(one) because ther is only one valid element but whem we initialize the collection // it will have 2 elements (the first with null) using (ISession s = OpenSession()) + using (ITransaction t = s.BeginTransaction()) { - using (ITransaction t = s.BeginTransaction()) - { - var entity = s.CreateQuery("from Parent").UniqueResult(); - IList members = s.GetNamedQuery("ListMemberSpy") - .SetParameter("parentid", entity.Id) - .List(); - int lazyCount = entity.ListChildren.Count; - NHibernateUtil.IsInitialized(entity.ListChildren).Should().Be.False(); - NHibernateUtil.Initialize(entity.ListChildren); - int initCount = entity.ListChildren.Count; - initCount.Should().Be.EqualTo(lazyCount); - members.Count.Should("because only the valid element should be persisted.").Be(1); - } + var entity = s.CreateQuery("from Parent").UniqueResult(); + IList members = s.GetNamedQuery("ListMemberSpy") + .SetParameter("parentid", entity.Id) + .List(); + int lazyCount = entity.ListChildren.Count; + Assert.That(NHibernateUtil.IsInitialized(entity.ListChildren), Is.False); + NHibernateUtil.Initialize(entity.ListChildren); + int initCount = entity.ListChildren.Count; + Assert.That(initCount, Is.EqualTo(lazyCount)); + Assert.That(members, Has.Count.EqualTo(1), "because only the valid element should be persisted."); } } } @@ -114,23 +104,21 @@ public void List() public void Map() { using (new MapScenario(Sfi)) + using (ISession s = OpenSession()) { - using (ISession s = OpenSession()) + // for the case of what really matter is the key, then NH should count the KEY and not the elements. + using (ITransaction t = s.BeginTransaction()) { - // for the case of what really matter is the key, then NH should count the KEY and not the elements. - using (ITransaction t = s.BeginTransaction()) - { - var entity = s.CreateQuery("from Parent").UniqueResult(); - IList members = s.GetNamedQuery("MapMemberSpy") - .SetParameter("parentid", entity.Id) - .List(); - int lazyCount = entity.MapChildren.Count; - NHibernateUtil.IsInitialized(entity.MapChildren).Should().Be.False(); - NHibernateUtil.Initialize(entity.MapChildren); - int initCount = entity.MapChildren.Count; - initCount.Should().Be.EqualTo(lazyCount); - members.Count.Should("because all elements with a valid key should be persisted.").Be(3); - } + var entity = s.CreateQuery("from Parent").UniqueResult(); + IList members = s.GetNamedQuery("MapMemberSpy") + .SetParameter("parentid", entity.Id) + .List(); + int lazyCount = entity.MapChildren.Count; + Assert.That(NHibernateUtil.IsInitialized(entity.MapChildren), Is.False); + NHibernateUtil.Initialize(entity.MapChildren); + int initCount = entity.MapChildren.Count; + Assert.That(initCount, Is.EqualTo(lazyCount)); + Assert.That(members, Has.Count.EqualTo(3), "because all elements with a valid key should be persisted."); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs index 371f642a39b..c881b651cf1 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs @@ -33,11 +33,11 @@ protected override HbmMapping GetMappings() }, c => c.OneToMany()); }); mapper.Class(cm => - { + { cm.Id(x => x.Id, m => { }); cm.Property(x => x.Date); cm.ManyToOne(x => x.Customer, map => map.Column("CUSTOMERID")); - }); + }); return mapper.CompileMappingForAllExplicitlyAddedEntities(); } @@ -94,10 +94,10 @@ public void GettingCustomerDoesNotThrow() using (var session = OpenSession()) { Customer customer = null; - Executing.This(()=> customer = session.Get(scenario.CustomerId)).Should().NotThrow(); + Assert.That(() => customer = session.Get(scenario.CustomerId), Throws.Nothing); // An entity defined with lazy=false can't have lazy properties (as reported by the WARNING; see EntityMetamodel class) - NHibernateUtil.IsInitialized(customer.Address).Should().Be.True(); - customer.Address.Should().Be("Bah?!??"); + Assert.That(NHibernateUtil.IsInitialized(customer.Address), Is.True); + Assert.That(customer.Address, Is.EqualTo("Bah?!??")); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs b/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs index 99b70371ebb..f6617a943fa 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs @@ -7,34 +7,34 @@ namespace NHibernate.Test.NHSpecificTest.NH2660And2661 { - [TestFixture] - public class Test : BugTestCase - { - protected override void OnSetUp() - { - base.OnSetUp(); - using (ISession session = OpenSession()) - { - DomainClass entity = new DomainClass { Id = 1, Data = DateTime.Parse("10:00") }; - session.Save(entity); - session.Flush(); - } - } + [TestFixture] + public class Test : BugTestCase + { + protected override void OnSetUp() + { + base.OnSetUp(); + using (ISession session = OpenSession()) + { + DomainClass entity = new DomainClass { Id = 1, Data = DateTime.Parse("10:00") }; + session.Save(entity); + session.Flush(); + } + } - protected override void OnTearDown() - { - base.OnTearDown(); - using (ISession session = OpenSession()) - { + protected override void OnTearDown() + { + base.OnTearDown(); + using (ISession session = OpenSession()) + { session.CreateQuery("delete from DomainClass").ExecuteUpdate(); - session.Flush(); - } - } + session.Flush(); + } + } - protected override bool AppliesTo(Dialect.Dialect dialect) - { - return dialect is MsSql2008Dialect; - } + protected override bool AppliesTo(Dialect.Dialect dialect) + { + return dialect is MsSql2008Dialect; + } protected override void Configure(Configuration configuration) { @@ -43,17 +43,17 @@ protected override void Configure(Configuration configuration) configuration.DataBaseIntegration(x=> x.Driver()); } - [Test] - public void ShouldBeAbleToQueryEntity() - { - using (ISession session = OpenSession()) - { - var query = - session.CreateQuery( - @"from DomainClass entity where Data = :data"); - query.SetParameter("data", DateTime.Parse("10:00"), NHibernateUtil.Time); - query.Executing(x=> x.List()).NotThrows(); - } - } - } + [Test] + public void ShouldBeAbleToQueryEntity() + { + using (ISession session = OpenSession()) + { + var query = + session.CreateQuery( + @"from DomainClass entity where Data = :data"); + query.SetParameter("data", DateTime.Parse("10:00"), NHibernateUtil.Time); + Assert.That(() => query.List(), Throws.Nothing); + } + } + } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs index 4432a8e2e25..b115446742f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs @@ -8,60 +8,57 @@ namespace NHibernate.Test.NHSpecificTest.NH2662 { - public class Fixture : BugTestCase - { - [Test] - public void WhenCastAliasInQueryOverThenDoNotThrow() - { - using (var session = OpenSession()) + public class Fixture : BugTestCase + { + [Test] + public void WhenCastAliasInQueryOverThenDoNotThrow() + { + using (var session = OpenSession()) using (var tx = session.BeginTransaction()) - { - var customer = new Customer - { - Order = new PizzaOrder { OrderDate = DateTime.Now, PizzaName = "Margarita" } - }; + { + var customer = new Customer + { + Order = new PizzaOrder { OrderDate = DateTime.Now, PizzaName = "Margarita" } + }; - var customer2 = new Customer - { - Order = new Order { OrderDate = DateTime.Now.AddDays(1) } - }; + var customer2 = new Customer + { + Order = new Order { OrderDate = DateTime.Now.AddDays(1) } + }; - session.Save(customer); - session.Save(customer2); - session.Flush(); + session.Save(customer); + session.Save(customer2); + session.Flush(); - Executing.This( - () => - { - var temp = session.Query().Select( - c => new {c.Id, c.Order.OrderDate, ((PizzaOrder)c.Order).PizzaName }) - .ToArray(); + Assert.That(() => + { + var temp = session.Query().Select( + c => new {c.Id, c.Order.OrderDate, ((PizzaOrder)c.Order).PizzaName }) + .ToArray(); - foreach (var item in temp) { Trace.WriteLine(item.PizzaName);} - }) - .Should().NotThrow(); + foreach (var item in temp) { Trace.WriteLine(item.PizzaName);} + }, Throws.Nothing); - Executing.This( - () => - { - Order orderAlias = null; + Assert.That(() => + { + Order orderAlias = null; - var results = - session.QueryOver() - .Left.JoinAlias(o => o.Order, () => orderAlias) - .OrderBy(() => orderAlias.OrderDate).Asc - .SelectList(list => - list - .Select(o => o.Id) - .Select(() => orderAlias.OrderDate) - .Select(() => ((PizzaOrder) orderAlias).PizzaName)) - .List(); + var results = + session.QueryOver() + .Left.JoinAlias(o => o.Order, () => orderAlias) + .OrderBy(() => orderAlias.OrderDate).Asc + .SelectList(list => + list + .Select(o => o.Id) + .Select(() => orderAlias.OrderDate) + .Select(() => ((PizzaOrder) orderAlias).PizzaName)) + .List(); - Assert.That(results.Count, Is.EqualTo(2)); - Assert.That(results[0][2], Is.EqualTo("Margarita")); + Assert.That(results.Count, Is.EqualTo(2)); + Assert.That(results[0][2], Is.EqualTo("Margarita")); - }).Should().NotThrow(); - } - } - } + }, Throws.Nothing); + } + } + } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs index 5e92311db1c..42d6b1ee641 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs @@ -25,7 +25,7 @@ public void WhenUseCountWithOrderThenCutTheOrder() using (session.BeginTransaction()) { var baseQuery = from cat in session.Query() orderby cat.BirthDate select cat; - Executing.This(() => baseQuery.Count()).Should().NotThrow(); + Assert.That(() => baseQuery.Count(), Throws.Nothing); session.Transaction.Commit(); } } @@ -37,7 +37,7 @@ public void WhenUseLongCountWithOrderThenCutTheOrder() using (session.BeginTransaction()) { var baseQuery = from cat in session.Query() orderby cat.BirthDate select cat; - Executing.This(() => baseQuery.LongCount()).Should().NotThrow(); + Assert.That(() => baseQuery.LongCount(), Throws.Nothing); session.Transaction.Commit(); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs b/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs index d86cc87d473..1e2ada06f74 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs @@ -65,9 +65,9 @@ protected override void OnTearDown() //} using (ISession session = this.OpenSession()) { - string hql = "from ArticleGroupItem"; - session.Delete(hql); - session.Flush(); + string hql = "from ArticleGroupItem"; + session.Delete(hql); + session.Flush(); } } @@ -90,7 +90,7 @@ public void Can_GetListOfArticleGroups() using (ISession session = this.OpenSession()) { result = session.CreateQuery(HQL).List(); } - result.Count.Should().Be.GreaterThan(0); + Assert.That(result.Count, Is.GreaterThan(0)); } [Test] @@ -113,7 +113,7 @@ public void Can_GetListOfArticles() using (ISession session = this.OpenSession()) { result = session.CreateQuery(HQL).List(); } - result.Count.Should().Be.GreaterThan(0); + Assert.That(result.Count, Is.GreaterThan(0)); } @@ -142,7 +142,7 @@ public void Can_SetArticleFavoriteWithHQL_NamedParam() using (ISession session = this.OpenSession()) { result = session.CreateQuery(HQL).List(); } - result.Count.Should().Be.GreaterThan(0); + Assert.That(result.Count, Is.GreaterThan(0)); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs b/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs index bd12cbdbb45..12d632372cd 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs @@ -25,7 +25,7 @@ public void Fetch_OnComponent_ShouldNotThrow() { using (ISession s = OpenSession()) { - Executing.This(() => GetAndFetch("hello", s)).Should().NotThrow(); + Assert.That(() => GetAndFetch("hello", s), Throws.Nothing); } } @@ -36,8 +36,7 @@ public void HqlQueryWithFetch_WhenDerivedClassesUseComponentAndManyToOne_DoesNot { using (var log = new SqlLogSpy()) { - Executing.This(() => s.CreateQuery("from ItemWithComponentSubItem i left join fetch i.SubItem").List() - ).Should().NotThrow(); + Assert.That(() => s.CreateQuery("from ItemWithComponentSubItem i left join fetch i.SubItem").List(), Throws.Nothing); } } } @@ -49,8 +48,7 @@ public void HqlQueryWithFetch_WhenDerivedClassesUseComponentAndEagerFetchManyToO { using (var log = new SqlLogSpy()) { - Executing.This(() => s.CreateQuery("from ItemWithComponentSubItem i left join fetch i.SubItem.Details").List() - ).Should().NotThrow(); + Assert.That(() => s.CreateQuery("from ItemWithComponentSubItem i left join fetch i.SubItem.Details").List(), Throws.Nothing); } } } @@ -62,15 +60,13 @@ public void LinqQueryWithFetch_WhenDerivedClassesUseComponentAndManyToOne_DoesNo { using (var log = new SqlLogSpy()) { - Executing.This(() => s.Query() - .Fetch(p => p.SubItem).ToList() - ).Should().NotThrow(); + Assert.That(() => s.Query() + .Fetch(p => p.SubItem).ToList(), Throws.Nothing); // fetching second level properties should work too - Executing.This(() => s.Query() - .Fetch(p => p.SubItem).ThenFetch(p => p.Details).ToList() - ).Should().NotThrow(); + Assert.That(() => s.Query() + .Fetch(p => p.SubItem).ThenFetch(p => p.Details).ToList(), Throws.Nothing); } } } @@ -82,7 +78,7 @@ public void LinqQueryWithFetch_WhenDerivedClassesUseComponentAndEagerFetchManyTo { using (var log = new SqlLogSpy()) { - Executing.This(() => s.Query().Fetch(p => p.SubItem.Details).ToList()).Should().NotThrow(); + Assert.That(() => s.Query().Fetch(p => p.SubItem.Details).ToList(), Throws.Nothing); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs index cb4ac96cf41..367acc96595 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs @@ -25,7 +25,7 @@ public void TestQuery() session.EnableFilter("nameFilter").SetParameter("name", "Another child"); - crit.Executing(c=> c.List()).NotThrows(); + Assert.That(() => crit.List(), Throws.Nothing); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs index ea6c6e20404..69c15b1715f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs @@ -17,7 +17,7 @@ public void WhenMultipleConfigurationUseSameMappingsThenConstraintsHasSameNames( var fkNamesForMappings1 = mappings1.IterateTables.SelectMany(t => t.ForeignKeyIterator).Select(fk => fk.Name).ToArray(); var fkNamesForMappings2 = mappings2.IterateTables.SelectMany(t => t.ForeignKeyIterator).Select(fk => fk.Name).ToArray(); - fkNamesForMappings1.Should().Have.SameValuesAs(fkNamesForMappings2); + Assert.That(fkNamesForMappings1, Is.EquivalentTo(fkNamesForMappings2)); } private Mappings GetMappings() diff --git a/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs index 1798cff5c76..76fc707e44e 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs @@ -20,8 +20,8 @@ public void WhenPersistShouldNotFetchUninitializedCollection() using (ITransaction tx = session.BeginTransaction()) { var company = session.Get(companyId); - company.Addresses.Count().Should().Be.EqualTo(1); - company.RemoveAddress(company.Addresses.First()).Should().Be.EqualTo(true); + Assert.That(company.Addresses.Count(), Is.EqualTo(1)); + Assert.That(company.RemoveAddress(company.Addresses.First()), Is.EqualTo(true)); //now this company will be saved and deleting the address. //BUT it should not try to load the BanckAccound collection! @@ -30,7 +30,7 @@ public void WhenPersistShouldNotFetchUninitializedCollection() } } var wholeMessage = sl.GetWholeLog(); - wholeMessage.Should().Not.Contain("BankAccount"); + Assert.That(wholeMessage, Is.Not.StringContaining("BankAccount")); } Cleanup(companyId); diff --git a/src/NHibernate.Test/NHSpecificTest/NH2852/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2852/Fixture.cs index 814ffc4c012..9ab184192f2 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2852/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2852/Fixture.cs @@ -57,8 +57,8 @@ public void ThenFetchCanExecute() session.Close(); - Assert.True(NHibernateUtil.IsInitialized(results[0].Address)); - Assert.True(NHibernateUtil.IsInitialized(results[0].Address.City)); + Assert.That(NHibernateUtil.IsInitialized(results[0].Address), Is.True); + Assert.That(NHibernateUtil.IsInitialized(results[0].Address.City), Is.True); } } @@ -76,8 +76,8 @@ public void AlsoFails() session.Close(); - Assert.True(NHibernateUtil.IsInitialized(results[0].Parent)); - Assert.True(NHibernateUtil.IsInitialized(results[0].Parent.Parent)); + Assert.That(NHibernateUtil.IsInitialized(results[0].Parent), Is.True); + Assert.That(NHibernateUtil.IsInitialized(results[0].Parent.Parent), Is.True); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs index 01f5ffbd065..474e410eaae 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs @@ -45,7 +45,7 @@ public void SpecifiedForeignKeyNameInByCodeMappingIsUsedInGeneratedSchema() cfg.AddMapping(mapper.CompileMappingForAllExplicitlyAddedEntities()); new SchemaExport(cfg).Execute(s => script.AppendLine(s), false, false); - script.ToString().Should().Contain(string.Format("constraint {0}", ForeignKeyName)); + Assert.That(script.ToString(), Is.StringContaining(string.Format("constraint {0}", ForeignKeyName))); } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH2898/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2898/Fixture.cs index d4e56788325..8f448b5c75e 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2898/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2898/Fixture.cs @@ -49,7 +49,7 @@ public void UnfetchedLazyPropertyEquality() var first = new UnfetchedLazyProperty(); var second = new UnfetchedLazyProperty(); - Assert.True(Equals(first, second)); + Assert.That(Equals(first, second), Is.True); } [Test] @@ -58,7 +58,7 @@ public void UnfetchedLazyPropertyIsNotEqualToUnknownBackrefProperty() var first = new UnfetchedLazyProperty(); var second = new UnknownBackrefProperty(); - Assert.False(Equals(first, second)); + Assert.That(Equals(first, second), Is.False); } [Test] diff --git a/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs index be5115211ac..16ebf840186 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs @@ -45,13 +45,13 @@ public void ShouldNotEagerLoadKeyManyToOneWhenOverridingGetHashCode() var compId = (IDictionary)loan["CompId"]; var group = compId["Group"]; - group.Should().Not.Be.Null(); + Assert.That(@group, Is.Not.Null); isInitialized = NHibernateUtil.IsInitialized(group); tx.Commit(); } - isInitialized.Should().Be.False(); + Assert.That(isInitialized, Is.False); } protected override void OnTearDown() diff --git a/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs index efde3d288ad..65d9b862510 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs @@ -85,7 +85,7 @@ public void ShouldNotWaitForLock() thread.Join(); - watch.ElapsedMilliseconds.Should().Be.LessThan(3000); + Assert.That(watch.ElapsedMilliseconds, Is.LessThan(3000)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs index 7a66d3b2a20..ec6aed09198 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs @@ -21,7 +21,7 @@ public void ShouldGetIdentifierSchemaFromClassElement() var mappings = conf.CreateMappings(Dialect.Dialect.GetDialect()); var pc = mappings.GetClass(typeof(A).FullName); - ((SimpleValue)pc.Identifier).IdentifierGeneratorProperties["schema"].Should().Be("Test"); + Assert.That(((SimpleValue)pc.Identifier).IdentifierGeneratorProperties["schema"], Is.EqualTo("Test")); } @@ -34,7 +34,7 @@ public void ShouldGetIdentifierSchemaFromMappingElement() var mappings = conf.CreateMappings(Dialect.Dialect.GetDialect()); var pc = mappings.GetClass(typeof(A).FullName); - ((SimpleValue)pc.Identifier).IdentifierGeneratorProperties["schema"].Should().Be("Test"); + Assert.That(((SimpleValue)pc.Identifier).IdentifierGeneratorProperties["schema"], Is.EqualTo("Test")); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs index bdd9306d54f..85fc6a4571f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs @@ -39,8 +39,7 @@ public void ShouldUpdate() { using (s.BeginTransaction()) { - s.Get(_entity.Id).Dates.Count - .Should().Be.EqualTo(1); + Assert.That(s.Get(_entity.Id).Dates.Count, Is.EqualTo(1)); } } } @@ -62,8 +61,7 @@ public void ShouldMerge() { using (s.BeginTransaction()) { - s.Get(_entity.Id).Dates.Count - .Should().Be.EqualTo(1); + Assert.That(s.Get(_entity.Id).Dates.Count, Is.EqualTo(1)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs b/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs index bfb7aac6358..d8b78400492 100644 --- a/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs +++ b/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs @@ -35,70 +35,70 @@ protected internal void AProtectedInternal() { } public void GetTypeNotBeProxiable() { var method = typeof(object).GetMethod("GetType"); - method.ShouldBeProxiable().Should().Be.False(); + Assert.That(method.ShouldBeProxiable(), Is.False); } [Test] public void DisposeNotBeProxiable() { var method = typeof(MyClass).GetMethod("Dispose"); - method.ShouldBeProxiable().Should().Be.False(); + Assert.That(method.ShouldBeProxiable(), Is.False); } [Test] public void WhenProtectedNoVirtualPropertyThenShouldntBeProxiable() { var prop = typeof(ProtectedNoVirtualProperty).GetProperty("Aprop", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - prop.ShouldBeProxiable().Should().Be.False(); + Assert.That(prop.ShouldBeProxiable(), Is.False); } [Test] public void WhenProtectedInternalNoVirtualPropertyThenShouldBeProxiable() { var prop = typeof(ProtectedNoVirtualProperty).GetProperty("AProtectedInternalProp", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - prop.ShouldBeProxiable().Should().Be.True(); + Assert.That(prop.ShouldBeProxiable(), Is.True); } [Test] public void WhenInternalNoVirtualPropertyThenShouldBeProxiable() { var prop = typeof(ProtectedNoVirtualProperty).GetProperty("AInternalProp", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - prop.ShouldBeProxiable().Should().Be.True(); + Assert.That(prop.ShouldBeProxiable(), Is.True); } [Test] public void WhenProtectedNoVirtualMethodThenShouldntBeProxiable() { var method = typeof(NoVirtualMethods).GetMethod("AProtected", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - method.ShouldBeProxiable().Should().Be.False(); + Assert.That(method.ShouldBeProxiable(), Is.False); } [Test] public void WhenProtectedInternalNoVirtualMethodThenShouldBeProxiable() { var method = typeof(NoVirtualMethods).GetMethod("AProtectedInternal", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - method.ShouldBeProxiable().Should().Be.True(); + Assert.That(method.ShouldBeProxiable(), Is.True); } [Test] public void WhenPrivateMethodThenShouldntBeProxiable() { var method = typeof(NoVirtualMethods).GetMethod("APrivate", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - method.ShouldBeProxiable().Should().Be.False(); + Assert.That(method.ShouldBeProxiable(), Is.False); } [Test] public void WhenPublicMethodThenShouldBeProxiable() { var method = typeof(NoVirtualMethods).GetMethod("APublic", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - method.ShouldBeProxiable().Should().Be.True(); + Assert.That(method.ShouldBeProxiable(), Is.True); } [Test] public void WhenInternalMethodThenShouldBeProxiable() { var method = typeof(NoVirtualMethods).GetMethod("AInternal", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); - method.ShouldBeProxiable().Should().Be.True(); + Assert.That(method.ShouldBeProxiable(), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/NHibernate.Test.build b/src/NHibernate.Test/NHibernate.Test.build index f454831f6c7..f879d97b620 100644 --- a/src/NHibernate.Test/NHibernate.Test.build +++ b/src/NHibernate.Test/NHibernate.Test.build @@ -27,7 +27,6 @@ - diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index 3a0d936dbc1..0c57966358b 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -80,10 +80,6 @@ False ..\..\lib\net\nunit.framework.dll - - False - ..\..\lib\net\SharpTestsEx.NUnit.dll - diff --git a/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs b/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs index 6cbaecded14..7f28306a9a7 100644 --- a/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs +++ b/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs @@ -10,28 +10,28 @@ public class NamedParameterSpecificationTest public void WhenHasSameNameThenSameHashCode() { var expected = (new NamedParameterSpecification(1, 0, "nhlist")).GetHashCode(); - (new NamedParameterSpecification(1, 0, "nhlist")).GetHashCode().Should().Be.EqualTo(expected); + Assert.That((new NamedParameterSpecification(1, 0, "nhlist")).GetHashCode(), Is.EqualTo(expected)); } [Test] public void WhenHasNoSameNameThenNoSameHashCode() { var expected = (new NamedParameterSpecification(1, 0, "nHlist")).GetHashCode(); - (new NamedParameterSpecification(1, 0, "nhlist")).GetHashCode().Should().Not.Be.EqualTo(expected); + Assert.That((new NamedParameterSpecification(1, 0, "nhlist")).GetHashCode(), Is.Not.EqualTo(expected)); } [Test] public void WhenHasSameNameThenAreEquals() { var expected = (new NamedParameterSpecification(1, 0, "nhlist")); - (new NamedParameterSpecification(1, 0, "nhlist")).Should().Be.EqualTo(expected); + Assert.That((new NamedParameterSpecification(1, 0, "nhlist")), Is.EqualTo(expected)); } [Test] public void WhenHasNoSameNameThenAreNotEquals() { var expected = (new NamedParameterSpecification(1, 0, "nHlist")); - (new NamedParameterSpecification(1, 0, "nhlist")).Should().Not.Be.EqualTo(expected); + Assert.That((new NamedParameterSpecification(1, 0, "nhlist")), Is.Not.EqualTo(expected)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs b/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs index a4b50673da3..e7a0f83a99e 100644 --- a/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs +++ b/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs @@ -85,23 +85,23 @@ public void Dispose() public void WhenSaveDeleteBaseClassCastedToInterfaceThenNotThrows() { INamed a = new A { Name = "Patrick" }; - Executing.This(() => - { - using (var s = OpenSession()) - { - s.Save(a); - s.Flush(); - } - }).Should().NotThrow(); + Assert.That(() => + { + using (var s = OpenSession()) + { + s.Save(a); + s.Flush(); + } + }, Throws.Nothing); - Executing.This(() => - { - using (var s = OpenSession()) - { - s.Delete(a); - s.Flush(); - } - }).Should().NotThrow(); + Assert.That(() => + { + using (var s = OpenSession()) + { + s.Delete(a); + s.Flush(); + } + }, Throws.Nothing); } @@ -112,7 +112,7 @@ public void WhenLoadBaseClassUsingInterfaceThenNotThrows() { using (var s = OpenSession()) { - s.Executing(session => session.Load(scenario.A.Id)).NotThrows(); + Assert.That(() => s.Load(scenario.A.Id), Throws.Nothing); } } } @@ -124,7 +124,7 @@ public void WhenGetBaseClassUsingInterfaceThenNotThrows() { using (var s = OpenSession()) { - s.Executing(session => session.Get(scenario.A.Id)).NotThrows(); + Assert.That(() => s.Get(scenario.A.Id), Throws.Nothing); } } } @@ -136,7 +136,7 @@ public void WhenLoadInheritedClassUsingInterfaceThenNotThrows() { using (var s = OpenSession()) { - Executing.This(()=> s.Load(scenario.B.Id) ).Should().NotThrow(); + Assert.That(() => s.Load(scenario.B.Id), Throws.Nothing); } } } @@ -149,16 +149,16 @@ public void WhenLoadInheritedClassUsingInterfaceThenShouldAllowNarrowingProxy() using (var s = OpenSession()) { INamed loadedEntity = null; - Executing.This(() => loadedEntity = s.Load(scenario.B.Id)).Should().NotThrow(); - NHibernateProxyHelper.GetClassWithoutInitializingProxy(loadedEntity).Should().Be(typeof(A)); + Assert.That(() => loadedEntity = s.Load(scenario.B.Id), Throws.Nothing); + Assert.That(NHibernateProxyHelper.GetClassWithoutInitializingProxy(loadedEntity), Is.EqualTo(typeof(A))); var narrowedProxy = s.Load(scenario.B.Id); - NHibernateProxyHelper.GetClassWithoutInitializingProxy(narrowedProxy).Should().Be(typeof(B)); + Assert.That(NHibernateProxyHelper.GetClassWithoutInitializingProxy(narrowedProxy), Is.EqualTo(typeof(B))); var firstLoadedImpl = ((INHibernateProxy)loadedEntity).HibernateLazyInitializer.GetImplementation((ISessionImplementor)s); var secondLoadedImpl = ((INHibernateProxy)narrowedProxy).HibernateLazyInitializer.GetImplementation((ISessionImplementor)s); - firstLoadedImpl.Should().Be.SameInstanceAs(secondLoadedImpl); + Assert.That(firstLoadedImpl, Is.SameAs(secondLoadedImpl)); } } } @@ -171,16 +171,16 @@ public void WhenLoadInterfaceThenShouldAllowNarrowingProxy() using (var s = OpenSession()) { INamed loadedEntity = null; - Executing.This(() => loadedEntity = s.Load(scenario.B.Id)).Should().NotThrow(); - NHibernateProxyHelper.GetClassWithoutInitializingProxy(loadedEntity).Should().Be(typeof(A)); + Assert.That(() => loadedEntity = s.Load(scenario.B.Id), Throws.Nothing); + Assert.That(NHibernateProxyHelper.GetClassWithoutInitializingProxy(loadedEntity), Is.EqualTo(typeof(A))); var narrowedProxy = s.Load(scenario.B.Id); - NHibernateProxyHelper.GetClassWithoutInitializingProxy(narrowedProxy).Should().Be(typeof(B)); + Assert.That(NHibernateProxyHelper.GetClassWithoutInitializingProxy(narrowedProxy), Is.EqualTo(typeof(B))); var firstLoadedImpl = ((INHibernateProxy)loadedEntity).HibernateLazyInitializer.GetImplementation((ISessionImplementor)s); var secondLoadedImpl = ((INHibernateProxy)narrowedProxy).HibernateLazyInitializer.GetImplementation((ISessionImplementor)s); - firstLoadedImpl.Should().Be.SameInstanceAs(secondLoadedImpl); + Assert.That(firstLoadedImpl, Is.SameAs(secondLoadedImpl)); } } } @@ -193,8 +193,8 @@ public void WhenGetInheritedClassUsingInterfaceThenNotThrows() using (var s = OpenSession()) { INamed loadedEntity = null; - Executing.This(() => loadedEntity = s.Get(scenario.B.Id)).Should().NotThrow(); - loadedEntity.Should().Be.OfType(); + Assert.That(() => loadedEntity = s.Get(scenario.B.Id), Throws.Nothing); + Assert.That(loadedEntity, Is.TypeOf()); } } } @@ -204,13 +204,11 @@ public void WhenLoadClassUsingInterfaceOfMultippleHierarchyThenThrows() { using (var s = OpenSession()) { - Executing.This(() => s.Load(1)) - .Should().Throw() - .And.ValueOf.Message.Should() - .Contain("Ambiguous") - .And.Contain("GraphA") - .And.Contain("GraphB") - .And.Contain("IMultiGraphNamed"); + Assert.That(() => s.Load(1), Throws.TypeOf() + .And.Message.ContainsSubstring("Ambiguous") + .And.Message.ContainsSubstring("GraphA") + .And.Message.ContainsSubstring("GraphB") + .And.Message.ContainsSubstring("IMultiGraphNamed")); } } @@ -219,13 +217,12 @@ public void WhenGetClassUsingInterfaceOfMultippleHierarchyThenThrows() { using (var s = OpenSession()) { - Executing.This(() => s.Get(1)) - .Should().Throw() - .And.ValueOf.Message.Should() - .Contain("Ambiguous") - .And.Contain("GraphA") - .And.Contain("GraphB") - .And.Contain("IMultiGraphNamed"); + Assert.That(() => s.Get(1), + Throws.TypeOf() + .And.Message.StringContaining("Ambiguous") + .And.Message.StringContaining("GraphA") + .And.Message.StringContaining("GraphB") + .And.Message.StringContaining("IMultiGraphNamed")); } } @@ -238,7 +235,7 @@ public void WhenGetBaseClassUsingInterfaceFromSessionCacheThenNotThrows() { var id = scenario.A.Id; s.Get(id); - s.Executing(session => session.Get(id)).NotThrows(); + Assert.That(() => s.Get(id), Throws.Nothing); } } } @@ -252,7 +249,7 @@ public void WhenGetInheritedClassUsingInterfaceFromSessionCacheThenNotThrows() { var id = scenario.B.Id; s.Get(id); - s.Executing(session => session.Get(id)).NotThrows(); + Assert.That(() => s.Get(id), Throws.Nothing); } } } diff --git a/src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs b/src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs index f6a60d11acb..f156778901d 100644 --- a/src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs +++ b/src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs @@ -361,10 +361,10 @@ public void ExecutableQuery() { IQuery q = dq.GetExecutableQuery(s); IList l = q.List(); - Assert.AreEqual(2, l.Count); + Assert.That(l.Count, Is.EqualTo(2)); - Assert.True(l.Contains(new Foo("N2", "D2"))); - Assert.True(l.Contains(new Foo("N3", "D3"))); + Assert.That(l.Contains(new Foo("N2", "D2")), Is.True); + Assert.That(l.Contains(new Foo("N3", "D3")), Is.True); } // Pagination diff --git a/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs b/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs index 4a07739142f..0d7d16bceb0 100644 --- a/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs +++ b/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs @@ -439,7 +439,7 @@ public void ParameterPropertyShouldReturnNewInstances() Assert.IsNull(parameters2[0].ParameterPosition); // more simple version of the test - Parameter.Placeholder.Should().Not.Be.SameInstanceAs(Parameter.Placeholder); + Assert.That(Parameter.Placeholder, Is.Not.SameAs(Parameter.Placeholder)); } diff --git a/src/NHibernate.Test/Stateless/Fetching/StatelessSessionFetchingTest.cs b/src/NHibernate.Test/Stateless/Fetching/StatelessSessionFetchingTest.cs index 86b84e7e9eb..6ce8d082bbe 100644 --- a/src/NHibernate.Test/Stateless/Fetching/StatelessSessionFetchingTest.cs +++ b/src/NHibernate.Test/Stateless/Fetching/StatelessSessionFetchingTest.cs @@ -5,71 +5,71 @@ namespace NHibernate.Test.Stateless.Fetching { - [TestFixture] - public class StatelessSessionFetchingTest : TestCase - { - private static readonly ILog log = LogManager.GetLogger(typeof(StatelessSessionFetchingTest)); + [TestFixture] + public class StatelessSessionFetchingTest : TestCase + { + private static readonly ILog log = LogManager.GetLogger(typeof(StatelessSessionFetchingTest)); - protected override string MappingsAssembly - { - get { return "NHibernate.Test"; } - } + protected override string MappingsAssembly + { + get { return "NHibernate.Test"; } + } - protected override IList Mappings - { - get - { - return new[] { "Stateless.Fetching.Mappings.hbm.xml" }; - } - } + protected override IList Mappings + { + get + { + return new[] { "Stateless.Fetching.Mappings.hbm.xml" }; + } + } - [Test] - public void DynamicFetch() - { - using (ISession s = OpenSession()) - using (ITransaction tx = s.BeginTransaction()) - { - DateTime now = DateTime.Now; - User me = new User("me"); - User you = new User("you"); - Resource yourClock = new Resource("clock", you); - Task task = new Task(me, "clean", yourClock, now); // :) - s.Save(me); - s.Save(you); - s.Save(yourClock); - s.Save(task); - tx.Commit(); - } + [Test] + public void DynamicFetch() + { + using (ISession s = OpenSession()) + using (ITransaction tx = s.BeginTransaction()) + { + DateTime now = DateTime.Now; + User me = new User("me"); + User you = new User("you"); + Resource yourClock = new Resource("clock", you); + Task task = new Task(me, "clean", yourClock, now); // :) + s.Save(me); + s.Save(you); + s.Save(yourClock); + s.Save(task); + tx.Commit(); + } - using (IStatelessSession ss = sessions.OpenStatelessSession()) - using (ITransaction tx = ss.BeginTransaction()) - { - ss.BeginTransaction(); - Task taskRef = - (Task)ss.CreateQuery("from Task t join fetch t.Resource join fetch t.User").UniqueResult(); - Assert.True(taskRef != null); - Assert.True(NHibernateUtil.IsInitialized(taskRef)); - Assert.True(NHibernateUtil.IsInitialized(taskRef.User)); - Assert.True(NHibernateUtil.IsInitialized(taskRef.Resource)); - Assert.False(NHibernateUtil.IsInitialized(taskRef.Resource.Owner)); - tx.Commit(); - } + using (IStatelessSession ss = sessions.OpenStatelessSession()) + using (ITransaction tx = ss.BeginTransaction()) + { + ss.BeginTransaction(); + Task taskRef = + (Task)ss.CreateQuery("from Task t join fetch t.Resource join fetch t.User").UniqueResult(); + Assert.That(taskRef, Is.Not.Null); + Assert.That(NHibernateUtil.IsInitialized(taskRef), Is.True); + Assert.That(NHibernateUtil.IsInitialized(taskRef.User), Is.True); + Assert.That(NHibernateUtil.IsInitialized(taskRef.Resource), Is.True); + Assert.That(NHibernateUtil.IsInitialized(taskRef.Resource.Owner), Is.False); + tx.Commit(); + } - cleanup(); - } + cleanup(); + } - private void cleanup() - { - using (ISession s = OpenSession()) - using (ITransaction tx = s.BeginTransaction()) - { - s.BeginTransaction(); - s.CreateQuery("delete Task").ExecuteUpdate(); - s.CreateQuery("delete Resource").ExecuteUpdate(); - s.CreateQuery("delete User").ExecuteUpdate(); - tx.Commit(); - } - } - } + private void cleanup() + { + using (ISession s = OpenSession()) + using (ITransaction tx = s.BeginTransaction()) + { + s.BeginTransaction(); + s.CreateQuery("delete Task").ExecuteUpdate(); + s.CreateQuery("delete Resource").ExecuteUpdate(); + s.CreateQuery("delete User").ExecuteUpdate(); + tx.Commit(); + } + } + } } diff --git a/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs b/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs index ce890c0529b..bc4161a0a1a 100644 --- a/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs +++ b/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs @@ -17,18 +17,18 @@ protected override HbmMapping GetMappings() var mapper = new ModelMapper(); mapper.BeforeMapClass += (mi, t, cm) => cm.Id(im => im.Generator(Generators.HighLow)); mapper.Class(mc => - { - mc.Id(x => x.Id); - mc.Discriminator(dm => dm.Column("kind")); - mc.Property(x => x.Description); - }); + { + mc.Id(x => x.Id); + mc.Discriminator(dm => dm.Column("kind")); + mc.Property(x => x.Description); + }); mapper.Subclass(mc => { mc.Property(x => x.BodyTemperature); }); mapper.Subclass(mc => - { - mc.Property(x => x.Name); - mc.Property(x => x.NickName); - mc.Property(x => x.Birthdate, pm => pm.Type(NHibernateUtil.Date)); - }); + { + mc.Property(x => x.Name); + mc.Property(x => x.NickName); + mc.Property(x => x.Birthdate, pm => pm.Type(NHibernateUtil.Date)); + }); mapper.AddMapping>(); mapper.AddMapping>(); var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities(); @@ -50,23 +50,23 @@ public FamilyMap() DiscriminatorValue(familyOf); Where(string.Format("familyKind = '{0}'", familyOf)); ManyToOne(x => x.Father, map => - { - map.Lazy(LazyRelation.NoLazy); - map.Class(typeof (T)); - map.Cascade(Mapping.ByCode.Cascade.All); - }); + { + map.Lazy(LazyRelation.NoLazy); + map.Class(typeof (T)); + map.Cascade(Mapping.ByCode.Cascade.All); + }); ManyToOne(x => x.Mother, map => - { - map.Lazy(LazyRelation.NoLazy); - map.Class(typeof (T)); - map.Cascade(Mapping.ByCode.Cascade.All); - }); + { + map.Lazy(LazyRelation.NoLazy); + map.Class(typeof (T)); + map.Cascade(Mapping.ByCode.Cascade.All); + }); Set(x => x.Childs, cam => - { - cam.Key(km => km.Column("familyId")); - cam.Cascade(Mapping.ByCode.Cascade.All); - }, - rel => rel.OneToMany()); + { + cam.Key(km => km.Column("familyId")); + cam.Cascade(Mapping.ByCode.Cascade.All); + }, + rel => rel.OneToMany()); } } @@ -120,13 +120,13 @@ public void ShouldWorkLoadingComplexEntities() Assert.That(hf.Count, Is.EqualTo(1)); Assert.That(hf[0].Father.Name, Is.EqualTo(humanFather)); Assert.That(hf[0].Mother.Name, Is.EqualTo(humanMother)); - NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should NOT be initialized").Be.False(); + Assert.That(NHibernateUtil.IsInitialized(hf[0].Childs), Is.False, "Lazy collection should NOT be initialized"); IList> rf = s.CreateQuery("from ReptileFamily").List>(); Assert.That(rf.Count, Is.EqualTo(1)); Assert.That(rf[0].Father.Description, Is.EqualTo(crocodileFather)); Assert.That(rf[0].Mother.Description, Is.EqualTo(crocodileMother)); - NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should NOT be initialized").Be.False(); + Assert.That(NHibernateUtil.IsInitialized(hf[0].Childs), Is.False, "Lazy collection should NOT be initialized"); tx.Commit(); } diff --git a/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs b/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs index b5faf13479c..c016d8462b3 100644 --- a/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs +++ b/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs @@ -183,14 +183,14 @@ public void Refresh() [Test] public void WhenSetTheBatchSizeThenSetTheBatchSizeOfTheBatcher() { - if (!Dialect.SupportsSqlBatches) - Assert.Ignore("Dialect does not support sql batches."); + if (!Dialect.SupportsSqlBatches) + Assert.Ignore("Dialect does not support sql batches."); using (IStatelessSession ss = sessions.OpenStatelessSession()) { ss.SetBatchSize(37); var impl = (ISessionImplementor)ss; - impl.Batcher.BatchSize.Should().Be(37); + Assert.That(impl.Batcher.BatchSize, Is.EqualTo(37)); } } @@ -199,7 +199,7 @@ public void CanGetImplementor() { using (IStatelessSession ss = sessions.OpenStatelessSession()) { - ss.GetSessionImplementation().Should().Be.SameInstanceAs(ss); + Assert.That(ss.GetSessionImplementation(), Is.SameAs(ss)); } } @@ -210,8 +210,8 @@ public void HavingDetachedCriteriaThenCanGetExecutableCriteriaFromStatelessSessi using (IStatelessSession ss = sessions.OpenStatelessSession()) { ICriteria criteria = null; - Executing.This(()=> criteria = dc.GetExecutableCriteria(ss)).Should().NotThrow(); - criteria.Executing(c => c.List()).NotThrows(); + Assert.That(() => criteria = dc.GetExecutableCriteria(ss), Throws.Nothing); + Assert.That(() => criteria.List(), Throws.Nothing); } } diff --git a/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs b/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs index e89fe57cff9..ded36d587e6 100644 --- a/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs +++ b/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs @@ -66,14 +66,14 @@ public void ShouldWorkLoadingComplexEntities() Assert.That(hf.Count, Is.EqualTo(1)); Assert.That(hf[0].Father.Name, Is.EqualTo(humanFather)); Assert.That(hf[0].Mother.Name, Is.EqualTo(humanMother)); - NHibernateUtil.IsInitialized(hf[0].Childs).Should("No lazy collection should be initialized").Be.True(); + Assert.That(NHibernateUtil.IsInitialized(hf[0].Childs), Is.True, "No lazy collection should be initialized"); //Assert.That(hf[0].Childs, Is.Null, "Collections should be ignored by stateless session."); IList> rf = s.CreateQuery("from ReptilesFamily").List>(); Assert.That(rf.Count, Is.EqualTo(1)); Assert.That(rf[0].Father.Description, Is.EqualTo(crocodileFather)); Assert.That(rf[0].Mother.Description, Is.EqualTo(crocodileMother)); - NHibernateUtil.IsInitialized(hf[0].Childs).Should("No lazy collection should be initialized").Be.True(); + Assert.That(NHibernateUtil.IsInitialized(hf[0].Childs), Is.True, "No lazy collection should be initialized"); //Assert.That(rf[0].Childs, Is.Null, "Collections should be ignored by stateless session."); tx.Commit(); diff --git a/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs b/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs index 8233d04dca0..b5a9edd8c97 100644 --- a/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs +++ b/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs @@ -33,28 +33,28 @@ public void EntitySubselect() s.Save(x23y4); s.Flush(); var beings = s.CreateQuery("from Being").List(); - beings.Should().Have.Count.GreaterThan(0); + Assert.That(beings, Has.Count.GreaterThan(0)); foreach (var being in beings) { - being.Location.Should().Not.Be.NullOrEmpty(); - being.Identity.Should().Not.Be.NullOrEmpty(); - being.Species.Should().Not.Be.NullOrEmpty(); + Assert.That(being.Location, Is.Not.Null.And.Not.Empty); + Assert.That(being.Identity, Is.Not.Null.And.Not.Empty); + Assert.That(being.Species, Is.Not.Null.And.Not.Empty); } s.Clear(); Sfi.Evict(typeof (Being)); Being gav = s.Get(gavin.Id); - gav.Location.Should().Not.Be.NullOrEmpty(); - gav.Identity.Should().Not.Be.NullOrEmpty(); - gav.Species.Should().Not.Be.NullOrEmpty(); + Assert.That(gav.Location, Is.Not.Null.And.Not.Empty); + Assert.That(gav.Identity, Is.Not.Null.And.Not.Empty); + Assert.That(gav.Species, Is.Not.Null.And.Not.Empty); s.Clear(); //test the tag: gavin = s.Get(gavin.Id); gavin.Address = "Atlanta, GA"; gav = s.CreateQuery("from Being b where b.Location like '%GA%'").UniqueResult(); - gav.Location.Should().Be(gavin.Address); + Assert.That(gav.Location, Is.EqualTo(gavin.Address)); s.Delete(gavin); s.Delete(x23y4); - s.CreateQuery("from Being").List().Should().Be.Empty(); + Assert.That(s.CreateQuery("from Being").List(), Is.Empty); t.Commit(); s.Close(); } diff --git a/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs b/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs index a5acd3e5fc1..92ee51a12bc 100644 --- a/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs +++ b/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs @@ -29,7 +29,7 @@ public void WhenCalledExplicitlyThenTakeInAccountHbm2DdlKeyWordsSetting() var script = new StringBuilder(); new SchemaExport(configuration).Execute(s=> script.AppendLine(s), false, false); - script.ToString().Should().Contain("[Order]").And.Contain("[Select]").And.Contain("[From]").And.Contain("[And]"); + Assert.That(script.ToString(), Is.StringContaining("[Order]").And.Contains("[Select]").And.Contains("[From]").And.Contains("[And]")); } [Test] @@ -52,11 +52,11 @@ public void WhenUpdateCalledExplicitlyThenTakeInAccountHbm2DdlKeyWordsSetting() // With SchemaUpdate the auto-quote method should be called and the conf. should hold quoted stuff var cm = configuration.GetClassMapping(typeof(Order)); var culs = cm.Table.ColumnIterator.ToList(); - cm.Table.Satisfy(t=> t.IsQuoted); - culs.First(c => "From".Equals(c.Name)).Satisfy(c=> c.IsQuoted); - culs.First(c => "And".Equals(c.Name)).Satisfy(c => c.IsQuoted); - culs.First(c => "Select".Equals(c.Name)).Satisfy(c => c.IsQuoted); - culs.First(c => "Column".Equals(c.Name)).Satisfy(c => c.IsQuoted); + Assert.That(cm.Table.IsQuoted, Is.True); + Assert.That(culs.First(c => "From" == c.Name).IsQuoted, Is.True); + Assert.That(culs.First(c => "And" == c.Name).IsQuoted, Is.True); + Assert.That(culs.First(c => "Select" == c.Name).IsQuoted, Is.True); + Assert.That(culs.First(c => "Column" == c.Name).IsQuoted, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs b/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs index dda97b1b65c..9bd57940f41 100644 --- a/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs +++ b/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs @@ -13,8 +13,8 @@ public class ImplementationOfEqualityTests { private readonly IEnumerable transformerTypes = typeof (IResultTransformer).Assembly.GetTypes() - .Where(t => typeof (IResultTransformer).IsAssignableFrom(t) && t.IsClass && !t.IsAbstract) - .ToList(); + .Where(t => typeof (IResultTransformer).IsAssignableFrom(t) && t.IsClass && !t.IsAbstract) + .ToList(); [Test] public void AllEmbeddedTransformersOverridesEqualsAndGetHashCode() @@ -22,8 +22,8 @@ public void AllEmbeddedTransformersOverridesEqualsAndGetHashCode() foreach (var transformerType in transformerTypes) { var declaredMethods = transformerType.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly); - declaredMethods.Select(x => x.Name).Should("The type "+transformerType+" does not implement Equals").Contain("Equals"); - declaredMethods.Select(x => x.Name).Should("The type " + transformerType + " does not implement GetHashCode").Contain("GetHashCode"); + Assert.That(declaredMethods.Select(x => x.Name), Contains.Item("Equals"), "The type " + transformerType + " does not implement Equals"); + Assert.That(declaredMethods.Select(x => x.Name), Contains.Item("GetHashCode"), "The type " + transformerType + " does not implement GetHashCode"); } } @@ -45,8 +45,8 @@ public void AllEmbeddedTransformersWithDefaultCtorHasEqualityWorkingAsSingleton( continue; } var transformer2= (IResultTransformer)Activator.CreateInstance(transformerType); - transformer1.Should().Be.EqualTo(transformer2); - transformer1.GetHashCode().Should().Be.EqualTo(transformer2.GetHashCode()); + Assert.That(transformer1, Is.EqualTo(transformer2)); + Assert.That(transformer1.GetHashCode(), Is.EqualTo(transformer2.GetHashCode())); } } @@ -55,12 +55,12 @@ public void AliasToBeanResultTransformer_ShouldHaveEqualityBasedOnCtorParameter( { var transformer1 = new AliasToBeanResultTransformer(typeof(object)); var transformer2 = new AliasToBeanResultTransformer(typeof(object)); - transformer1.Should().Be.EqualTo(transformer2); - transformer1.GetHashCode().Should().Be.EqualTo(transformer2.GetHashCode()); + Assert.That(transformer1, Is.EqualTo(transformer2)); + Assert.That(transformer1.GetHashCode(), Is.EqualTo(transformer2.GetHashCode())); var transformer3 = new AliasToBeanResultTransformer(typeof(int)); - transformer1.Should().Not.Be.EqualTo(transformer3); - transformer1.GetHashCode().Should().Not.Be.EqualTo(transformer3.GetHashCode()); + Assert.That(transformer1, Is.Not.EqualTo(transformer3)); + Assert.That(transformer1.GetHashCode(), Is.Not.EqualTo(transformer3.GetHashCode())); } [Test] @@ -69,12 +69,12 @@ public void AliasToBeanConstructorResultTransformer_ShouldHaveEqualityBasedOnCto var emptyCtor = new System.Type[0]; var transformer1 = new AliasToBeanConstructorResultTransformer(typeof(object).GetConstructor(emptyCtor)); var transformer2 = new AliasToBeanConstructorResultTransformer(typeof(object).GetConstructor(emptyCtor)); - transformer1.Should().Be.EqualTo(transformer2); - transformer1.GetHashCode().Should().Be.EqualTo(transformer2.GetHashCode()); + Assert.That(transformer1, Is.EqualTo(transformer2)); + Assert.That(transformer1.GetHashCode(), Is.EqualTo(transformer2.GetHashCode())); var transformer3 = new AliasToBeanConstructorResultTransformer(typeof(ImplementationOfEqualityTests).GetConstructor(emptyCtor)); - transformer1.Should().Not.Be.EqualTo(transformer3); - transformer1.GetHashCode().Should().Not.Be.EqualTo(transformer3.GetHashCode()); + Assert.That(transformer1, Is.Not.EqualTo(transformer3)); + Assert.That(transformer1.GetHashCode(), Is.Not.EqualTo(transformer3.GetHashCode())); } [Test] @@ -84,13 +84,13 @@ public void LinqResultTransformer_ShouldHaveEqualityBasedOnCtorParameter() Func, IEnumerable> d2 = x => x; var transformer1 = new ResultTransformer(d1, d2); var transformer2 = new ResultTransformer(d1, d2); - transformer1.Should().Be.EqualTo(transformer2); - transformer1.GetHashCode().Should().Be.EqualTo(transformer2.GetHashCode()); + Assert.That(transformer1, Is.EqualTo(transformer2)); + Assert.That(transformer1.GetHashCode(), Is.EqualTo(transformer2.GetHashCode())); Func, IEnumerable> d3 = x => new [] { 1, 2, 3 }; var transformer3 = new ResultTransformer(d1, d3); - transformer1.Should().Not.Be.EqualTo(transformer3); - transformer1.GetHashCode().Should().Not.Be.EqualTo(transformer3.GetHashCode()); + Assert.That(transformer1, Is.Not.EqualTo(transformer3)); + Assert.That(transformer1.GetHashCode(), Is.Not.EqualTo(transformer3.GetHashCode())); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs b/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs index 67f3a03c0e4..7e46aaa9a58 100644 --- a/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs @@ -67,7 +67,7 @@ public void ReadWriteZeroLen() using (var s = OpenSession()) { var b = s.Get(savedId); - b.BinaryBlob.Should().Not.Be.Null().And.Have.Count.EqualTo(0); + Assert.That(b.BinaryBlob, Is.Not.Null.And.Length.EqualTo(0)); s.Delete(b); s.Flush(); } diff --git a/src/NHibernate.Test/TypesTest/CharClassFixture.cs b/src/NHibernate.Test/TypesTest/CharClassFixture.cs index 9be41bf463c..a44d798b15d 100644 --- a/src/NHibernate.Test/TypesTest/CharClassFixture.cs +++ b/src/NHibernate.Test/TypesTest/CharClassFixture.cs @@ -24,9 +24,9 @@ public void ReadWrite() using (var s = OpenSession()) { CharClass saved= null; - Executing.This(()=> saved = s.Get(1)).Should().NotThrow(); - saved.NormalChar.Should().Be('A'); - saved.NullableChar.Should().Not.Have.Value(); + Assert.That(() => saved = s.Get(1), Throws.Nothing); + Assert.That(saved.NormalChar, Is.EqualTo('A')); + Assert.That(saved.NullableChar, Is.Null); s.Delete(saved); s.Flush(); diff --git a/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs b/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs index f16eaaef72f..b847a2272e5 100644 --- a/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs @@ -5,52 +5,52 @@ namespace NHibernate.Test.TypesTest { - /// - /// TestFixtures for the . - /// - [TestFixture] - public class DateTime2TypeFixture - { - [Test] - public void Next() - { - DateTimeType type = (DateTimeType)NHibernateUtil.DateTime2; - object current = DateTime.Now.AddMilliseconds(-1); - object next = type.Next(current, null); - - next.Should().Be.OfType().And.Value.Should().Be.GreaterThan((DateTime)current); - } - - [Test] - public void Seed() - { - DateTimeType type = (DateTimeType)NHibernateUtil.DateTime; - Assert.IsTrue(type.Seed(null) is DateTime, "seed should be DateTime"); - } - - [Test] - public void DeepCopyNotNull() - { - NullableType type = NHibernateUtil.DateTime; - - object value1 = DateTime.Now; - object value2 = type.DeepCopy(value1, EntityMode.Poco, null); - - Assert.AreEqual(value1, value2, "Copies should be the same."); - - - value2 = ((DateTime)value2).AddHours(2); - Assert.IsFalse(value1 == value2, "value2 was changed, value1 should not have changed also."); - } - - [Test] - public void EqualityShouldIgnoreKindAndNotIgnoreMillisecond() - { - var type = (DateTimeType)NHibernateUtil.DateTime; - var localTime = DateTime.Now; - var unspecifiedKid = new DateTime(localTime.Ticks, DateTimeKind.Unspecified); - type.Satisfy(t => t.IsEqual(localTime, unspecifiedKid)); - type.Satisfy(t => t.IsEqual(localTime, unspecifiedKid, EntityMode.Poco)); - } - } + /// + /// TestFixtures for the . + /// + [TestFixture] + public class DateTime2TypeFixture + { + [Test] + public void Next() + { + DateTimeType type = NHibernateUtil.DateTime2; + object current = DateTime.Now.AddMilliseconds(-1); + object next = type.Next(current, null); + + Assert.That(next, Is.TypeOf().And.GreaterThan(current)); + } + + [Test] + public void Seed() + { + DateTimeType type = NHibernateUtil.DateTime; + Assert.IsTrue(type.Seed(null) is DateTime, "seed should be DateTime"); + } + + [Test] + public void DeepCopyNotNull() + { + NullableType type = NHibernateUtil.DateTime; + + object value1 = DateTime.Now; + object value2 = type.DeepCopy(value1, EntityMode.Poco, null); + + Assert.AreEqual(value1, value2, "Copies should be the same."); + + + value2 = ((DateTime)value2).AddHours(2); + Assert.IsFalse(value1 == value2, "value2 was changed, value1 should not have changed also."); + } + + [Test] + public void EqualityShouldIgnoreKindAndNotIgnoreMillisecond() + { + var type = NHibernateUtil.DateTime; + var localTime = DateTime.Now; + var unspecifiedKid = new DateTime(localTime.Ticks, DateTimeKind.Unspecified); + Assert.That(type.IsEqual(localTime, unspecifiedKid), Is.True); + Assert.That(type.IsEqual(localTime, unspecifiedKid, EntityMode.Poco), Is.True); + } + } } \ No newline at end of file diff --git a/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs b/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs index 404eac90d5e..bf72c0aee3f 100644 --- a/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs @@ -20,7 +20,7 @@ public void Next() Assert.IsTrue(next is DateTime, "Next should be DateTime"); Assert.IsTrue((DateTime) next > (DateTime) current, - "next should be greater than current (could be equal depending on how quickly this occurs)"); + "next should be greater than current (could be equal depending on how quickly this occurs)"); } [Test] @@ -51,8 +51,8 @@ public void EqualityShouldIgnoreKindAndMillisecond() var type = (DateTimeType)NHibernateUtil.DateTime; var localTime = DateTime.Now; var unspecifiedKid = new DateTime(localTime.Year, localTime.Month, localTime.Day, localTime.Hour, localTime.Minute, localTime.Second, 0, DateTimeKind.Unspecified); - type.Satisfy(t => t.IsEqual(localTime, unspecifiedKid)); - type.Satisfy(t => t.IsEqual(localTime, unspecifiedKid, EntityMode.Poco)); + Assert.That(type.IsEqual(localTime, unspecifiedKid), Is.True); + Assert.That(type.IsEqual(localTime, unspecifiedKid, EntityMode.Poco), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/TypesTest/DateTypeTest.cs b/src/NHibernate.Test/TypesTest/DateTypeTest.cs index c13c8920624..ab3c5b7bd00 100644 --- a/src/NHibernate.Test/TypesTest/DateTypeTest.cs +++ b/src/NHibernate.Test/TypesTest/DateTypeTest.cs @@ -13,7 +13,7 @@ public class DateTypeTest public void WhenNoParameterThenDefaultValueIsBaseDateValue() { var dateType = new DateType(); - dateType.DefaultValue.Should().Be(DateType.BaseDateValue); + Assert.That(dateType.DefaultValue, Is.EqualTo(DateType.BaseDateValue)); } [Test] @@ -21,14 +21,14 @@ public void WhenSetParameterThenDefaultValueIsParameterValue() { var dateType = new DateType(); dateType.SetParameterValues(new Dictionary{{DateType.BaseValueParameterName, "0001/01/01"}}); - dateType.DefaultValue.Should().Be(DateTime.MinValue); + Assert.That(dateType.DefaultValue, Is.EqualTo(DateTime.MinValue)); } [Test] public void WhenSetParameterNullThenNotThrow() { var dateType = new DateType(); - dateType.Executing(dt=> dt.SetParameterValues(null)).NotThrows(); + Assert.That(() => dateType.SetParameterValues(null), Throws.Nothing); } } @@ -47,7 +47,7 @@ public void ShouldBeDateType() Assert.Ignore("This test does not apply to " + Dialect); } var sqlType = Dialect.GetTypeName(NHibernateUtil.Date.SqlType); - sqlType.ToLowerInvariant().Should().Be("date"); + Assert.That(sqlType.ToLowerInvariant(), Is.EqualTo("date")); } [Test] @@ -65,7 +65,7 @@ public void ReadWriteNormal() using (ISession s = OpenSession()) { basic = s.Get(savedId); - basic.DateValue.Should().Be(expected); + Assert.That(basic.DateValue, Is.EqualTo(expected)); s.Delete(basic); s.Flush(); } @@ -84,7 +84,7 @@ public void ReadWriteBaseValue() using (ISession s = OpenSession()) { basic = s.Get(savedId); - basic.DateValue.HasValue.Should().Be.False(); + Assert.That(basic.DateValue.HasValue, Is.False); s.Delete(basic); s.Flush(); } diff --git a/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs b/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs index 350f7d88e3f..2def33f5a72 100644 --- a/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs @@ -129,8 +129,8 @@ public void CanWriteAndReadUsingBothHeuristicAndExplicitGenericDeclaration() using (ISession s = sessions.OpenSession()) { var saved = s.Get(1); - saved.A.Should().Be(A.Two); - saved.B.Should().Be(B.One); + Assert.That(saved.A, Is.EqualTo(A.Two)); + Assert.That(saved.B, Is.EqualTo(B.One)); s.Delete(saved); s.Flush(); } @@ -143,7 +143,7 @@ public class GenericEnumTypeTest public void TheNameShouldBeFullNameAndAssembly() { var enumType = new EnumType(); - enumType.Name.Should().Be(typeof(EnumType).FullName + ", NHibernate"); + Assert.That(enumType.Name, Is.EqualTo(typeof(EnumType).FullName + ", NHibernate")); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs b/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs index c5ba559c167..32941993640 100644 --- a/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs +++ b/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs @@ -83,28 +83,28 @@ public void MultiThreadAccess() // If one thread break the test you can see the result in the console. ((Logger) log.Logger).Level = log4net.Core.Level.Debug; MultiThreadRunner.ExecuteAction[] actions = new MultiThreadRunner.ExecuteAction[] - { - delegate(object o) - { - TypeFactory.GetStringType(rnd.Next(1, 50)); - totalCall++; - }, - delegate(object o) - { - TypeFactory.GetBinaryType(rnd.Next(1, 50)); - totalCall++; - }, - delegate(object o) - { - TypeFactory.GetSerializableType(rnd.Next(1, 50)); - totalCall++; - }, - delegate(object o) - { - TypeFactory.GetTypeType(rnd.Next(1, 20)); - totalCall++; - }, - }; + { + delegate(object o) + { + TypeFactory.GetStringType(rnd.Next(1, 50)); + totalCall++; + }, + delegate(object o) + { + TypeFactory.GetBinaryType(rnd.Next(1, 50)); + totalCall++; + }, + delegate(object o) + { + TypeFactory.GetSerializableType(rnd.Next(1, 50)); + totalCall++; + }, + delegate(object o) + { + TypeFactory.GetTypeType(rnd.Next(1, 20)); + totalCall++; + }, + }; MultiThreadRunner mtr = new MultiThreadRunner(100, actions); mtr.EndTimeout = 2000; mtr.TimeoutBetweenThreadStart = 2; @@ -149,14 +149,14 @@ public enum MyEnum public void WhenUseEnumThenReturnGenericEnumType() { var iType = TypeFactory.HeuristicType(typeof (MyEnum).AssemblyQualifiedName); - iType.Should().Be.OfType>(); + Assert.That(iType, Is.TypeOf>()); } [Test] public void WhenUseNullableEnumThenReturnGenericEnumType() { var iType = TypeFactory.HeuristicType(typeof(MyEnum?).AssemblyQualifiedName); - iType.Should().Be.OfType>(); + Assert.That(iType, Is.TypeOf>()); } } } diff --git a/src/NHibernate.Test/TypesTest/UriTypeFixture.cs b/src/NHibernate.Test/TypesTest/UriTypeFixture.cs index e613f6b709c..eb8794caf0b 100644 --- a/src/NHibernate.Test/TypesTest/UriTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/UriTypeFixture.cs @@ -26,8 +26,8 @@ public void ReadWrite() using (var s = OpenSession()) { var entity = s.Get(1); - entity.Url.Should().Not.Be.Null(); - entity.Url.OriginalString.Should().Be("http://www.fabiomaulo.blogspot.com/"); + Assert.That(entity.Url, Is.Not.Null); + Assert.That(entity.Url.OriginalString, Is.EqualTo("http://www.fabiomaulo.blogspot.com/")); entity.Url = new Uri("http://fabiomaulo.blogspot.com/2010/10/nhibernate-30-cookbook.html"); s.Save(entity); s.Flush(); @@ -35,7 +35,7 @@ public void ReadWrite() using (var s = OpenSession()) { var entity = s.Get(1); - entity.Url.OriginalString.Should().Be("http://fabiomaulo.blogspot.com/2010/10/nhibernate-30-cookbook.html"); + Assert.That(entity.Url.OriginalString, Is.EqualTo("http://fabiomaulo.blogspot.com/2010/10/nhibernate-30-cookbook.html")); s.Delete(entity); s.Flush(); } @@ -55,7 +55,7 @@ public void InsertNullValue() using (ISession s = OpenSession()) { var entity = s.Get(1); - entity.Url.Should().Be.Null(); + Assert.That(entity.Url, Is.Null); s.Delete(entity); s.Flush(); } @@ -66,7 +66,7 @@ public void AutoDiscoverFromNetType() { // integration test to be 100% sure var propertyType = sessions.GetEntityPersister(typeof(UriClass).FullName).GetPropertyType("AutoUri"); - propertyType.Should().Be.InstanceOf(); + Assert.That(propertyType, Is.InstanceOf()); } } diff --git a/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs b/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs index fac4f43db38..0878df7f283 100644 --- a/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs @@ -15,10 +15,10 @@ protected override string TypeName get { return "XDoc"; } } - protected override bool AppliesTo(Dialect.Dialect dialect) - { - return TestDialect.SupportsSqlType(new SqlType(DbType.Xml)); - } + protected override bool AppliesTo(Dialect.Dialect dialect) + { + return TestDialect.SupportsSqlType(new SqlType(DbType.Xml)); + } [Test] public void ReadWrite() @@ -26,7 +26,7 @@ public void ReadWrite() using (var s = OpenSession()) { var docEntity = new XDocClass {Id = 1 }; - docEntity.Document = XDocument.Parse("my Text"); + docEntity.Document = XDocument.Parse("my Text"); s.Save(docEntity); s.Flush(); } @@ -35,18 +35,18 @@ public void ReadWrite() { var docEntity = s.Get(1); var document = docEntity.Document; - document.Should().Not.Be.Null(); - document.Document.Root.ToString(SaveOptions.DisableFormatting).Should().Contain("my Text"); + Assert.That(document, Is.Not.Null); + Assert.That(document.Document.Root.ToString(SaveOptions.DisableFormatting), Is.StringContaining("my Text")); var xmlElement = new XElement("Pizza", new XAttribute("temp", "calda")); - document.Document.Root.Add(xmlElement); + document.Document.Root.Add(xmlElement); s.Save(docEntity); s.Flush(); } using (var s = OpenSession()) { var docEntity = s.Get(1); - var document = docEntity.Document; - document.Document.Root.ToString(SaveOptions.DisableFormatting).Should().Contain("Pizza temp=\"calda\""); + var document = docEntity.Document; + Assert.That(document.Document.Root.ToString(SaveOptions.DisableFormatting), Is.StringContaining("Pizza temp=\"calda\"")); s.Delete(docEntity); s.Flush(); } @@ -66,7 +66,7 @@ public void InsertNullValue() using (ISession s = OpenSession()) { var docEntity = s.Get(1); - docEntity.Document.Should().Be.Null(); + Assert.That(docEntity.Document, Is.Null); s.Delete(docEntity); s.Flush(); } @@ -77,7 +77,7 @@ public void AutoDiscoverFromNetType() { // integration test to be 100% sure var propertyType = sessions.GetEntityPersister(typeof (XDocClass).FullName).GetPropertyType("AutoDocument"); - propertyType.Should().Be.InstanceOf(); + Assert.That(propertyType, Is.InstanceOf()); } } } diff --git a/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs b/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs index a4834a3e930..3a5d4ff9387 100644 --- a/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs @@ -14,10 +14,10 @@ protected override string TypeName get { return "XmlDoc"; } } - protected override bool AppliesTo(Dialect.Dialect dialect) - { - return TestDialect.SupportsSqlType(new SqlType(DbType.Xml)); - } + protected override bool AppliesTo(Dialect.Dialect dialect) + { + return TestDialect.SupportsSqlType(new SqlType(DbType.Xml)); + } [Test] public void ReadWrite() @@ -35,8 +35,8 @@ public void ReadWrite() { var docEntity = s.Get(1); var document = docEntity.Document; - document.Should().Not.Be.Null(); - document.OuterXml.Should().Contain("my Text"); + Assert.That(document, Is.Not.Null); + Assert.That(document.OuterXml, Is.StringContaining("my Text")); var xmlElement = document.CreateElement("Pizza"); xmlElement.SetAttribute("temp", "calda"); document.FirstChild.AppendChild(xmlElement); @@ -46,7 +46,7 @@ public void ReadWrite() using (var s = OpenSession()) { var docEntity = s.Get(1); - docEntity.Document.OuterXml.Should().Contain("Pizza temp=\"calda\""); + Assert.That(docEntity.Document.OuterXml, Is.StringContaining("Pizza temp=\"calda\"")); s.Delete(docEntity); s.Flush(); } @@ -66,7 +66,7 @@ public void InsertNullValue() using (ISession s = OpenSession()) { var docEntity = s.Get(1); - docEntity.Document.Should().Be.Null(); + Assert.That(docEntity.Document, Is.Null); s.Delete(docEntity); s.Flush(); } @@ -77,7 +77,7 @@ public void AutoDiscoverFromNetType() { // integration test to be 100% sure var propertyType = sessions.GetEntityPersister(typeof (XmlDocClass).FullName).GetPropertyType("AutoDocument"); - propertyType.Should().Be.InstanceOf(); + Assert.That(propertyType, Is.InstanceOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs index df494332e80..99da4bf94be 100644 --- a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs +++ b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs @@ -12,13 +12,13 @@ public class AnyExtensionTests [Test] public void WhenEmptyListThenReturnFalse() { - (new object[0]).Any().Should().Be.False(); + Assert.That((new object[0]).Any(), Is.False); } [Test] public void WhenNoEmptyListThenReturnTrue() { - (new object[1]).Any().Should().Be.True(); + Assert.That((new object[1]).Any(), Is.True); } private class MyDisposableList: IEnumerable @@ -70,7 +70,7 @@ public void WhenDisposableListThenCallDispose() { var disposeCalled = false; (new MyDisposableList(()=> disposeCalled = true)).Any(); - disposeCalled.Should().Be.True(); + Assert.That(disposeCalled, Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs index 349bb9ac7b4..be147a35799 100644 --- a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs +++ b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs @@ -11,19 +11,19 @@ public class FirstExtensionTests [Test] public void WhenNullThenThenThrows() { - Executing.This(() => ((IEnumerable)null).First()).Should().Throw(); + Assert.That(() => ((IEnumerable)null).First(), Throws.TypeOf()); } [Test] public void WhenHasElementsThenReturnFirst() { - (new[] { 2, 1 }).First().Should().Be(2); + Assert.That((new[] { 2, 1 }).First(), Is.EqualTo(2)); } [Test] public void WhenEmptyThenThrowsInvalidOperation() { - Executing.This(() => (new object[0]).First()).Should().Throw(); + Assert.That(() => (new object[0]).First(), Throws.TypeOf()); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs index 97f857e851f..c69cea9d5c5 100644 --- a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs +++ b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs @@ -11,19 +11,19 @@ public class FirstOrNullExtensionTests [Test] public void WhenNullThenThenThrows() { - Executing.This(() => ((IEnumerable)null).FirstOrNull()).Should().Throw(); + Assert.That(() => ((IEnumerable)null).FirstOrNull(), Throws.TypeOf()); } [Test] public void WhenHasElementsThenReturnFirst() { - (new[] { 2, 1 }).FirstOrNull().Should().Be(2); + Assert.That((new[] { 2, 1 }).FirstOrNull(), Is.EqualTo(2)); } [Test] public void WhenEmptyThenReturnNull() { - (new object[0]).FirstOrNull().Should().Be.Null(); + Assert.That((new object[0]).FirstOrNull(), Is.Null); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs b/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs index 3ec4af63224..baf550ea757 100644 --- a/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs +++ b/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs @@ -10,37 +10,37 @@ public class PropertiesHelperTest [Test] public void WhenInvalidBoolValueThenUseDefault() { - PropertiesHelper.GetBoolean("myProp", new Dictionary {{"myProp", "pizza"}}, false).Should().Be.False(); + Assert.That(PropertiesHelper.GetBoolean("myProp", new Dictionary {{"myProp", "pizza"}}, false), Is.False); } [Test] public void WhenInvalidInt32ValueThenUseDefault() { - PropertiesHelper.GetInt32("myProp", new Dictionary { { "myProp", "pizza" } }, 5).Should().Be(5); + Assert.That(PropertiesHelper.GetInt32("myProp", new Dictionary { { "myProp", "pizza" } }, 5), Is.EqualTo(5)); } [Test] public void WhenInvalidInt64ValueThenUseDefault() { - PropertiesHelper.GetInt64("myProp", new Dictionary { { "myProp", "pizza" } }, 5).Should().Be(5); + Assert.That(PropertiesHelper.GetInt64("myProp", new Dictionary { { "myProp", "pizza" } }, 5), Is.EqualTo(5)); } [Test] public void WhenValidBoolValueThenValue() { - PropertiesHelper.GetBoolean("myProp", new Dictionary { { "myProp", "true" } }, false).Should().Be.True(); + Assert.That(PropertiesHelper.GetBoolean("myProp", new Dictionary { { "myProp", "true" } }, false), Is.True); } [Test] public void WhenValidInt32ValueThenValue() { - PropertiesHelper.GetInt32("myProp", new Dictionary { { "myProp", int.MaxValue.ToString() } }, 5).Should().Be(int.MaxValue); + Assert.That(PropertiesHelper.GetInt32("myProp", new Dictionary { { "myProp", int.MaxValue.ToString() } }, 5), Is.EqualTo(int.MaxValue)); } [Test] public void WhenValidInt64ValueThenValue() { - PropertiesHelper.GetInt64("myProp", new Dictionary { { "myProp", long.MaxValue.ToString() } }, 5).Should().Be(long.MaxValue); + Assert.That(PropertiesHelper.GetInt64("myProp", new Dictionary { { "myProp", long.MaxValue.ToString() } }, 5), Is.EqualTo(long.MaxValue)); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs b/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs index 8010a34661e..619a97d9a33 100644 --- a/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs +++ b/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs @@ -40,43 +40,43 @@ string IHasSomething.Something public void WhenNullSourceThenNotFound() { System.Type source= null; - source.HasProperty("whatever").Should().Be.False(); + Assert.That(source.HasProperty("whatever"), Is.False); } [Test] public void WhenNullNameThenNotFound() { - typeof(Person).HasProperty(null).Should().Be.False(); + Assert.That(typeof(Person).HasProperty(null), Is.False); } [Test] public void WhenPropertyIsInClassThenFound() { - typeof(Person).HasProperty("Normal").Should().Be.True(); + Assert.That(typeof(Person).HasProperty("Normal"), Is.True); } [Test] public void WhenPropertyIsInBaseClassThenFound() { - typeof(Person).HasProperty("Id").Should().Be.True(); + Assert.That(typeof(Person).HasProperty("Id"), Is.True); } [Test] public void WhenPropertyIsExplicitImplementationOfInterfaceThenFound() { - typeof(Person).HasProperty("Something").Should().Be.True(); + Assert.That(typeof(Person).HasProperty("Something"), Is.True); } [Test] public void WhenFieldThenNotFound() { - typeof(Person).HasProperty("_firstName").Should().Be.False(); + Assert.That(typeof(Person).HasProperty("_firstName"), Is.False); } [Test] public void WhenPropertyNameWithDifferentCaseThenNotFound() { - typeof(Person).HasProperty("FirstName").Should().Be.False(); + Assert.That(typeof(Person).HasProperty("FirstName"), Is.False); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/ReflectionHelperIsMethodOfTests.cs b/src/NHibernate.Test/UtilityTest/ReflectionHelperIsMethodOfTests.cs index 9e35b4caa73..c9becea4f56 100644 --- a/src/NHibernate.Test/UtilityTest/ReflectionHelperIsMethodOfTests.cs +++ b/src/NHibernate.Test/UtilityTest/ReflectionHelperIsMethodOfTests.cs @@ -4,7 +4,6 @@ using NHibernate.Linq; using NHibernate.Util; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest { @@ -13,19 +12,20 @@ public class ReflectionHelperIsMethodOfTests [Test] public void WhenNullMethodInfoThenThrows() { - ((MethodInfo) null).Executing(mi => mi.IsMethodOf(typeof (Object))).Throws(); + Assert.Throws(() => ((MethodInfo) null).IsMethodOf(typeof (Object))); } [Test] public void WhenNullTypeThenThrows() { - ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).Executing(mi => mi.IsMethodOf(null)).Throws(); + var methodInfo = ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)); + Assert.Throws(() => methodInfo.IsMethodOf(null)); } [Test] public void WhenDeclaringTypeMatchThenTrue() { - ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).IsMethodOf(typeof(List)).Should().Be.True(); + Assert.That(ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).IsMethodOf(typeof(List)), Is.True); } private class MyCollection: List @@ -36,33 +36,33 @@ private class MyCollection: List [Test] public void WhenCustomTypeMatchThenTrue() { - ReflectionHelper.GetMethodDefinition(t => t.Contains(5)).IsMethodOf(typeof(List)).Should().Be.True(); + Assert.That(ReflectionHelper.GetMethodDefinition(t => t.Contains(5)).IsMethodOf(typeof(List)), Is.True); } [Test] public void WhenTypeIsGenericDefinitionAndMatchThenTrue() { - ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).IsMethodOf(typeof(List<>)).Should().Be.True(); + Assert.That(ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).IsMethodOf(typeof(List<>)), Is.True); } [Test] public void WhenTypeIsGenericImplementedInterfaceAndMatchThenTrue() { var containsMethodDefinition = ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)); - containsMethodDefinition.IsMethodOf(typeof(ICollection)).Should().Be.True(); + Assert.That(containsMethodDefinition.IsMethodOf(typeof(ICollection)), Is.True); } [Test] public void WhenTypeIsGenericImplementedInterfaceAndMatchGenericInterfaceDefinitionThenTrue() { var containsMethodDefinition = ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)); - containsMethodDefinition.IsMethodOf(typeof(ICollection<>)).Should().Be.True(); + Assert.That(containsMethodDefinition.IsMethodOf(typeof(ICollection<>)), Is.True); } [Test] public void WhenNoMatchThenFalse() { - ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).IsMethodOf(typeof(IEnumerable<>)).Should().Be.False(); + Assert.That(ReflectionHelper.GetMethodDefinition>(t => t.Contains(5)).IsMethodOf(typeof(IEnumerable<>)), Is.False); } private abstract class MyAbstractClass @@ -79,14 +79,14 @@ private class MyClass : MyAbstractClass public void WhenTypeIsGenericImplementedAbstractAndMatchThenTrue() { var containsMethodDefinition = ReflectionHelper.GetMethodDefinition(t => t.MyMethod()); - containsMethodDefinition.IsMethodOf(typeof(MyAbstractClass)).Should().Be.True(); + Assert.That(containsMethodDefinition.IsMethodOf(typeof(MyAbstractClass)), Is.True); } [Test] public void WhenTypeIsGenericImplementedAbstractAndMatchGenericInterfaceDefinitionThenTrue() { var containsMethodDefinition = ReflectionHelper.GetMethodDefinition(t => t.MyMethod()); - containsMethodDefinition.IsMethodOf(typeof(MyAbstractClass<>)).Should().Be.True(); + Assert.That(containsMethodDefinition.IsMethodOf(typeof(MyAbstractClass<>)), Is.True); } } } \ No newline at end of file diff --git a/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs b/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs index 929b94ebdb8..9bb4699fd67 100644 --- a/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs +++ b/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs @@ -20,55 +20,55 @@ public void GenericMethod() { } [Test] public void WhenGetMethodForNullThenThrows() { - Executing.This(() => ReflectionHelper.GetMethodDefinition((Expression) null)).Should().Throw(); + Assert.That(() => ReflectionHelper.GetMethodDefinition((Expression) null), Throws.TypeOf()); } [Test] public void WhenGenericGetMethodForNullThenThrows() { - Executing.This(() => ReflectionHelper.GetMethodDefinition((Expression>)null)).Should().Throw(); + Assert.That(() => ReflectionHelper.GetMethodDefinition((Expression>)null), Throws.TypeOf()); } [Test] public void WhenGetPropertyForNullThenThrows() { - Executing.This(() => ReflectionHelper.GetProperty(null)).Should().Throw(); + Assert.That(() => ReflectionHelper.GetProperty(null), Throws.TypeOf()); } [Test] public void WhenGenericMethodOfClassThenReturnGenericDefinition() { - ReflectionHelper.GetMethodDefinition(mc => mc.GenericMethod()).Should().Be(typeof (MyClass).GetMethod("GenericMethod").GetGenericMethodDefinition()); + Assert.That(ReflectionHelper.GetMethodDefinition(mc => mc.GenericMethod()), Is.EqualTo(typeof (MyClass).GetMethod("GenericMethod").GetGenericMethodDefinition())); } [Test] public void WhenNoGenericMethodOfClassThenReturnDefinition() { - ReflectionHelper.GetMethodDefinition(mc => mc.NoGenericMethod()).Should().Be(typeof(MyClass).GetMethod("NoGenericMethod")); + Assert.That(ReflectionHelper.GetMethodDefinition(mc => mc.NoGenericMethod()), Is.EqualTo(typeof(MyClass).GetMethod("NoGenericMethod"))); } [Test] public void WhenStaticGenericMethodThenReturnGenericDefinition() { - ReflectionHelper.GetMethodDefinition(() => Enumerable.All(null, null)).Should().Be(typeof(Enumerable).GetMethod("All").GetGenericMethodDefinition()); + Assert.That(ReflectionHelper.GetMethodDefinition(() => Enumerable.All(null, null)), Is.EqualTo(typeof(Enumerable).GetMethod("All").GetGenericMethodDefinition())); } [Test] public void WhenStaticNoGenericMethodThenReturnDefinition() { - ReflectionHelper.GetMethodDefinition(() => string.Join(null, null)).Should().Be(typeof(string).GetMethod("Join", new []{typeof(string), typeof(string[])})); + Assert.That(ReflectionHelper.GetMethodDefinition(() => string.Join(null, null)), Is.EqualTo(typeof(string).GetMethod("Join", new []{typeof(string), typeof(string[])}))); } [Test] public void WhenGetPropertyThenReturnPropertyInfo() { - ReflectionHelper.GetProperty(mc => mc.BaseProperty).Should().Be(typeof(MyClass).GetProperty("BaseProperty")); + Assert.That(ReflectionHelper.GetProperty(mc => mc.BaseProperty), Is.EqualTo(typeof(MyClass).GetProperty("BaseProperty"))); } [Test] public void WhenGetPropertyForBoolThenReturnPropertyInfo() { - ReflectionHelper.GetProperty(mc => mc.BaseBool).Should().Be(typeof(MyClass).GetProperty("BaseBool")); + Assert.That(ReflectionHelper.GetProperty(mc => mc.BaseBool), Is.EqualTo(typeof(MyClass).GetProperty("BaseBool"))); } } } \ No newline at end of file From e92f8a1d58afe6cabc424737dab9b72c535a67d0 Mon Sep 17 00:00:00 2001 From: Ricardo Peres Date: Sun, 12 Oct 2014 21:28:43 +0100 Subject: [PATCH 29/30] Unit test for NH-3589 --- src/NHibernate.Test/NHibernate.Test.csproj | 5 +- .../VersionTest/Db/LazyVersionTest.cs | 65 +++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 src/NHibernate.Test/VersionTest/Db/LazyVersionTest.cs diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj index 0c57966358b..c60b89ab659 100644 --- a/src/NHibernate.Test/NHibernate.Test.csproj +++ b/src/NHibernate.Test/NHibernate.Test.csproj @@ -2483,6 +2483,7 @@ + @@ -2544,7 +2545,9 @@ Designer - + + Designer + diff --git a/src/NHibernate.Test/VersionTest/Db/LazyVersionTest.cs b/src/NHibernate.Test/VersionTest/Db/LazyVersionTest.cs new file mode 100644 index 00000000000..bda1a83479a --- /dev/null +++ b/src/NHibernate.Test/VersionTest/Db/LazyVersionTest.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Xml; +using NHibernate.Bytecode.CodeDom; +using NHibernate.Cfg; +using NHibernate.Mapping.ByCode; +using NHibernate.Test.Linq; +using NUnit.Framework; + +namespace NHibernate.Test.VersionTest.Db +{ + public class ProductWithVersionAndLazyProperty + { + byte[] _version = null; + + public virtual int Id { get; set; } + + public virtual string Summary { get; set; } + + public virtual byte[] Version { get { return _version; } } + } + + [TestFixture] + public class LazyVersionTest : LinqTestCase + { + + protected override void AddMappings(Configuration configuration) + { + var xml = ""; + var doc = new XmlDocument(); + doc.LoadXml(xml); + + configuration.AddDocument(doc); + + base.AddMappings(configuration); + + configuration.SetProperty(NHibernate.Cfg.Environment.Hbm2ddlAuto, SchemaAutoAction.Recreate.ToString()); + configuration.SetProperty(NHibernate.Cfg.Environment.FormatSql, Boolean.TrueString); + configuration.SetProperty(NHibernate.Cfg.Environment.ShowSql, Boolean.TrueString); + } + + [Test] + public void CanUseVersionOnEntityWithLazyProperty() + { + //NH-3589 + using (session.BeginTransaction()) + { + this.session.Save(new ProductWithVersionAndLazyProperty { Id = 1, Summary = "Testing, 1, 2, 3" }); + + session.Flush(); + + this.session.Clear(); + + var p = this.session.Get(1); + + p.Summary += ", 4!"; + + session.Flush(); + } + } + } +} From fac75a20b14232325e3b1cb122aa9ed0808e9dca Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Wed, 19 Nov 2014 11:02:52 +1300 Subject: [PATCH 30/30] Fix build --- .../Bytecode/Lightweight/BytecodeProviderFixture.cs | 1 - src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs | 1 - .../CfgTest/ConfigurationAddMappingEvents.cs | 1 - src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs | 1 - src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs | 1 - .../CfgTest/Loquacious/LambdaConfigurationFixture.cs | 1 - src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs | 1 - .../Criteria/Lambda/ExpressionProcessorFixture.cs | 1 - .../Criteria/Lambda/FunctionsIntegrationFixture.cs | 1 - src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs | 1 - src/NHibernate.Test/DialectTest/DialectFixture.cs | 1 - .../DbProviderFactoryDriveConnectionCommandProviderTest.cs | 1 - .../DriverTest/FirebirdClientDriverFixture.cs | 1 - .../DriverTest/ReflectionBasedDriverTest.cs | 1 - src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs | 1 - .../GenericMethodsTests/GenericMethodShouldBeProxied.cs | 1 - .../InterfaceWithEqualsGethashcodeTests.cs | 1 - .../DynamicProxyTests/LazyFieldInterceptorSerializable.cs | 1 - .../DynamicProxyTests/ProxiedMembers/Fixture.cs | 1 - .../ProxiedMembers/MetodWithRefDictionaryTest.cs | 1 - src/NHibernate.Test/Events/DisposableListenersTest.cs | 1 - .../GenericTest/EnumGeneric/EnumGenericFixture.cs | 1 - src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs | 1 - src/NHibernate.Test/Hql/Ast/BulkManipulation.cs | 1 - src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs | 1 - src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs | 1 - .../Insertordering/InsertOrderingFixture.cs | 1 - src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs | 1 - src/NHibernate.Test/Linq/ByMethod/CastTests.cs | 1 - src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs | 1 - src/NHibernate.Test/Linq/CustomExtensionsExample.cs | 1 - src/NHibernate.Test/Linq/EagerLoadTests.cs | 1 - src/NHibernate.Test/Linq/LinqTestCase.cs | 1 - .../Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs | 1 - src/NHibernate.Test/Linq/ProjectionsTests.cs | 1 - src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs | 1 - src/NHibernate.Test/Logging/Log4NetLoggerTest.cs | 1 - src/NHibernate.Test/Logging/LoggerProviderTest.cs | 1 - .../ConventionModelMapperTests/ComponetsAccessorTests.cs | 1 - .../ComponetsParentAccessorTests.cs | 1 - .../PropertyToFieldAccessorTest.cs | 1 - .../ConventionModelMapperTests/SafePoidTests.cs | 1 - .../VersionOnBaseClassIntegrationTest.cs | 1 - .../MappingByCode/CustomizerHolderMergeTest.cs | 1 - .../ExplicitMappingTests/AllPropertiesRegistrationTests.cs | 1 - .../BagOfNestedComponentsWithParentTest.cs | 1 - .../ExplicitMappingTests/BasicMappingOfSimpleClass.cs | 1 - .../ExplicitMappingTests/ClassWithComponentsTest.cs | 1 - .../ExplicitMappingTests/ColumnsNamingConvetions.cs | 1 - .../ExplicitMappingTests/ComponentAsIdTests.cs | 1 - .../MappingByCode/ExplicitMappingTests/ComposedIdTests.cs | 1 - .../ClassMappingRegistrationTest.cs | 1 - .../ComponentMappingRegistrationTest.cs | 1 - .../JoinedSubclassMappingRegistration.cs | 1 - .../ModelMapperAddMappingByTypeTests.cs | 1 - .../SubclassMappingRegistration.cs | 1 - .../UnionSubclassMappingRegistrationTest.cs | 1 - .../ExplicitMappingTests/DynamicComponentMappingTests.cs | 1 - .../MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs | 1 - .../MappingOfPrivateMembersOnRootEntity.cs | 1 - .../MappingByCode/ExplicitMappingTests/NaturalIdTests.cs | 1 - .../ExplicitMappingTests/NestedComponetsTests.cs | 1 - .../ExplicitMappingTests/OptimisticLockModeTests.cs | 1 - .../MappingByCode/ExplicitMappingTests/PoidTests.cs | 1 - .../ExplicitMappingTests/RootClassPropertiesSplitsTests.cs | 1 - .../ExplicitMappingTests/SubclassPropertiesSplitsTests.cs | 1 - .../MappingByCode/ExplicitMappingTests/VersionTests.cs | 1 - .../ComponentMappingRegistrationTests.cs | 1 - .../JoinedSubclassMappingStrategyTests.cs | 1 - .../JoinedSubclassSequenceRegistrationTests.cs | 1 - .../RootClassMappingStrategyTests.cs | 1 - .../SplitPropertiesRegistrationTests.cs | 1 - .../SubclassMappingStrategyTests.cs | 1 - .../SubclassSequenceRegistrationTests.cs | 1 - .../UnionSubclassMappingStrategyTests.cs | 1 - .../UnionSubclassSequenceRegistrationTests.cs | 1 - src/NHibernate.Test/MappingByCode/GeneratorTests.cs | 1 - src/NHibernate.Test/MappingByCode/ImportTests.cs | 1 - .../MappingByCode/IntegrationTests/NH2738/Fixture.cs | 1 - .../MappersTests/AbstractPropertyContainerMapperTest.cs | 1 - .../MappingByCode/MappersTests/AnyMapperTest.cs | 1 - .../ClassMapperTests/CheckMixingPOIDStrategiesTests.cs | 1 - .../ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs | 1 - .../MappersTests/ClassMapperTests/ComponetAsIdTests.cs | 1 - .../MappersTests/ClassMapperTests/ComposedIdTests.cs | 1 - .../MappersTests/ClassMapperTests/SetPersisterTests.cs | 1 - .../ClassMapperTests/TablesSincronizationTests.cs | 1 - .../MappingByCode/MappersTests/CollectionIdMapperTests.cs | 1 - .../MappingByCode/MappersTests/ComponentAsIdTests.cs | 1 - .../MappingByCode/MappersTests/ComposedIdMapperTests.cs | 1 - .../AnyPropertyOnDynamicCompoTests.cs | 1 - .../BagPropertyOnDynamicCompoTests.cs | 1 - .../ComponentPropertyOnDynamicCompoTests.cs | 1 - .../DynCompAttributesSettingTest.cs | 1 - .../DynComponentPropertyOnDynamicCompoTests.cs | 1 - .../IdBagPropertyOnDynamicCompoTests.cs | 1 - .../ListPropertyOnDynamicCompoTests.cs | 1 - .../ManyToOnePropertyOnDynamicCompoTests.cs | 1 - .../MapPropertyOnDynamicCompoTests.cs | 1 - .../OneToOnePropertyOnDynamicCompoTests.cs | 1 - .../SetPropertyOnDynamicCompoTests.cs | 1 - .../SimplePropertyOnDynamicCompoTests.cs | 1 - .../MappingByCode/MappersTests/IdBagMapperTest.cs | 1 - .../MappingByCode/MappersTests/IdMapperTest.cs | 1 - .../MappingByCode/MappersTests/JoinMapperTests.cs | 1 - .../JoinedSubclassMapperTests/SetPersisterTests.cs | 1 - .../JoinedSubclassMapperTests/TablesSincronizationTests.cs | 1 - .../MappingByCode/MappersTests/ManyToOneMapperTest.cs | 1 - .../MappingByCode/MappersTests/NaturalIdMapperTest.cs | 1 - .../MappingByCode/MappersTests/OneToOneMapperTest.cs | 1 - .../MappingByCode/MappersTests/PropertyMapperTest.cs | 1 - .../MappersTests/SubclassMapperTests/SetPersisterTests.cs | 1 - .../SubclassMapperTests/TablesSincronizationTests.cs | 1 - .../MappersTests/SubclassMapperWithJoinPropertiesTest.cs | 1 - .../UnionSubclassMapperTests/SetPersisterTests.cs | 1 - .../UnionSubclassMapperTests/TablesSincronizationTests.cs | 1 - .../MappingByCode/MixAutomapping/ArrayCollectionTests.cs | 1 - .../MappingByCode/MixAutomapping/BagCollectionTests.cs | 1 - .../MappingByCode/MixAutomapping/CallCustomConditions.cs | 1 - .../MappingByCode/MixAutomapping/ComponentsTests.cs | 1 - .../DefaultClassHierarchyRepresentationTests.cs | 1 - .../MixAutomapping/DictionaryCollectionTests.cs | 1 - .../MappingByCode/MixAutomapping/EntityTests.cs | 1 - .../MappingByCode/MixAutomapping/InheritedVersionTest.cs | 1 - .../MappingByCode/MixAutomapping/ManyToOneTest.cs | 1 - .../MappingByCode/MixAutomapping/OneToManyTests.cs | 1 - .../MappingByCode/MixAutomapping/PoidTests.cs | 1 - .../MixAutomapping/PolymorphicPropertiesMapping.cs | 1 - .../MixAutomapping/PropertiesExclusionTests.cs | 1 - .../MappingByCode/MixAutomapping/RootEntityTests.cs | 1 - .../MappingByCode/MixAutomapping/SetCollectionTests.cs | 1 - .../ModelExplicitDeclarationsHolderMergeTest.cs | 1 - .../CompatibilityWithCandidatePersistentMembers.cs | 1 - .../GetFirstImplementorConcreteClassesTest.cs | 1 - .../TypeExtensionsTests/GetFirstImplementorTest.cs | 1 - .../TypeExtensionsTests/GetMemberFromInterfacesTest.cs | 1 - .../TypeExtensionsTests/GetMemberFromReflectedTest.cs | 1 - .../GetPropertyOrFieldMatchingNameTest.cs | 1 - src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs | 1 - .../NHSpecificTest/DataReaderWrapperTest/Fixture.cs | 1 - .../NHSpecificTest/Dates/DateTimeOffsetFixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs | 1 - .../NHSpecificTest/NH1323/CheckViability.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs | 6 ------ src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs | 1 - .../NHSpecificTest/NH1965/ReattachWithCollectionTest.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs | 1 - .../NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs | 1 - .../NHSpecificTest/NH2147/DefaultBatchSize.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs | 1 - .../NH2188/AppDomainWithMultipleSearchPath.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs | 1 - .../NH2324/BulkUpdateWithCustomCompositeType.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs | 1 - .../NH2568/UsageOfCustomCollectionPersisterTests.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs | 1 - src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs | 5 ++--- src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs | 5 ++--- src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs | 1 - .../ProxyValidator/ShouldBeProxiableTests.cs | 1 - .../Parameters/NamedParameterSpecificationTest.cs | 1 - .../PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs | 1 - src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs | 1 - .../FetchingLazyCollections/LazyCollectionFetchTests.cs | 7 ++++--- src/NHibernate.Test/Stateless/StatelessSessionFixture.cs | 1 - .../Stateless/StatelessWithRelationsFixture.cs | 1 - src/NHibernate.Test/Subselect/ClassSubselectFixture.cs | 1 - .../Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs | 1 - .../TransformTests/ImplementationOfEqualityTests.cs | 1 - src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs | 1 - src/NHibernate.Test/TypesTest/CharClassFixture.cs | 1 - src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs | 1 - src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs | 1 - src/NHibernate.Test/TypesTest/DateTypeTest.cs | 1 - src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs | 1 - src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs | 1 - src/NHibernate.Test/TypesTest/UriTypeFixture.cs | 1 - src/NHibernate.Test/TypesTest/XDocTypeFixture.cs | 1 - src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs | 1 - .../EnumerableExtensionsTests/AnyExtensionTests.cs | 1 - .../EnumerableExtensionsTests/FirstExtensionTests.cs | 1 - .../EnumerableExtensionsTests/FirstOrNullExtensionTests.cs | 1 - src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs | 1 - .../UtilityTest/ReflectHelperGetProperty.cs | 1 - src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs | 1 - 234 files changed, 8 insertions(+), 245 deletions(-) diff --git a/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs b/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs index 35d7295c299..17654928cb2 100644 --- a/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs +++ b/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs @@ -2,7 +2,6 @@ using NHibernate.Bytecode; using NHibernate.Bytecode.Lightweight; using NUnit.Framework; -using SharpTestsEx; using Environment=NHibernate.Cfg.Environment; namespace NHibernate.Test.Bytecode.Lightweight diff --git a/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs b/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs index e09db5cfbbe..c0be0362d67 100644 --- a/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs +++ b/src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs @@ -2,7 +2,6 @@ using System.Linq; using NHibernate.Properties; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.CfgTest { diff --git a/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs b/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs index 6eb619e5c95..7c1f156e261 100644 --- a/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs +++ b/src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.Loquacious; using NHibernate.Dialect; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.CfgTest { diff --git a/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs b/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs index fbaabb6c1fe..d25155c0ab1 100644 --- a/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs +++ b/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs @@ -5,7 +5,6 @@ using NHibernate.Cfg; using NHibernate.Cfg.ConfigurationSchema; using System.Xml; -using SharpTestsEx; namespace NHibernate.Test.CfgTest { diff --git a/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs b/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs index a3c6be54418..c39cf629650 100644 --- a/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs +++ b/src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs @@ -3,7 +3,6 @@ using NHibernate.Bytecode; using NHibernate.Properties; using NUnit.Framework; -using SharpTestsEx; using Environment = NHibernate.Cfg.Environment; namespace NHibernate.Test.CfgTest diff --git a/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs b/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs index 40a72b1c4b8..8d13ea6e7c8 100644 --- a/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs +++ b/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs @@ -10,7 +10,6 @@ using NUnit.Framework; using System.Data; using NHibernate.Exceptions; -using SharpTestsEx; namespace NHibernate.Test.CfgTest.Loquacious { diff --git a/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs b/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs index d526081de47..0dc2bb77176 100644 --- a/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs +++ b/src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs @@ -1,7 +1,6 @@ using System.Linq; using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.CfgTest.Loquacious { diff --git a/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs b/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs index cc0b2ab4ce3..d98df133848 100644 --- a/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs +++ b/src/NHibernate.Test/Criteria/Lambda/ExpressionProcessorFixture.cs @@ -7,7 +7,6 @@ using NHibernate.Criterion; using NHibernate.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Criteria.Lambda { diff --git a/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs b/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs index 14ddeff05ac..63e200b60d6 100644 --- a/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs +++ b/src/NHibernate.Test/Criteria/Lambda/FunctionsIntegrationFixture.cs @@ -2,7 +2,6 @@ using System.Collections; using NHibernate.Criterion; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Criteria.Lambda { diff --git a/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs b/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs index d4586697cfb..6e138eff699 100644 --- a/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs +++ b/src/NHibernate.Test/Criteria/Lambda/IntegrationFixture.cs @@ -4,7 +4,6 @@ using System.Linq; using NUnit.Framework; -using SharpTestsEx; using NHibernate.Criterion; diff --git a/src/NHibernate.Test/DialectTest/DialectFixture.cs b/src/NHibernate.Test/DialectTest/DialectFixture.cs index cccc59f3f77..7a4814b3d52 100644 --- a/src/NHibernate.Test/DialectTest/DialectFixture.cs +++ b/src/NHibernate.Test/DialectTest/DialectFixture.cs @@ -7,7 +7,6 @@ using NHibernate.SqlCommand; using NHibernate.SqlTypes; using NUnit.Framework; -using SharpTestsEx; using Environment = NHibernate.Cfg.Environment; namespace NHibernate.Test.DialectTest diff --git a/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs b/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs index fcc8d26126f..c87a3fb87ad 100644 --- a/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs +++ b/src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs @@ -2,7 +2,6 @@ using System.Data.Common; using NHibernate.Driver; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DriverTest { diff --git a/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs b/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs index d5e6fde13d5..e585c48dee8 100644 --- a/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs +++ b/src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs @@ -3,7 +3,6 @@ using NHibernate.SqlCommand; using NHibernate.SqlTypes; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DriverTest { diff --git a/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs b/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs index a6179357457..565879b2ce5 100644 --- a/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs +++ b/src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Driver; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DriverTest { diff --git a/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs b/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs index 2d25f9ae8c2..6ae81fb70dc 100644 --- a/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs +++ b/src/NHibernate.Test/DriverTest/Sql2008DateTime2Test.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg; using NHibernate.Dialect; using NUnit.Framework; -using SharpTestsEx; using Environment = NHibernate.Cfg.Environment; namespace NHibernate.Test.DriverTest diff --git a/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs b/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs index aa2440e1629..562e5fa0a16 100644 --- a/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs +++ b/src/NHibernate.Test/DynamicProxyTests/GenericMethodsTests/GenericMethodShouldBeProxied.cs @@ -1,6 +1,5 @@ using NHibernate.Proxy.DynamicProxy; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DynamicProxyTests.GenericMethodsTests { diff --git a/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs b/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs index cd678c4f0d4..78111ec8172 100644 --- a/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs +++ b/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using NHibernate.Proxy.DynamicProxy; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DynamicProxyTests { diff --git a/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs b/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs index 829dc277a3a..c21eba615f4 100644 --- a/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs +++ b/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs @@ -3,7 +3,6 @@ using NHibernate.Proxy; using NUnit.Framework; using NHibernate.Intercept; -using SharpTestsEx; namespace NHibernate.Test.DynamicProxyTests { diff --git a/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/Fixture.cs b/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/Fixture.cs index e67901539d7..a7c573a35db 100644 --- a/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/Fixture.cs +++ b/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Proxy.DynamicProxy; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DynamicProxyTests.ProxiedMembers { diff --git a/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs b/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs index 051130a2cce..b301cea1e50 100644 --- a/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs +++ b/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using NHibernate.Proxy.DynamicProxy; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.DynamicProxyTests.ProxiedMembers { diff --git a/src/NHibernate.Test/Events/DisposableListenersTest.cs b/src/NHibernate.Test/Events/DisposableListenersTest.cs index 682b153488f..e1da63935bf 100644 --- a/src/NHibernate.Test/Events/DisposableListenersTest.cs +++ b/src/NHibernate.Test/Events/DisposableListenersTest.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg; using NHibernate.Event; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Events { diff --git a/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs b/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs index 5473435110c..259cbedafea 100644 --- a/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs +++ b/src/NHibernate.Test/GenericTest/EnumGeneric/EnumGenericFixture.cs @@ -4,7 +4,6 @@ using NHibernate.Persister.Entity; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.GenericTest.EnumGeneric { diff --git a/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs b/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs index d4661745654..e9cd5847236 100644 --- a/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs +++ b/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.Loquacious; using NHibernate.Tuple.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.GhostProperty { diff --git a/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs b/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs index 7853a34e054..29453fbaf40 100644 --- a/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs +++ b/src/NHibernate.Test/Hql/Ast/BulkManipulation.cs @@ -6,7 +6,6 @@ using NHibernate.Id; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Hql.Ast { diff --git a/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs b/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs index eadeb277b62..08b52f91aef 100644 --- a/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs +++ b/src/NHibernate.Test/Hql/Ast/LimitClauseFixture.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg; using NHibernate.Hql.Ast.ANTLR; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Hql.Ast { diff --git a/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs b/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs index 4e471d012df..0b669217dd9 100644 --- a/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs +++ b/src/NHibernate.Test/Hql/Ast/QuerySubstitutionTest.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg; using NUnit.Framework; using NHibernate.Cfg.Loquacious; -using SharpTestsEx; namespace NHibernate.Test.Hql.Ast { diff --git a/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs b/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs index 5da94051892..631a068309d 100644 --- a/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs +++ b/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs @@ -10,7 +10,6 @@ using NHibernate.SqlCommand; using NHibernate.SqlTypes; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Insertordering { diff --git a/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs b/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs index 3ebe4901a1e..57adb33b807 100644 --- a/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs +++ b/src/NHibernate.Test/Linq/BooleanMethodExtensionExample.cs @@ -12,7 +12,6 @@ using NHibernate.Linq.Visitors; using NHibernate.DomainModel.Northwind.Entities; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq { diff --git a/src/NHibernate.Test/Linq/ByMethod/CastTests.cs b/src/NHibernate.Test/Linq/ByMethod/CastTests.cs index 1f34dfd06fe..ad794c28cc5 100644 --- a/src/NHibernate.Test/Linq/ByMethod/CastTests.cs +++ b/src/NHibernate.Test/Linq/ByMethod/CastTests.cs @@ -2,7 +2,6 @@ using NHibernate.DomainModel.Northwind.Entities; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq.ByMethod { diff --git a/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs b/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs index d30aaa945f2..aa6c1b8807f 100644 --- a/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs +++ b/src/NHibernate.Test/Linq/ByMethod/DistinctTests.cs @@ -2,7 +2,6 @@ using System.Linq; using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq.ByMethod { diff --git a/src/NHibernate.Test/Linq/CustomExtensionsExample.cs b/src/NHibernate.Test/Linq/CustomExtensionsExample.cs index ef683a72107..7f65c5f359a 100644 --- a/src/NHibernate.Test/Linq/CustomExtensionsExample.cs +++ b/src/NHibernate.Test/Linq/CustomExtensionsExample.cs @@ -11,7 +11,6 @@ using NHibernate.Linq.Functions; using NHibernate.Linq.Visitors; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq { diff --git a/src/NHibernate.Test/Linq/EagerLoadTests.cs b/src/NHibernate.Test/Linq/EagerLoadTests.cs index d5d30ef8000..ecdd32d811f 100644 --- a/src/NHibernate.Test/Linq/EagerLoadTests.cs +++ b/src/NHibernate.Test/Linq/EagerLoadTests.cs @@ -2,7 +2,6 @@ using NHibernate.Linq; using NHibernate.DomainModel.Northwind.Entities; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq { diff --git a/src/NHibernate.Test/Linq/LinqTestCase.cs b/src/NHibernate.Test/Linq/LinqTestCase.cs index 0b79e8136b3..79e5cd327f2 100755 --- a/src/NHibernate.Test/Linq/LinqTestCase.cs +++ b/src/NHibernate.Test/Linq/LinqTestCase.cs @@ -4,7 +4,6 @@ using System.Linq; using NHibernate.DomainModel.Northwind.Entities; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq { diff --git a/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs b/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs index a470ef8f0c1..53ebe3150d0 100644 --- a/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs +++ b/src/NHibernate.Test/Linq/LinqToHqlGeneratorsRegistryFactoryTest.cs @@ -3,7 +3,6 @@ using System.Reflection; using NHibernate.Linq.Functions; using NUnit.Framework; -using SharpTestsEx; using Environment = NHibernate.Cfg.Environment; namespace NHibernate.Test.Linq diff --git a/src/NHibernate.Test/Linq/ProjectionsTests.cs b/src/NHibernate.Test/Linq/ProjectionsTests.cs index e069c43a7f2..9966e2ceb76 100644 --- a/src/NHibernate.Test/Linq/ProjectionsTests.cs +++ b/src/NHibernate.Test/Linq/ProjectionsTests.cs @@ -3,7 +3,6 @@ using System.Linq; using NHibernate.DomainModel.Northwind.Entities; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Linq { diff --git a/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs b/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs index e7f483a9e9a..9af288d9d2f 100644 --- a/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs +++ b/src/NHibernate.Test/Linq/StatelessSessionQueringTest.cs @@ -3,7 +3,6 @@ using NHibernate.DomainModel.Northwind.Entities; using NUnit.Framework; using NHibernate.Linq; -using SharpTestsEx; namespace NHibernate.Test.Linq { diff --git a/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs b/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs index d9020209add..9618ace9151 100644 --- a/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs +++ b/src/NHibernate.Test/Logging/Log4NetLoggerTest.cs @@ -1,7 +1,6 @@ using System; using log4net; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Logging { diff --git a/src/NHibernate.Test/Logging/LoggerProviderTest.cs b/src/NHibernate.Test/Logging/LoggerProviderTest.cs index e7a68e82d68..912aa0ded28 100644 --- a/src/NHibernate.Test/Logging/LoggerProviderTest.cs +++ b/src/NHibernate.Test/Logging/LoggerProviderTest.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Logging { diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs index 5d947e614a0..dd4c5d9c347 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsAccessorTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ConventionModelMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs index b688f9840ee..cc59597b991 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/ComponetsParentAccessorTests.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ConventionModelMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs index 7114d452cc0..80c32c951a6 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/PropertyToFieldAccessorTest.cs @@ -3,7 +3,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ConventionModelMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs index 6051e1dcf3d..77b0f21a67e 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/SafePoidTests.cs @@ -1,7 +1,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ConventionModelMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs index 774398a1715..0536505ba2c 100644 --- a/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ConventionModelMapperTests/VersionOnBaseClassIntegrationTest.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ConventionModelMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs b/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs index 0e12f6f3a8e..063351c6572 100644 --- a/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs +++ b/src/NHibernate.Test/MappingByCode/CustomizerHolderMergeTest.cs @@ -1,7 +1,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs index 2dd98a36c2e..97ad2abdb96 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/AllPropertiesRegistrationTests.cs @@ -5,7 +5,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs index bb2aaf3cd86..9cc8336e1d6 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BagOfNestedComponentsWithParentTest.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs index aca7d9c7ffd..78f681a286b 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/BasicMappingOfSimpleClass.cs @@ -5,7 +5,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs index db110d09794..a7ba88e28d4 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ClassWithComponentsTest.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs index af1aa1a035d..d94a89c9712 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ColumnsNamingConvetions.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs index c60ef8fc55c..44a7be27918 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComponentAsIdTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs index 0ade96cd566..d35ec7c4ae2 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ComposedIdTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs index 444017ac25d..2c360b829fb 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ClassMappingRegistrationTest.cs @@ -3,7 +3,6 @@ using NUnit.Framework; using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests.ConformistMappingRegistrationTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs index d09168c51bc..ca57e641890 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ComponentMappingRegistrationTest.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests.ConformistMappingRegistrationTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs index 7623575b262..2f00a049c77 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/JoinedSubclassMappingRegistration.cs @@ -3,7 +3,6 @@ using NUnit.Framework; using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests.ConformistMappingRegistrationTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs index 0bda71bff9f..1e556611708 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/ModelMapperAddMappingByTypeTests.cs @@ -1,7 +1,6 @@ using System; using NUnit.Framework; using NHibernate.Mapping.ByCode; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests.ConformistMappingRegistrationTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs index 50d0afcebb7..3feb6e8a19c 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/SubclassMappingRegistration.cs @@ -3,7 +3,6 @@ using NUnit.Framework; using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests.ConformistMappingRegistrationTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs index c11751de6a1..770924a5fc6 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/ConformistMappingRegistrationTests/UnionSubclassMappingRegistrationTest.cs @@ -3,7 +3,6 @@ using NUnit.Framework; using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests.ConformistMappingRegistrationTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs index 09715f95cc2..6000a8e0eaf 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/DynamicComponentMappingTests.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs index 67fac528f69..459ce4ca242 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/IdBagMappingTest.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs index 8105d89e5b1..95a0f7e56ef 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/MappingOfPrivateMembersOnRootEntity.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs index 35b81ce9bd2..df94d333259 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NaturalIdTests.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs index 0a8a4f926f5..31f773fba07 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/NestedComponetsTests.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/OptimisticLockModeTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/OptimisticLockModeTests.cs index 5d18dccfa59..6a49c66f20b 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/OptimisticLockModeTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/OptimisticLockModeTests.cs @@ -1,7 +1,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs index 9877b5e9b1c..6122e37769b 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/PoidTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs index a407efeb333..420002364d1 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/RootClassPropertiesSplitsTests.cs @@ -2,7 +2,6 @@ using System.Linq; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs index 50263a118ae..b4d90ac3aea 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/SubclassPropertiesSplitsTests.cs @@ -2,7 +2,6 @@ using System.Linq; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs index 0f36c27cf96..0d132e1bea8 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitMappingTests/VersionTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExpliticMappingTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs index 1be9986a58b..fef289f2627 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/ComponentMappingRegistrationTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs index 861dbd3dee8..f0c3ad4e570 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassMappingStrategyTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs index 7cf9dc9754f..d2f7e00b758 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/JoinedSubclassSequenceRegistrationTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs index a7e64cc83b4..ab4a3381779 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/RootClassMappingStrategyTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs index 746e9940e54..2703acde2a7 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SplitPropertiesRegistrationTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs index 55846df1675..718517bac60 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassMappingStrategyTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs index d8b08c63f1d..aa116d847af 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/SubclassSequenceRegistrationTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs index 559d9f9dd34..f72fbe1e6e7 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassMappingStrategyTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs index f883c649b9d..349ae4e2c34 100644 --- a/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs +++ b/src/NHibernate.Test/MappingByCode/ExplicitlyDeclaredModelTests/UnionSubclassSequenceRegistrationTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.ExplicitlyDeclaredModelTests { diff --git a/src/NHibernate.Test/MappingByCode/GeneratorTests.cs b/src/NHibernate.Test/MappingByCode/GeneratorTests.cs index f131ad18c7d..384847c7650 100644 --- a/src/NHibernate.Test/MappingByCode/GeneratorTests.cs +++ b/src/NHibernate.Test/MappingByCode/GeneratorTests.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode { diff --git a/src/NHibernate.Test/MappingByCode/ImportTests.cs b/src/NHibernate.Test/MappingByCode/ImportTests.cs index fd904f8faff..b86474d4051 100644 --- a/src/NHibernate.Test/MappingByCode/ImportTests.cs +++ b/src/NHibernate.Test/MappingByCode/ImportTests.cs @@ -1,7 +1,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode { diff --git a/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs b/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs index 9795468108a..9e8008620a6 100644 --- a/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs +++ b/src/NHibernate.Test/MappingByCode/IntegrationTests/NH2738/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.IntegrationTests.NH2738 { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs index 656e91cc4d6..a1cd7c8a02b 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/AbstractPropertyContainerMapperTest.cs @@ -6,7 +6,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs index c74b5310c48..fd96224e10a 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/AnyMapperTest.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs index eddcdcf5917..2c5a0f3a612 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/CheckMixingPOIDStrategiesTests.cs @@ -1,7 +1,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.ClassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs index 4a5701ff469..aaf68384135 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ClassMapperWithJoinPropertiesTest.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.ClassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs index 8c87847e15a..ded217fd333 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComponetAsIdTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.ClassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs index 57e8dadeb48..643f9ed9d88 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/ComposedIdTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.ClassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs index 327823fd2e0..12ec1cfc7c9 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/SetPersisterTests.cs @@ -2,7 +2,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.ClassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs index 7be2c35cf7d..c68121e7754 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ClassMapperTests/TablesSincronizationTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.ClassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs index 299347ccf4f..194e53d611a 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/CollectionIdMapperTests.cs @@ -5,7 +5,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs index 6f1e7499dcc..c1782cff411 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ComponentAsIdTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs index 9e77e932287..eb7fba7191a 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ComposedIdMapperTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs index 557135964cf..d3fc7d83064 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/AnyPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs index 672bc0f9d28..47221059b21 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/BagPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; using System.Collections.Generic; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs index a88d5b99875..c2e4499c814 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ComponentPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs index 92dd18042b4..5fb3d8b5b08 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynCompAttributesSettingTest.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs index 7f1c08d8dc7..ded7b3c5492 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/DynComponentPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs index 0acebea3b43..8a72ae4f123 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/IdBagPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; using System.Collections.Generic; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs index 1bfd1f00363..7d3abf8422d 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ListPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; using System.Collections.Generic; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs index e5812dcc88c..ed612719f5a 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/ManyToOnePropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs index b579244f144..1d67e92321e 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/MapPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; using System.Collections.Generic; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs index d951fcd26d5..68d5c286ec9 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/OneToOnePropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs index 66405c0c3b2..c6b255d42b3 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SetPropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; using System.Collections.Generic; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs index 2ee236c8fcf..c7169259132 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/DynamicComponentMapperTests/SimplePropertyOnDynamicCompoTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.DynamicComponentMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs index afa656c33dd..ce2e90c324a 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/IdBagMapperTest.cs @@ -5,7 +5,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs index 427f4a26c3f..765971a0fb2 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/IdMapperTest.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs index 82126c327e0..41333e443fe 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/JoinMapperTests.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs index a77fa142a55..344f5f13e48 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/SetPersisterTests.cs @@ -2,7 +2,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.JoinedSubclassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs index b188b7f76bb..5c7fc9891ea 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/JoinedSubclassMapperTests/TablesSincronizationTests.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.JoinedSubclassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs index 03113db2f14..631ec1c05bc 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/ManyToOneMapperTest.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs index 20ab0d5ae8b..c6809a8fd5d 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/NaturalIdMapperTest.cs @@ -1,7 +1,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs index 64b233f0cfc..e433783095d 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/OneToOneMapperTest.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs index 4674853017b..d22044b64b3 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/PropertyMapperTest.cs @@ -10,7 +10,6 @@ using NHibernate.Type; using NHibernate.UserTypes; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs index 88e603337b0..c8ae6f623ed 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/SetPersisterTests.cs @@ -2,7 +2,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.SubclassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs index d62e51728f0..f00fca9d7cf 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperTests/TablesSincronizationTests.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.SubclassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs index 30675953299..9d770caa13c 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/SubclassMapperWithJoinPropertiesTest.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs index 8bde8d3d335..3fb028a1921 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/SetPersisterTests.cs @@ -2,7 +2,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.UnionSubclassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs index 32c2b91a9b7..9240f22cdd4 100644 --- a/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MappersTests/UnionSubclassMapperTests/TablesSincronizationTests.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode.Impl; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MappersTests.UnionSubclassMapperTests { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs index 77c72bfe56d..e5f5bf032cc 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/ArrayCollectionTests.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs index 6d61c6d5c64..9fc832a4f64 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/BagCollectionTests.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs index b7bae336173..034538004e1 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/CallCustomConditions.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs index 64b52a9d194..6f05a0d484a 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/ComponentsTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs index 911fc48cd15..e02064f0c5a 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/DefaultClassHierarchyRepresentationTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs index 16d9766b798..2bb9d571079 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/DictionaryCollectionTests.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs index 80586b9e905..f72a65b6e6c 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/EntityTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs index 6e9ca46303c..6703a6a0b5d 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/InheritedVersionTest.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs index 49482789b3a..465c07819c6 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/ManyToOneTest.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs index 640a7381e88..a221a27a954 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/OneToManyTests.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs index ccbaecc5612..a4f2593dad1 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/PoidTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs index 26ff5186f32..ac0e27ee6dc 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/PolymorphicPropertiesMapping.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs index 8a54933f06a..7b068ee4ca3 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/PropertiesExclusionTests.cs @@ -1,7 +1,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs index 0a7265ab6ba..eb0dcb51fb0 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/RootEntityTests.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs b/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs index 51a5f80ac55..811ad8c403e 100644 --- a/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs +++ b/src/NHibernate.Test/MappingByCode/MixAutomapping/SetCollectionTests.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.MixAutomapping { diff --git a/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs b/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs index 797981cfaff..21717c69f4c 100644 --- a/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs +++ b/src/NHibernate.Test/MappingByCode/ModelExplicitDeclarationsHolderMergeTest.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode { diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs index 01cbf7f018e..c49d47c045b 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/CompatibilityWithCandidatePersistentMembers.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs index 1f2a2bd6c19..d0fa768e3fc 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorConcreteClassesTest.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs index 4bcb3c1d246..3dcb19909c2 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetFirstImplementorTest.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs index 60998546d6c..2864014e407 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromInterfacesTest.cs @@ -3,7 +3,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs index 27164c31a71..08070926491 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetMemberFromReflectedTest.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { diff --git a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs index c99be655998..db17da8e526 100644 --- a/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs +++ b/src/NHibernate.Test/MappingByCode/TypeExtensionsTests/GetPropertyOrFieldMatchingNameTest.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode.TypeExtensionsTests { public class GetPropertyOrFieldMatchingNameTest diff --git a/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs b/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs index 1ccb5305df8..bd516a10729 100644 --- a/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs +++ b/src/NHibernate.Test/MappingByCode/TypeNameUtilTests.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode.Impl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.MappingByCode { diff --git a/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs index fbe9820527f..b2a8f86cea3 100644 --- a/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/DataReaderWrapperTest/Fixture.cs @@ -1,6 +1,5 @@ using System.Collections; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.DataReaderWrapperTest { diff --git a/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs b/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs index fe521c486ac..df25313e2a5 100644 --- a/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/Dates/DateTimeOffsetFixture.cs @@ -4,7 +4,6 @@ using NHibernate.Driver; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.Dates { diff --git a/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs index 48a868ea828..c292ee70316 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1270/Fixture.cs @@ -4,7 +4,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Tool.hbm2ddl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH1270 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs b/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs index dc94ed1835a..43707f700a5 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1323/CheckViability.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Collection; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH1323 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs index f4c78eef01b..6eaa2425d4b 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1399/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH1399 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs index e5c20a2a8ea..0814975954f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1421/Fixture.cs @@ -2,7 +2,6 @@ using System.Collections; using System.Collections.Generic; using NUnit.Framework; -using SharpTestsEx; using System.Collections.ObjectModel; namespace NHibernate.Test.NHSpecificTest.NH1421 diff --git a/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs index 52ebe163f49..eed86726fa3 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs @@ -1,11 +1,5 @@ using NUnit.Framework; -using SharpTestsEx; -namespace SharpTestsEx -{ - - -} namespace NHibernate.Test.NHSpecificTest.NH1508 { [TestFixture] diff --git a/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs index 0d95f43fdd8..a8e191523d1 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1836/Fixture.cs @@ -1,7 +1,6 @@ using System.Collections; using NHibernate.Transform; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH1836 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs b/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs index e32bc31c3d6..753e00bb143 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH1965/ReattachWithCollectionTest.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH1965 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs index ac00cde5990..232149a3c3e 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2020/Fixture.cs @@ -2,7 +2,6 @@ using NHibernate.Dialect; using NHibernate.Exceptions; using NHibernate.Test.ExceptionsTest; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2020 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs b/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs index 41ba313a042..a1503812f03 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2031/HqlModFuctionForMsSqlTest.cs @@ -2,7 +2,6 @@ using NHibernate.Hql.Ast.ANTLR; using NHibernate.Util; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2031 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs index 9e0753ceb3a..2eacf411062 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2041/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NUnit.Framework; using NHibernate.Cfg; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2041 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs index 8b761764711..b4665bc55a9 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2056/Fixture.cs @@ -1,7 +1,6 @@ using System.Collections; using System.Collections.Generic; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2056 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs index f2bd6664cf3..b377311c180 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2094 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs index 790cac7f89b..981b01ae1a7 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2100/Fixture.cs @@ -1,7 +1,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2100 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs index 6f4277fcff2..54e182b0422 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2102 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs index cd97e7fd73d..b504e1683b8 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2138/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Engine.Query.Sql; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2138 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs b/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs index ad399d24797..21c39a95238 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2147/DefaultBatchSize.cs @@ -3,7 +3,6 @@ using NHibernate.Engine; using NHibernate.Persister.Entity; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2147 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs index ad388e35277..c617ac4f423 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2166/Fixture.cs @@ -2,7 +2,6 @@ using System.Collections; using NHibernate.Exceptions; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2166 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs b/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs index 2973d6ff32d..484d609dd4d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2188/AppDomainWithMultipleSearchPath.cs @@ -2,7 +2,6 @@ using System.IO; using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2188 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs index a87cb581010..6fd1328191f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2203/Fixture.cs @@ -2,7 +2,6 @@ using NHibernate.DomainModel; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2203 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs b/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs index 9d7d0a2b040..52a92c97ee2 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2207/SampleTest.cs @@ -2,7 +2,6 @@ using System.Data; using NHibernate.Dialect; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2207 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs index 2d02a154f9b..714ee33139f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2228/Fixture.cs @@ -2,7 +2,6 @@ using NHibernate.Cfg; using NUnit.Framework; using NHibernate.Cfg.Loquacious; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2228 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs index ad5f847cfda..d61259b9777 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2230/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NUnit.Framework; using System.Collections.Generic; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2230 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs index 57f5b878ddd..c99e3a32716 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2234/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2234 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs index b41310e555e..9867d070baa 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2243/Fixture.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg; using NHibernate.Tool.hbm2ddl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2243 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs index 911d5b8c797..fbba282f2c5 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2245/Fixture.cs @@ -1,6 +1,5 @@ using System; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2245 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs index d9d5ff59c18..1fb4e506a3a 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2251/Fixture.cs @@ -1,6 +1,5 @@ using System.Linq; using NUnit.Framework; -using SharpTestsEx; using NHibernate.Criterion; namespace NHibernate.Test.NHSpecificTest.NH2251 diff --git a/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs index 9ce05da7618..e3928fc8aa3 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2266/Fixture.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2266 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs index a7044bd7c23..4d927e7b297 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2287/Fixture.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Hql.Ast.ANTLR; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2287 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs index e5a5b98c4ae..7bb512a4203 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2288/Fixture.cs @@ -3,7 +3,6 @@ using NHibernate.Cfg; using NHibernate.Tool.hbm2ddl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2288 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs index 11d3ffee251..a24257f8a95 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2293/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NHibernate.Hql.Ast.ANTLR; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2293 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs index ae194107d23..cbe7e3e597d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2294/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NHibernate.Hql.Ast.ANTLR; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2294 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs index a527bfcdf65..c9fb1e8997f 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2296/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NHibernate.Driver; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2296 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs index 39c8240e7a1..92766d251d8 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2303/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2303 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs index 6e990d1201c..363ff898e67 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2313/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2313 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs index a90c6f97330..427039b096e 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2317/Fixture.cs @@ -1,7 +1,6 @@ using System.Linq; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2317 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs b/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs index 5bee039f7cb..d3d1c455f8b 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2324/BulkUpdateWithCustomCompositeType.cs @@ -1,6 +1,5 @@ using System; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2324 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs b/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs index 9e6779344c7..9b79d879698 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2331/Nh2331Test.cs @@ -3,7 +3,6 @@ using NHibernate.Criterion; using NHibernate.Transform; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2331 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs index b6b62de860a..43f1aa03079 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2341/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2341 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs index 5b111094ea5..cde249efc2c 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2366/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2366 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs index ac9b8850f3c..ecd9b0c71e7 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2477/Fixture.cs @@ -4,7 +4,6 @@ using NHibernate.Linq; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2477 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs index d6097150066..74e1b489144 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2488/Fixture.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2488 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs index 0d075ec4f0d..a5316520748 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2489/Fixture.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2489 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs index 8879292bd17..3db326425f7 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2490/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2490 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs index 34a805042a6..c197cc4ccbd 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2491/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2491 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs index 9d16829d2af..36f9cab0129 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2505/Fixture.cs @@ -5,7 +5,6 @@ using NHibernate.Linq; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2505 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs index 6bcab8805c9..28bb7f0d46d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs @@ -3,7 +3,6 @@ using NHibernate.Dialect; using NHibernate.Mapping; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2530 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs index 9c940c517d8..fa645deb316 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs @@ -1,6 +1,5 @@ using System; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2565 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs b/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs index 55ddbb5c80d..4fbbb451612 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2568/UsageOfCustomCollectionPersisterTests.cs @@ -7,7 +7,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Persister.Collection; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2568 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs index ca58c17d961..a2a3bc4569d 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2569/Fixture.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2569 { public class MyClass diff --git a/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs index 61db6840e98..cdd761ec201 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2580/Fixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2580 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs index c339af0c314..99a0d50bf54 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2603/Fixture.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2603 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs index c881b651cf1..ba97fdb9e59 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2632/Fixture.cs @@ -4,7 +4,6 @@ using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2632 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs b/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs index f6617a943fa..19e7ae2a6d1 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2660And2661/Test.cs @@ -3,7 +3,6 @@ using NHibernate.Dialect; using NHibernate.Driver; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2660And2661 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs index b115446742f..b73d0e9f2e8 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2662/Fixture.cs @@ -4,7 +4,6 @@ using System.Linq; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2662 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs index 42d6b1ee641..fce21e0d5d1 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2691/Fixture.cs @@ -3,7 +3,6 @@ using NHibernate.Linq; using NHibernate.Mapping.ByCode; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2691 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs b/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs index 1e2ada06f74..9ca2f16e424 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2697/SampleTest.cs @@ -4,7 +4,6 @@ using System.Text; using NHibernate.Dialect; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2697 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs b/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs index 12d632372cd..e70545a672b 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2705/Test.cs @@ -2,7 +2,6 @@ using System.Linq; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; // ReSharper disable InconsistentNaming diff --git a/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs index 367acc96595..180048068a8 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2746/Fixture.cs @@ -1,7 +1,6 @@ using NHibernate.Criterion; using NHibernate.Transform; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2746 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs index 69c15b1715f..006eb12fde5 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2761/Fixture.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Cfg; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2761 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs index 76fc707e44e..32becb872dc 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2828/Fixture.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2828 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs index 474e410eaae..d50514c42a3 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2875/Fixture.cs @@ -3,7 +3,6 @@ using NHibernate.Mapping.ByCode; using NHibernate.Tool.hbm2ddl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2875 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs index 16ebf840186..a429f179fc7 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH2907/Fixture.cs @@ -1,7 +1,6 @@ using System.Collections; using System.Collections.Generic; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH2907 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs index 65d9b862510..188ec149a17 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3149/Fixture.cs @@ -3,7 +3,6 @@ using NHibernate.Dialect; using NUnit.Framework; using NHibernate.Criterion; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH3149 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs index ec6aed09198..6edd3f4ebce 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3153/Fixture.cs @@ -1,6 +1,5 @@ using NHibernate.Mapping; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH3153 { diff --git a/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs index 6e75293c049..5222dbeabdc 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs @@ -1,6 +1,5 @@ using System; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH3570 { @@ -29,8 +28,8 @@ public void ShouldNotSaveRemoveChild() { using (s.BeginTransaction()) { - s.Get(id).Children.Count.Should().Be.EqualTo(1); - s.CreateCriteria().List().Count.Should().Be.EqualTo(1); + Assert.That(s.Get(id).Children.Count, Is.EqualTo(1)); + Assert.That(s.CreateCriteria().List().Count, Is.EqualTo(1)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs index 749eddbfe42..b366e65dc91 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs @@ -1,6 +1,5 @@ using System; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH3570 { @@ -29,8 +28,8 @@ public void ShouldNotSaveRemoveChild() { using (s.BeginTransaction()) { - s.Get(id).Children.Count.Should().Be.EqualTo(1); - s.CreateCriteria().List().Count.Should().Be.EqualTo(1); + Assert.That(s.Get(id).Children.Count, Is.EqualTo(1)); + Assert.That(s.CreateCriteria().List().Count, Is.EqualTo(1)); } } } diff --git a/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs b/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs index 85fc6a4571f..2e8573583a9 100644 --- a/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs +++ b/src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs @@ -1,6 +1,5 @@ using System; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.NH3590 { diff --git a/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs b/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs index d8b78400492..013f8598865 100644 --- a/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs +++ b/src/NHibernate.Test/NHSpecificTest/ProxyValidator/ShouldBeProxiableTests.cs @@ -2,7 +2,6 @@ using System.Reflection; using NHibernate.Proxy; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.NHSpecificTest.ProxyValidator { diff --git a/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs b/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs index 7f28306a9a7..f4246426122 100644 --- a/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs +++ b/src/NHibernate.Test/Parameters/NamedParameterSpecificationTest.cs @@ -1,6 +1,5 @@ using NHibernate.Param; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Parameters { diff --git a/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs b/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs index e7a0f83a99e..916806f58f5 100644 --- a/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs +++ b/src/NHibernate.Test/PolymorphicGetAndLoad/PolymorphicGetAndLoadTest.cs @@ -3,7 +3,6 @@ using NHibernate.Engine; using NHibernate.Proxy; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.PolymorphicGetAndLoad { diff --git a/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs b/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs index 0d7d16bceb0..1fa2aa19df0 100644 --- a/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs +++ b/src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs @@ -4,7 +4,6 @@ using System.Linq; using NHibernate.SqlCommand; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.SqlCommandTest { diff --git a/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs b/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs index bc4161a0a1a..f072ca15136 100644 --- a/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs +++ b/src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs @@ -6,7 +6,6 @@ using NHibernate.Mapping.ByCode.Conformist; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Stateless.FetchingLazyCollections { @@ -138,13 +137,15 @@ public void ShouldWorkLoadingComplexEntities() Assert.That(hf.Count, Is.EqualTo(1)); Assert.That(hf[0].Father.Name, Is.EqualTo(humanFather)); Assert.That(hf[0].Mother.Name, Is.EqualTo(humanMother)); - NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should be initialized").Be.True(); + var initialized1 = NHibernateUtil.IsInitialized(hf[0].Childs); + Assert.That(initialized1, Is.True, "Lazy collection should be initialized"); IList> rf = s.Query>().FetchMany(f => f.Childs).ToList(); Assert.That(rf.Count, Is.EqualTo(1)); Assert.That(rf[0].Father.Description, Is.EqualTo(crocodileFather)); Assert.That(rf[0].Mother.Description, Is.EqualTo(crocodileMother)); - NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should be initialized").Be.True(); + var initialized2 = NHibernateUtil.IsInitialized(hf[0].Childs); + Assert.That(initialized2, Is.True, "Lazy collection should be initialized"); tx.Commit(); } diff --git a/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs b/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs index c016d8462b3..207d1afe676 100644 --- a/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs +++ b/src/NHibernate.Test/Stateless/StatelessSessionFixture.cs @@ -4,7 +4,6 @@ using NHibernate.Criterion; using NHibernate.Engine; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Stateless { diff --git a/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs b/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs index ded36d587e6..86b55dd8db9 100644 --- a/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs +++ b/src/NHibernate.Test/Stateless/StatelessWithRelationsFixture.cs @@ -1,7 +1,6 @@ using System.Collections; using NUnit.Framework; using System.Collections.Generic; -using SharpTestsEx; namespace NHibernate.Test.Stateless { diff --git a/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs b/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs index b5a9edd8c97..610376de5f5 100644 --- a/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs +++ b/src/NHibernate.Test/Subselect/ClassSubselectFixture.cs @@ -1,6 +1,5 @@ using System.Collections; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Subselect { diff --git a/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs b/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs index 92ee51a12bc..9df608f7346 100644 --- a/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs +++ b/src/NHibernate.Test/Tools/hbm2ddl/SchemaExportTests/AutoQuoteFixture.cs @@ -7,7 +7,6 @@ using NHibernate.Test.Tools.hbm2ddl.SchemaMetadataUpdaterTest; using NHibernate.Tool.hbm2ddl; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.Tools.hbm2ddl.SchemaExportTests { diff --git a/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs b/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs index 9bd57940f41..61254611b85 100644 --- a/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs +++ b/src/NHibernate.Test/TransformTests/ImplementationOfEqualityTests.cs @@ -5,7 +5,6 @@ using NHibernate.Linq; using NHibernate.Transform; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TransformTests { diff --git a/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs b/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs index 7e46aaa9a58..f7afa0b1155 100644 --- a/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs @@ -1,7 +1,6 @@ using System; using System.Text; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/CharClassFixture.cs b/src/NHibernate.Test/TypesTest/CharClassFixture.cs index a44d798b15d..cf9befe9e25 100644 --- a/src/NHibernate.Test/TypesTest/CharClassFixture.cs +++ b/src/NHibernate.Test/TypesTest/CharClassFixture.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs b/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs index b847a2272e5..350e1f1125f 100644 --- a/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/DateTime2TypeFixture.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs b/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs index bf72c0aee3f..3b190e78ebd 100644 --- a/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/DateTypeTest.cs b/src/NHibernate.Test/TypesTest/DateTypeTest.cs index ab3c5b7bd00..4f212a3a9c5 100644 --- a/src/NHibernate.Test/TypesTest/DateTypeTest.cs +++ b/src/NHibernate.Test/TypesTest/DateTypeTest.cs @@ -2,7 +2,6 @@ using NHibernate.Dialect; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; using System; namespace NHibernate.Test.TypesTest diff --git a/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs b/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs index 2def33f5a72..6d0b9bbe342 100644 --- a/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs b/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs index 32941993640..f4dcaffa09e 100644 --- a/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs +++ b/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs @@ -3,7 +3,6 @@ using log4net.Repository.Hierarchy; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/UriTypeFixture.cs b/src/NHibernate.Test/TypesTest/UriTypeFixture.cs index eb8794caf0b..edd13747f8f 100644 --- a/src/NHibernate.Test/TypesTest/UriTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/UriTypeFixture.cs @@ -1,7 +1,6 @@ using System; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs b/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs index 0878df7f283..7033df7f183 100644 --- a/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/XDocTypeFixture.cs @@ -3,7 +3,6 @@ using NHibernate.SqlTypes; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs b/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs index 3a5d4ff9387..552097b702e 100644 --- a/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs +++ b/src/NHibernate.Test/TypesTest/XmlDocTypeFixture.cs @@ -3,7 +3,6 @@ using NHibernate.SqlTypes; using NHibernate.Type; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.TypesTest { diff --git a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs index 99da4bf94be..b66275025f2 100644 --- a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs +++ b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/AnyExtensionTests.cs @@ -2,7 +2,6 @@ using System.Collections; using NUnit.Framework; using NHibernate.Util; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest.EnumerableExtensionsTests { diff --git a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs index be147a35799..6b9ae95accc 100644 --- a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs +++ b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstExtensionTests.cs @@ -2,7 +2,6 @@ using System.Collections; using NHibernate.Util; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest.EnumerableExtensionsTests { diff --git a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs index c69cea9d5c5..673cedc6ca2 100644 --- a/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs +++ b/src/NHibernate.Test/UtilityTest/EnumerableExtensionsTests/FirstOrNullExtensionTests.cs @@ -2,7 +2,6 @@ using System.Collections; using NHibernate.Util; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest.EnumerableExtensionsTests { diff --git a/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs b/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs index baf550ea757..6f753b197b9 100644 --- a/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs +++ b/src/NHibernate.Test/UtilityTest/PropertiesHelperTest.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using NHibernate.Util; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest { diff --git a/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs b/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs index 619a97d9a33..94ce7f70bd0 100644 --- a/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs +++ b/src/NHibernate.Test/UtilityTest/ReflectHelperGetProperty.cs @@ -1,6 +1,5 @@ using NHibernate.Util; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest { diff --git a/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs b/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs index 9bb4699fd67..857b762ba71 100644 --- a/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs +++ b/src/NHibernate.Test/UtilityTest/ReflectionHelperTest.cs @@ -3,7 +3,6 @@ using System.Linq.Expressions; using NHibernate.Linq; using NUnit.Framework; -using SharpTestsEx; namespace NHibernate.Test.UtilityTest {