Commit Graph
3 Commits
Author SHA1 Message Date
Atsushi Eno 68694ee948 2006-04-25 Atsushi Enomoto <[email protected]>
* BaseNumberConverter.cs : (ConvertTo) regardless of InnerType,
	  it converts the argument value to InnerType using supplied format.
	  (It might be not limited to NET_2_0 but it's too cosmetic to dig
	  into the problem. At least this is for run-test-ondotnet fixes.)

	* ByteConverterTests.cs,
	  DecimalConverterTests.cs,
	  DoubleConverterTests.cs,
	  Int16ConverterTests.cs,
	  Int64ConverterTests.cs,
	  SByteConverterTests.cs,
	  SingleConverterTests.cs,
	  UInt16ConverterTests.cs,
	  UInt32ConverterTests.cs,
	  UInt64ConverterTests.cs:
	  ConvertToString() (test with custom culture) failed on .NET 2.0.
	  Fixed it by adding NumberFormat override in each test culture.


svn path=/trunk/mcs/; revision=59860
2006-04-25 16:43:57 +00:00
Gert Driesen f2289de628 * ByteConverterTests.cs: Added ConvertToString and ConvertFromString
tests with culture that has overriden GetFormat for NumberFormatInfo.
* DecimalConverterTests.cs: same.
* DoubleConverterTests.cs: same.
* Int16ConverterTests.cs: same.
* Int32ConverterTests.cs: same.
* Int64ConverterTests.cs: same.
* SByteConverterTests.cs: same.
* SingleConverterTests.cs: same.
* UInt16ConverterTests.cs: same.
* UInt32ConverterTests.cs: same.
* UInt64ConverterTests.cs: same.
* BaseNumberConverter.cs: Use CultureInfo.GetFormat to obtain
NumberFormatInfo to match MS.NET. Added ConvertToString abstract
method for conversion to string.
* ByteConverter.cs: Implemented ConvertToString.
* DecimalConverter.cs: Implemented ConvertToString.
* DoubleConverter.cs: Implemented ConvertToString.
* Int16Converter.cs: Implemented ConvertToString.
* Int32Converter.cs: Implemented ConvertToString.
* Int64Converter.cs: Implemented ConvertToString.
* SByteConverter.cs: Implemented ConvertToString.
* SingleConverter.cs: Implemented ConvertToString.
* UInt16Converter.cs: Implemented ConvertToString.
* UInt32Converter.cs: Implemented ConvertToString.
* UInt64Converter.cs: Implemented ConvertToString.

svn path=/trunk/mcs/; revision=48904
2005-08-26 20:08:40 +00:00
Gert Driesen 113f0ec149 * ToolboxItemAttributeTests.cs: Fixed typo in eol-style property.
* ByteConverterTests.cs: Added tests for hex string and min/max
conversions.
* Int16ConverterTests.cs: Added tests for hex string and min/max
conversions.
* Int32ConverterTests.cs: Added tests for hex string and min/max
conversions.
* DecimalConverterTests.cs: Added tests for DecimalConverter.
* DoubleConverterTests.cs: Added tests for DoubleConverter.
* Int64ConverterTests.cs: Added tests for Int64Converter.
* SByteConverterTests.cs: Added tests for SByteConverter.
* SingleConverterTests.cs: Added tests for SingleConverter.
* UInt16ConverterTests.cs: Added tests for UInt16Converter.
* UInt32ConverterTests.cs: Added tests for UInt32Converter.
* UInt64ConverterTests.cs: Added tests for UInt64Converter.


svn path=/trunk/mcs/; revision=48549
2005-08-19 11:41:09 +00:00