Commit Graph
14 Commits
Author SHA1 Message Date
Rodrigo Kumpera 0ac61b03fc [corlib] Fix UnicodeEncoding GetMaxByteCount and GetMaxCharCount to return the same values as .net. 2014-10-01 15:11:20 -04:00
Sebastien Pouliot 07efc64d03 In System:
2009-10-27  Sebastien Pouliot  <[email protected]>

	* String.cs: Remove unused (and unneeded) internal call defs.
	Reduce duplication (and fix test) for Concat (object,object).
	Avoid allocating zero-length strings in the cases where the
	FX does not do so.

In Test/System.Text:
2009-10-27  Sebastien Pouliot  <[email protected]>

	* UnicodeEncodingTest.cs: Add test cases with an odd number of 
	bytes being used in GetString (it does not crash but it does not
	work like MS FX either).

In Test/System:
2009-10-27  Sebastien Pouliot  <[email protected]>

	* StringTest.cs: Add test case for methods that can return
	empty strings.

In System.Globalization:
2009-10-27  Sebastien Pouliot  <[email protected]>

	* TextInfo.cs: Avoid allocating zero-length strings in ToLower 
	and ToUpper methods


svn path=/trunk/mcs/; revision=144921
2009-10-27 23:42:55 +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
Atsushi Eno f4071fef2b 2007-10-25 Atsushi Enomoto <[email protected]>
* DecoderReplacementFallbackBuffer.cs : Reset() should also reset the
	  input buffer. When fallback is not assigned, just return '\0'.
	* UnicodeEncoding.cs : handle throwOnInvalid .ctor argument.
	  Default replacement fallback buffer is now "\uFFFD".
	* UTF8Encoding.cs : couple of replacement buffer size fixes.
	  Default replacement fallback buffer is now "\uFFFD".
	* UTF32Encoding.cs : Default replacement is "\uFFFD" too here.
	  See http://support.microsoft.com/kb/940521/ for this change.

	* UnicodeEncodingTest.cs,
	  UTF8EncodingTest.cs,
	  DecoderReplacementFallbackBufferTest.cs,
	  DecoderReplacementFallbackTest.cs : default replacement buffer fix.
	  Added test for Reset() for replacement buffer.


svn path=/trunk/mcs/; revision=88150
2007-10-25 09:42:03 +00:00
Gert Driesen 797ad860d5 * UTF8Encoding.cs: IsMailNewsSave should return true. Fixes bug
#332515.
* UTF32Encoding.cs: IsBrowserSave returns false for both Big-Endian and
Little-Endian.
* TestEncoding.cs: Also make class available on 1.0 profile.
* EncodingTest.cs: Added tests for Is* properties.
* UTF7EncodingTest.cs: Added tests for Is* properties.
* UnicodeEncodingTest.cs: Added tests for Is* properties. Fixed 
line endings.
* UTF8EncodingTest.cs: Added tests for Is* properties. Spaces to
tabs. Numbered tests.
* ASCIIEncodingTest.cs: Added tests for Is* properties. No longer
derive from TestCase class. Spaces to tabs.    
* UTF32EncodingTest.cs: Added tests for Is* properties. No longer
derive from deprecated Assertion class.

svn path=/trunk/mcs/; revision=87593
2007-10-16 14:48:47 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Kornél Pál 1449d61f23 UnicodeEncodingTest.cs: Added ByteOrderMark tests.
svn path=/trunk/mcs/; revision=62009
2006-06-24 13:39:30 +00:00
Atsushi Eno b183fee3d4 2006-03-21 Atsushi Enomoto <[email protected]>
* UnicodeEncodingTest.cs : added some zero-length tests.


svn path=/trunk/mcs/; revision=58210
2006-03-21 01:28:32 +00:00
Raja R Harinath ec321852f1 * UnicodeEncodingTest.cs (TestMaxByteCount): Remove extra declaration.
svn path=/trunk/mcs/; revision=55830
2006-01-20 12:49:51 +00:00
Atsushi Eno f8d58865f5 2006-01-19 Atsushi Enomoto <[email protected]>
* UnicodeEncodingTest.cs, DecoderReplacementFallbackBufferTest.cs,
	  EncoderReplacementFallbackBufferTest.cs : tests were fixed but
	  "NotWorking" were not marked correctly.


svn path=/trunk/mcs/; revision=55795
2006-01-19 17:32:07 +00:00
Atsushi Eno 37c22e54fb 2006-01-19 Atsushi Enomoto <[email protected]>
* UTF7EncodingTest.cs UTF8EncodingTest.cs UnicodeEncodingTest.cs :
	  due to the introduction of fallback, some of their internals have
	  changed. Thus marked some tests as NotWorking.
	* DecoderReplacementFallbackBufferTest.cs,
	  EncoderReplacementFallbackBufferTest.cs :
	  some behaviors have changed since beta2, so marked old tests as
	  NotWorking.


svn path=/trunk/mcs/; revision=55794
2006-01-19 17:08:13 +00:00
Sebastien Pouliot cfd312dfb2 2004-05-20 Sebastien Pouliot <[email protected]>
* UTF7EncodingTest.cs, UnicodeEncodingTest.cs: Removed unused SetUp
	and TearDown to facilitate searches.

svn path=/trunk/mcs/; revision=27798
2004-05-21 01:24:26 +00:00
Dick Porter d339f0349e 2004-03-19 Dick Porter <[email protected]>
* UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
	BOM at the beginning of the range of characters we're interested
	in, not at the beginning of the array.  Fixes bug 51531.

2004-03-19  Dick Porter  <[email protected]>

	* UnicodeEncodingTest.cs: Test for character counts on subranges
	of arrays with a BOM at the start of the array.

svn path=/trunk/mcs/; revision=24328
2004-03-19 13:57:25 +00:00
Miguel de Icaza 46c4f62656 Add UnicodeEncodingTest.cs from Patrick Kalkman
svn path=/trunk/mcs/; revision=14736
2003-05-20 21:44:42 +00:00