ソースを参照

2002-02-20 Nick Drochak <[email protected]>

	* ArrayListTest.cs: Add a small assert for a bug that I found and fixed
	in ArrayList.  Make sure it doesn't come up again.

svn path=/trunk/mcs/; revision=2501
Nick Drochak 24 年 前
コミット
6a5e1428bc

+ 1 - 0
mcs/class/corlib/Test/System.Collections/ArrayListTest.cs

@@ -622,6 +622,7 @@ public class ArrayListTest : TestCase {
 			char[] chars = {'a', 'b', 'c', 'd', 'e', 'f'};
 			ArrayList a = new ArrayList(chars);
 			ArrayList b = a.GetRange(1, 3);
+			AssertEquals("GetRange returned wrong size ArrayList", 3, b.Count);
 			for (int i = 0; i < b.Count; i++) {
 				AssertEquals("range didn't work",
 					     chars[i+1], b[i]);

+ 5 - 0
mcs/class/corlib/Test/System.Collections/ChangeLog

@@ -1,3 +1,8 @@
+2002-02-20  Nick Drochak  <[email protected]>
+
+	* ArrayListTest.cs: Add a small assert for a bug that I found and fixed
+	in ArrayList.  Make sure it doesn't come up again.
+
 2002-02-10  Nick Drochak  <[email protected]>
 
 	* QueueTest.cs: Put in correct namespace.