Browse Source

2002-05-01 Nick Drochak <[email protected]>

	* ArrayListTest.cs (TestBinarySearch) : accomodate possible bug in
	.NET runtime.

svn path=/trunk/mcs/; revision=4190
Nick Drochak 24 years ago
parent
commit
52b3d45d86

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

@@ -304,6 +304,10 @@ public class ArrayListTest : TestCase {
 			al1.AddRange(s1);
 			al1.BinarySearch(42);
 		} catch (InvalidOperationException) {
+			// this is what .NET throws
+			errorThrown = true;
+		} catch (ArgumentException) {
+			// this is what the docs say it should throw
 			errorThrown = true;
 		} catch (Exception e) {
 			Fail ("Incorrect exception thrown at 1: " + e.ToString());

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

@@ -1,3 +1,8 @@
+2002-05-01  Nick Drochak  <[email protected]>
+
+	* ArrayListTest.cs (TestBinarySearch) : accomodate possible bug in
+	.NET runtime.
+
 2002/05/01  Nick Drochak <[email protected]>
 
 	* ArrayListTest.cs (TestCopyTo) : Make assert messages unique and