* Array.cs: Fixes a couple of other cases where we were missing
the handling for null values, fixes a broken case of null
handling.
svn path=/trunk/mcs/; revision=160699
* Array.cs: Fix for bug #622101, this reverts portions of the
broken patch that was introduced as part of the fix for #351638
which was mostly a set of optimizations, but some were just
wrong.
svn path=/trunk/mcs/; revision=160527
* Array.cs (SortImpl): Fix the 'fast path' which used 'as' to cast objects so
it never sorted the items array if it was not a object[]. Fixes#616416.
svn path=/trunk/mcs/; revision=159551
2009-11-24 Jb Evain <[email protected]>
* Array.cs (IList.this[int]): prevent the use of the IList indexer
when dealing with a multi dimensional array.
in Test/System:
2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: test that we don't allow the use of the IList indexer
on a multi dimensional array.
svn path=/trunk/mcs/; revision=146831
2009-11-24 Jb Evain <[email protected]>
* Array.cs (Clear): throw an IndexOutOfRangeException instead
of an ArgumentOutRangeException for a negative length.
in Test/System:
2009-11-24 Jb Evain <[email protected]>
* ArrayTest: test for the proper exception on Clear ().
svn path=/trunk/mcs/; revision=146825
* Array.cs: Distinguish between notstarted and finished state when
throwing IOE in Current, and provide meaningful exception message.
svn path=/trunk/mcs/; revision=88917
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930.
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.
svn path=/trunk/mcs/; revision=80626
* Array.cs (InternalArray__ICollection_Contains,
InternalArray__IndexOf): Cope with null values in the array (See
bug #80563).
svn path=/trunk/mcs/; revision=71400
* ArrayTest.cs : use proper comparer in IndexOf() and LastIndexOf().
Patch by Kazuki Oikawa. Fixed bug #77277.
* List.cs : use proper comparer in Contains(), IndexOf() and
LastIndexOf(). Patch by Kazuki Oikawa. Fixed bug #77277.
* ArrayTest.cs : test for bug #77277 by Kazuki Oikawa.
* ListTest.cs : test for bug #77277 by Kazuki Oikawa.
svn path=/trunk/mcs/; revision=60396
2005-05-07 Ben Maurer <[email protected]>
* Array.cs (BinarySearch): Patch from kazuki to pass arguments to
the comparer in the same order as msft. Fixes#70725
In Test/System:
2005-05-07 Ben Maurer <[email protected]>
* ArrayTest.cs: Test for #70725.
svn path=/trunk/mcs/; revision=44201