* *.cs: Convert all tests to new-style nunit classes/methods. Add
[Test] attributes to some tests which were missing them.
svn path=/trunk/mcs/; revision=136944
* StringBuilderTest.cs: Test case MaxCapacity_Overflow3 doesn't work
under MS 1.1 SP1 (it should throw an ArgumentOutOfRangeException) but
it does work under Mono and MS 2.0 (final). Tagged as "NotWorking".
svn path=/trunk/mcs/; revision=53930
2005-06-21 Ben Maurer <[email protected]>
* StringBuilderTest.cs: Test replacing with a longer string.
In System.Text:
2005-06-21 Ben Maurer <[email protected]>
* StringBuilder.cs (Replace): Do the correct thing when we replace
with a longer string. Thanks to Vorobiev Maksim
<[email protected]>.
svn path=/trunk/mcs/; revision=46333
2005-05-06 Ben Maurer <[email protected]>
* StringBuilderTest.cs (MaxCapacity_Overflow3): Test for #72244.
In System.Text:
2005-05-06 Ben Maurer <[email protected]>
* StringBuilder.cs (InternalEnsureCapacity): It is possible that
the size we attempt to grow to is more than the max capacity, but
that a smaller size will do. In this case, don't throw an
exception. Fixes#72244
svn path=/trunk/mcs/; revision=44166
* System.Text/StringBuilder.cs: when creating the StringBuilder from a
string, the maximum capacity remains Int32.MaxValue.
* Test/System.Text/StringBuilderTest.cs: new tests for capacity when
the StringBuilder is created from a string.
svn path=/trunk/mcs/; revision=38734
* System.Text/StringBuilder.cs: throw if the new size is greater than
the maximum capacity for the StringBuilder. Patch by [email protected].
Fixes bug #62422.
* Test/System.Text/StringBuilderTest.cs: patch to test for capacity
being exceeded.
svn path=/trunk/mcs/; revision=38640
* StringBuilder.cs: Throw exceptions when constructor paramter(s) are
invalid. Just like MS does (as best as I can tell).
Tests for these exceptions are now added to the unit tests as well.
svn path=/trunk/mcs/; revision=1225
* StringBuilder.cs: Throw exception if they try to make a StringBuilder
whose capacity is greater than the MaxCapacity.
I added some tests for the constructors and the above exception. More
coming soon.
svn path=/trunk/mcs/; revision=1198