* Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.
* StackTest.cs : test for CopyTo() on an empty stack.
svn path=/trunk/mcs/; revision=44253
+2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
+
+ * Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.
+
2005-02-21 Zoltan Varga <vargaz@freemail.hu>
* Hashtable.cs: Add net 2.0 ReliabilityContractAttributes.
}\r
\r
if (array.Rank > 1 || \r
- index >= array.Length || \r
+ array.Length > 0 && index >= array.Length || \r
count > array.Length - index) {\r
throw new ArgumentException();\r
}\r
+2005-05-09 Atsushi Enomoto <atsushi@ximian.com>\r
+\r
+ * StackTest.cs : test for CopyTo() on an empty stack.\r
+\r
2005-01-05 Nick Drochak <ndrochak@ieee.org>\r
\r
* ComparerTest.cs: Modernize and fix line endings. Test is failing with\r
}
}
+ public void TestEmptyCopyTo ()
+ {
+ Stack stack = new Stack ();
+ string [] arr = new string [0];
+ stack.CopyTo (arr, 0);
+ }
+
[SetUp]
protected void SetUp()
{