[Mono-dev] RE: [Mono-patches] r48374 - intrunk/mcs/class/System.Drawing: .System.Drawing Test/System.Drawing

Kornél Pál kornelpal at hotmail.com
Tue Aug 16 08:23:46 EDT 2005


> I wrote some test cases, and searched for a culture-specific character
> that
> matches the results I got.

To make sure that the character is culture-specific and not hard coded you
have to use a custom CultureInfo with custom format information as the
CurrentCulture similar to my test in
http://lists.ximian.com/pipermail/mono-devel-list/2005-August/013931.html

And note that ToString is usually culture-sensitive.

Kornél

----- Original Message -----
From: "Gert Driesen" <gert.driesen at telenet.be>
To: "'Andrew Skiba'" <andrews at mainsoft.com>
Cc: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, August 16, 2005 1:00 PM
Subject: [Mono-dev] RE: [Mono-patches] r48374 -
intrunk/mcs/class/System.Drawing: .System.Drawing Test/System.Drawing


> Andrew,
>
> I wrote some test cases, and searched for a culture-specific character
> that
> matches the results I got.
>
> I'm still working on additional fixes and tests, I should get things
> stable
> today (meaning tests should pass on both mono and MS.NET).
>
> Gert
>
>> -----Original Message-----
>> From: Andrew Skiba [mailto:andrews at mainsoft.com]
>> Sent: dinsdag 16 augustus 2005 12:52
>> To: Gert Driesen
>> Cc: mono-devel-list at lists.ximian.com
>> Subject: RE: [Mono-patches] r48374 - in
>> trunk/mcs/class/System.Drawing: .System.Drawing Test/System.Drawing
>>
>> Hi Gert.
>>
>> Can you please tell me, how do you know that dotnet uses the
>> CultureInfo.InvariantCulture.TextInfo.ListSeparator and not hardcoded
>> comma?
>>
>> And BTW you did not change CT#3 testcase, so it fails now:
>>
>> Failures:
>> 1) MonoTests.System.Drawing.ColorConverterFixture.ConvertTo : CT#3
>>         String lengths are both 14.
>>         Strings differ at index 2.
>>
>>         expected:<"10, 20, 30, 40">
>>          but was:<"10. 20. 30. 40">
>>         -------------^
>>
>>
>> Thank you.
>> Andrew Skiba.
>>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list