[Mono-dev] Patch to add two notworking tests (System.Net)

Alan McGovern alan.mcgovern at gmail.com
Sun Feb 11 09:53:29 EST 2007


Hi,

Here's how i did it in my own tests. I test in an english culture first,
then german culture.

            System.Threading.Thread.CurrentThread.CurrentCulture =
CultureInfo.GetCultureInfo("en-IE");
            Assert.AreEqual("{X:-124 Y:352.234 Z:123.123}", c.ToString(),
"#1");

            System.Threading.Thread.CurrentThread.CurrentCulture =
CultureInfo.GetCultureInfo("de-DE");
            Assert.AreEqual("{X:-124 Y:352,234 Z:123,123}", c.ToString(),
"#2");

            Vector3 v = new Vector3(1324.2353252353223f, 1324.2353252353223f,
1324.2353252353223f);
            Assert.AreEqual("{X:1324,235 Y:1324,235 Z:1324,235}", v.ToString(),
"#3");

Hope that helps,
Alan.


On 2/11/07, "Andrés G. Aragoneses [ knocte ]" <knocte at gmail.com> wrote:
>
> Robert Jordan escribió:
> > Andrés G. Aragoneses [ knocte ] wrote:
> >> Can someone review and commit the patch I added to bug 80766? It adds
> >> two non-working tests. I will have the fix for the bug soon, hopefully.
> >
> > The tests don't pass on my German MS.NET, so if you want to test
> > at that level you should preset the culture.
>
> It's weird because I am using a Spanish MS.NET version and tests pass
> for me.
>
> How can I preset the culture? Just using
> Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US",false)?
>
> Regards,
>
>         Andrés  [ knocte ]
>
> --
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070211/efaa62e4/attachment.html 


More information about the Mono-devel-list mailing list