[Mono-devel-list] [PATCH] null argument testing in System.Collections.Specialized.ListDictionary.Remove()

Alon Gazit along at mainsoft.com
Mon Sep 1 10:56:32 EDT 2003


Hello,

The method System.Collections.Specialized.ListDictionary.Remove(object
key) should throw ArgumentNullException, when the parameter is null.

Steps to reproduce the problem:
1. Create a new instance of ListDictionary
2. call the method Remove(object key) , with null as parameter.

Actual Results:
the method throws NullReferenceException.

Expected Results:
the method throws ArgumentNullException.

Enclosed is a small test case and a patch.

Thanks a lot,

Alon Gazit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030901/73c56d6c/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030901/73c56d6c/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ListDictionary.cs.diff
Type: application/octet-stream
Size: 445 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030901/73c56d6c/attachment.obj 


More information about the Mono-devel-list mailing list