* ArrayTest.cs: Add a test for Copy () and exceptions.
svn path=/trunk/mcs/; revision=89613
Assert("#E38", copy[3] != orig[3]);
}
+ [Test]
+ [ExpectedException (typeof (InvalidCastException))]
+ public void Copy_InvalidCast () {
+ object[] arr1 = new object [10];
+ Type[] arr2 = new Type [10];
+
+ arr1 [0] = new object ();
+
+ Array.Copy (arr1, 0, arr2, 0, 10);
+ }
+
[Test]
public void TestCopyTo() {
{
+2007-11-14 Zoltan Varga <vargaz@gmail.com>
+
+ * ArrayTest.cs: Add a test for Copy () and exceptions.
+
2007-11-13 Zoltan Varga <vargaz@gmail.com>
* DelegateTest.cs: Add tests for virtual target methods.