ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [05/18] ignite git commit: IGNITE-2563 .NET: enable TestAggregatesAll
Date Tue, 05 Jul 2016 04:58:15 GMT
IGNITE-2563 .NET: enable TestAggregatesAll


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/a0d373eb
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/a0d373eb
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/a0d373eb

Branch: refs/heads/ignite-1232
Commit: a0d373ebbc001ee3e665899c956c560457d3254f
Parents: 94ecfe0
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Wed Jun 29 17:22:31 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Wed Jun 29 17:22:31 2016 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a0d373eb/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
index a47f3f0..08a4bdc 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheLinqTest.cs
@@ -332,14 +332,15 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
         /// Tests aggregates with all clause.
         /// </summary>
         [Test]
-        [Ignore("IGNITE-2563")]
         public void TestAggregatesAll()
         {
             var ints = GetPersonCache().AsCacheQueryable().Select(x => x.Key);
 
-            Assert.IsTrue(ints.Where(x => x > -10).All(x => x < PersonCount &&
x >= 0));
+            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
+            var ex = Assert.Throws<NotSupportedException>(() => ints.Where(x =>
x > -10)
+                .All(x => x < PersonCount && x >= 0));
 
-            Assert.IsFalse(ints.All(x => x < PersonCount / 2));
+            Assert.IsTrue(ex.Message.StartsWith("Operator is not supported: All"));
         }
 
         /// <summary>


Mime
View raw message