Temporarily comment out dictionary remove modification tests (dotnet/corefx#31113)
authorStephen Toub <stoub@microsoft.com>
Tue, 17 Jul 2018 05:10:08 +0000 (22:10 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Jul 2018 05:10:08 +0000 (22:10 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/9e21bd93f338887bc4157e878599562b897d564d

src/libraries/Common/tests/System/Collections/IDictionary.Generic.Tests.cs
src/libraries/Common/tests/System/Collections/IDictionary.NonGeneric.Tests.cs

index 4e1bde2..342cd17 100644 (file)
@@ -171,18 +171,19 @@ namespace System.Collections.Tests
                     casted[CreateTKey(541)] = CreateTValue(12);
                     return true;
                 };
-                yield return (IEnumerable<KeyValuePair<TKey, TValue>> enumerable) =>
-                {
-                    IDictionary<TKey, TValue> casted = ((IDictionary<TKey, TValue>)enumerable);
-                    if (casted.Count() > 0)
-                    {
-                        var keys = casted.Keys.GetEnumerator();
-                        keys.MoveNext();
-                        casted.Remove(keys.Current);
-                        return true;
-                    }
-                    return false;
-                };
+                //// [ActiveIssue(31112)]
+                //yield return (IEnumerable<KeyValuePair<TKey, TValue>> enumerable) =>
+                //{
+                //    IDictionary<TKey, TValue> casted = ((IDictionary<TKey, TValue>)enumerable);
+                //    if (casted.Count() > 0)
+                //    {
+                //        var keys = casted.Keys.GetEnumerator();
+                //        keys.MoveNext();
+                //        casted.Remove(keys.Current);
+                //        return true;
+                //    }
+                //    return false;
+                //};
                 yield return (IEnumerable<KeyValuePair<TKey, TValue>> enumerable) =>
                 {
                     IDictionary<TKey, TValue> casted = ((IDictionary<TKey, TValue>)enumerable);
@@ -921,4 +922,4 @@ namespace System.Collections.Tests
 
         #endregion
     }
-}
\ No newline at end of file
+}
index d236fbb..2c810de 100644 (file)
@@ -144,17 +144,19 @@ namespace System.Collections.Tests
                     casted[CreateTKey(541)] = CreateTValue(12);
                     return true;
                 };
-                yield return (IEnumerable enumerable) =>
-                {
-                    IDictionary casted = ((IDictionary)enumerable);
-                    if (casted.Count > 0)
-                    {
-                        var keys = casted.Keys.GetEnumerator();
-                        keys.MoveNext();
-                        casted.Remove(keys.Current); return true;
-                    }
-                    return false;
-                };
+                //// [ActiveIssue(31112)]
+                //yield return (IEnumerable enumerable) =>
+                //{
+                //    IDictionary casted = ((IDictionary)enumerable);
+                //    if (casted.Count > 0)
+                //    {
+                //        var keys = casted.Keys.GetEnumerator();
+                //        keys.MoveNext();
+                //        casted.Remove(keys.Current);
+                //        return true;
+                //    }
+                //    return false;
+                //};
                 yield return (IEnumerable enumerable) =>
                 {
                     IDictionary casted = ((IDictionary)enumerable);
@@ -811,4 +813,4 @@ namespace System.Collections.Tests
 
         #endregion
     }
-}
\ No newline at end of file
+}