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

"Andrés G. Aragoneses [ knocte ] "Andrés G. Aragoneses [ knocte ]
Wed Mar 7 10:56:41 EST 2007


Hi Alan, let me rescue this thread (I've been very busy until now):

Alan McGovern escribió:
> 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");


I'm trying your technique with my MS.NET installation and I don't manage 
to get it working (I keep getting exception messages in Spanish instead 
of English). For example the simple code of my testcase is:

         public static void Main()
         {
             System.Threading.Thread.CurrentThread.CurrentCulture = 
System.Globalization.CultureInfo.GetCultureInfo("en-US");
             System.Threading.Thread.CurrentThread.CurrentUICulture = 
System.Globalization.CultureInfo.GetCultureInfo("en-US");
             Process oProc = new Process();
             oProc.StartInfo.FileName = "foobar.exe";
             oProc.Start();
         }

Result:
Unhandled Exception: System.ComponentModel.Win32Exception: El sistema no 
puede hallar el archivo especificado
    at 
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startI
nfo)


Any ideas about what I may be doing wrong? Thanks in advance,

	Andrés	[ knocte ]

-- 




More information about the Mono-devel-list mailing list