Commit Graph
27 Commits
Author SHA1 Message Date
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Marek Safar db7131d010 Change few Assertions to Asserts 2012-02-29 18:09:52 +00:00
Paolo Molaro 8397d2885e Fixed StringBuilder.Clear() to properly clear the cached string. 2011-11-22 12:04:05 +01:00
Gonzalo Paniagua Javier 32ce184cba 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: new test.


svn path=/trunk/mcs/; revision=141859
2009-09-13 02:44:02 +00:00
Gonzalo Paniagua Javier 885b9f9f7e 2009-07-26 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: new overflow tests.


svn path=/trunk/mcs/; revision=138688
2009-07-26 16:27:07 +00:00
Zoltan Varga 67b04fd53a 2009-06-26 Zoltan Varga <[email protected]>
* *.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
2009-06-26 11:16:10 +00:00
Kornél Pál 55747d218d StringBuilder.cs: Pad the string with NULL characters when setting Length.
svn path=/trunk/mcs/; revision=62421
2006-07-11 00:55:09 +00:00
Sebastien Pouliot abfdd1fe9f 2005-12-05 Sebastien Pouliot <[email protected]>
* 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-12-05 15:29:18 +00:00
Ben Maurer 0301dca423 In Test/System.Text:
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-06-21 22:42:39 +00:00
Ben Maurer 2a5888176d stupid eol
svn path=/trunk/mcs/; revision=44168
2005-05-06 20:35:36 +00:00
Ben Maurer dcd2d2d7d1 In Test/System.Text:
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
2005-05-06 20:33:08 +00:00
Ben Maurer 6569a214bb 2005-01-21 Ben Maurer <[email protected]>
* StringBuilderTest.cs (CapacityFromString): This relies on impl
	specific behavior. Rewrite the test.


svn path=/trunk/mcs/; revision=39338
2005-01-22 01:13:45 +00:00
Gonzalo Paniagua Javier 7eadde80f1 2005-01-11 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-01-11 22:03:34 +00:00
Gonzalo Paniagua Javier ba804c8242 2005-01-10 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-01-10 19:50:21 +00:00
Sebastien Pouliot d1f4ff909a 2004-05-26 Sebastien Pouliot <[email protected]>
* StringBuilderTest.cs: Added unit tests to be sure integer overflows
	are catched.

svn path=/trunk/mcs/; revision=28154
2004-05-26 13:24:16 +00:00
Gonzalo Paniagua Javier 438c332695 2004-03-10 Juraj Skripsky <[email protected]>
* StringBuilderTest.cs: added new test for bug in Insert.

svn path=/trunk/mcs/; revision=23921
2004-03-11 16:44:39 +00:00
Gonzalo Paniagua Javier faf0a468ae 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: added test for bug #53240.

svn path=/trunk/mcs/; revision=22417
2004-01-23 06:40:31 +00:00
Gonzalo Paniagua Javier f8a61c334a 2004-01-14 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: added tests for the couple of bugs found in the
	new StringBuilder implementation.

svn path=/trunk/mcs/; revision=22049
2004-01-14 07:08:41 +00:00
Gonzalo Paniagua Javier b334f97c1a 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: added replace tests from bug #41397 by
	<[email protected]>>.

svn path=/trunk/mcs/; revision=14439
2003-05-10 03:23:01 +00:00
Nick Drochak a5a0060d0a 2003-02-05 Nick Drochak <[email protected]>
* StringBuilderTest.cs: Test for specific exception using Nunit verson
	2 style Attribute.

svn path=/trunk/mcs/; revision=11210
2003-02-04 15:27:38 +00:00
Zoltan Varga 9a8769f38a 2003-01-30 Zoltan Varga <[email protected]>
* StringBuilderTest.cs: added test for passing a negative capacity to
	the constructor.

svn path=/trunk/mcs/; revision=11070
2003-01-30 19:47:59 +00:00
Nick Drochak 99a25b98bd 2002-12-21 Nick Drochak <[email protected]>
* all: make tests build and run under nunit2

svn path=/trunk/mcs/; revision=9817
2002-12-21 14:15:43 +00:00
Nick Drochak 6c4cbb676f 2002-02-09 Nick Drochak <[email protected]>
* StringBuilderTest.cs: Fixed tests that were failing against mscorlib.

svn path=/trunk/mcs/; revision=2279
2002-02-09 09:53:12 +00:00
Nick Drochak e53b2dd204 2001-10-29 Nick Drochak <[email protected]>
* 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
2001-10-29 11:16:03 +00:00
Nick Drochak 6c01336226 2001-10-25 Nick Drochak <[email protected]>
* 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
2001-10-24 12:27:50 +00:00
Sean MacIsaac 42c7e30c6d Got nunit tests running in windows. Reorganized Test case directories.
svn path=/trunk/mcs/; revision=1176
2001-10-17 17:36:04 +00:00