}\r
}\r
\r
+ public void TestInsertRange_this() {\r
+ String[] s1 = {"this", "is", "a", "test"};\r
+ ArrayList al = new ArrayList(s1);\r
+ al.InsertRange(2, al);\r
+ String[] s2 = {"this", "is", "this", "is", "a", "test", "a", "test"};\r
+ for (int i=0; i < al.Count; i++) {\r
+ AssertEquals("at i=" + i, s2[i], al[i]);\r
+ }\r
+ }\r
+\r
public void TestSort() {\r
{\r
bool errorThrown = false;\r
+2002-09-24 Nick Drochak <ndrochak@gol.com>\r
+\r
+ * ArrayListTest.cs: Add test for InsertRange() for the case where an\r
+ ArrayList is passed to itself to be insterted.\r
+\r
2002-09-24 Nick Drochak <ndrochak@gol.com>\r
\r
* ArrayListTest.cs: Add check that enumerator is invalidated after a\r