Integrate the patches contributed by Alon Gazit <along@mainsoft.com>.
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Thu, 4 Sep 2003 19:16:30 +0000 (19:16 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Thu, 4 Sep 2003 19:16:30 +0000 (19:16 -0000)
commite61457e5ba8ea554e5b628365ebecc81e86ad1c7
tree7610463353d56334a30b32e0ff645fa101a198f5
parent9ac511b8e763108647d66daccf4a5210941c5384
Integrate the patches contributed by Alon Gazit <along@mainsoft.com>.

* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.

* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.

* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <along@mainsoft.com>.

* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <along@mainsoft.com>.

svn path=/trunk/mcs/; revision=17885
mcs/class/System/ChangeLog
mcs/class/System/System.Collections.Specialized/BitVector32.cs
mcs/class/System/System.Collections.Specialized/ChangeLog
mcs/class/System/System.Collections.Specialized/ListDictionary.cs
mcs/class/System/System_test.dll.sources
mcs/class/System/Test/System.Collections.Specialized/BitVector32Test.cs
mcs/class/System/Test/System.Collections.Specialized/ChangeLog
mcs/class/System/Test/System.Collections.Specialized/ListDictionaryTest.cs [new file with mode: 0644]
mcs/class/System/Test/system_linux_test.args