ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [21/50] ignite git commit: Test fixed
Date Thu, 08 Sep 2016 14:46:03 GMT
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 <ptupitsyn@apache.org>
Authored: Mon Sep 5 18:58:22 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@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";


Mime
View raw message