diff options
Diffstat (limited to 'src/System.Collections.NonGeneric/tests/StackTests.cs')
-rw-r--r-- | src/System.Collections.NonGeneric/tests/StackTests.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Collections.NonGeneric/tests/StackTests.cs b/src/System.Collections.NonGeneric/tests/StackTests.cs index b7192085c9..d5e7e6eac5 100644 --- a/src/System.Collections.NonGeneric/tests/StackTests.cs +++ b/src/System.Collections.NonGeneric/tests/StackTests.cs @@ -225,7 +225,7 @@ namespace System.Collections.Tests Helpers.PerformActionOnAllStackWrappers(stack1, stack2 => { Assert.Throws<ArgumentNullException>("array", () => stack2.CopyTo(null, 0)); // Array is null - Assert.Throws<ArgumentException>("array", () => stack2.CopyTo(new object[10, 10], 0)); // Array is multidimensional + Assert.Throws<ArgumentException>(() => stack2.CopyTo(new object[10, 10], 0)); // Array is multidimensional Assert.Throws<ArgumentOutOfRangeException>("index", () => stack2.CopyTo(new object[100], -1)); // Index < 0 Assert.Throws<ArgumentException>(null, () => stack2.CopyTo(new object[0], 0)); // Index >= array.Count |