[Mono-bugs] [Bug 47308][Maj] New - CollectionBase.Remove does not throws an exception
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sun, 3 Aug 2003 14:56:38 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by barce@frlp.utn.edu.ar.
http://bugzilla.ximian.com/show_bug.cgi?id=47308
--- shadow/47308 Sun Aug 3 14:56:38 2003
+++ shadow/47308.tmp.4282 Sun Aug 3 14:56:38 2003
@@ -0,0 +1,56 @@
+Bug#: 47308
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: barce@frlp.utn.edu.ar
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CollectionBase.Remove does not throws an exception
+
+Description of Problem:
+CollectionBase.Remove does not throws an exception when the element to be
+removed is not on the list.
+
+
+Steps to reproduce the problem:
+using System;
+using System.Collections;
+
+namespace PruebaBugCollectionBase
+{
+ class MyCollection: CollectionBase
+ {
+ public void Remove(int number)
+ {
+ List.Remove(number);
+ }
+ }
+
+ class Class1
+ {
+ static void Main(string[] args)
+ {
+ MyCollection c = new MyCollection();
+ c.Remove(10);
+ }
+ }
+}
+
+Actual Results:
+No exception is thrown
+
+Expected Results:
+ArgumentException is thrown
+
+
+How often does this happen?
+Always