You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/09/08 14:46:03 UTC

[21/50] ignite git commit: Test fixed

Test fixed


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

Branch: refs/heads/ignite-3199-1
Commit: c413cc107ab8cb1d1d7b2e075ce99e13663197e9
Parents: 6221aed
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Mon Sep 5 18:58:22 2016 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Mon Sep 5 18:58:22 2016 +0300

----------------------------------------------------------------------
 .../AspNet/IgniteSessionStateItemCollectionTest.cs             | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c413cc10/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateItemCollectionTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateItemCollectionTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateItemCollectionTest.cs
index 40b67e0..eba95d4 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateItemCollectionTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateItemCollectionTest.cs
@@ -40,10 +40,10 @@ namespace Apache.Ignite.Core.Tests.AspNet
             Assert.IsFalse(col.Dirty);
             Assert.IsFalse(col.IsSynchronized);
             Assert.AreEqual(0, col.Count);
-            Assert.Throws<NotSupportedException>(() => Assert.IsNull(col.Keys));
             Assert.IsNotNull(col.SyncRoot);
             Assert.IsEmpty(col);
             Assert.IsEmpty(col.OfType<string>().ToArray());
+            Assert.IsEmpty(col.Keys);
 
             col.Clear();
             col.Remove("key");
@@ -75,7 +75,9 @@ namespace Apache.Ignite.Core.Tests.AspNet
 
             Assert.AreEqual(2, col.Count);
             Assert.IsTrue(col.Dirty);
-            Assert.AreEqual(new[] {"key", "1"}, col.OfType<string>().ToArray());
+
+            CollectionAssert.AreEquivalent(new[] {"key", "1"}, col);
+            CollectionAssert.AreEquivalent(new[] {"key", "1"}, col.Keys);
 
             // Modify using index.
             col[0] = "val1";