Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLakshmi Priya Sekar <lasekar@microsoft.com>2016-08-28 00:26:14 +0300
committerLakshmi Priya Sekar <lasekar@microsoft.com>2016-08-31 22:52:29 +0300
commite4fcf2551fcdcf87907d5b94a7a5e62c6e47b03e (patch)
tree3bdd0d5fbf9573557d32068f6c3ab4ff1eb9811f /src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs
parent9735a94aa57f53bfdb9bf59fff1239bedb62be1b (diff)
Skip Debug tests on Desktop.
On desktop, the implementation assembly from GAC is loaded to memory, and the tests specific to corefx implementation fail on Desktop run.
Diffstat (limited to 'src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs')
-rw-r--r--src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs b/src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs
index c94dd26760..9ea93100fe 100644
--- a/src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs
+++ b/src/System.Collections.NonGeneric/tests/DictionaryBaseTests.cs
@@ -183,7 +183,8 @@ namespace System.Collections.Tests
{
MyDictionary dictBase = CreateDictionary(100);
Assert.Throws<ArgumentNullException>("array", () => dictBase.CopyTo(null, 0)); // Array is null
- Assert.Throws<ArgumentException>("array", () => dictBase.CopyTo(new object[100, 100], 0)); // Array is multidimensional
+
+ Assert.Throws<ArgumentException>(Helpers.IsDesktopJob ? null : "array", () => dictBase.CopyTo(new object[100, 100], 0)); // Array is multidimensional
Assert.Throws<ArgumentOutOfRangeException>("arrayIndex", () => dictBase.CopyTo(new DictionaryEntry[100], -1)); // Index < 0