[Mono-bugs] [Bug 71291][Nor] New - AppDomainSetup failures.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 17:47:45 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71291
--- shadow/71291 2005-01-14 17:47:45.000000000 -0500
+++ shadow/71291.tmp.12624 2005-01-14 17:47:45.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 71291
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: AppDomainSetup failures.
+
+The following program should not display anything, there are two
+failures:
+
+using System.Globalization;
+using System;
+using System.IO;
+
+class X {
+ static void AssertEquals (string msg, string a, string b)
+ {
+ if (a != b)
+ Console.WriteLine ("Test {0} fails", msg);
+ }
+
+ static readonly string tmpPath = Path.GetTempPath ();
+
+ static void Main ()
+ {
+ AppDomainSetup setup = new AppDomainSetup ();
+ setup.ApplicationBase = "file:///lala:la";
+ AssertEquals ("AB5 #01", "lala:la", setup.ApplicationBase);
+
+ string expected_path = tmpPath.Replace(@"\", @"/");
+ AppDomainSetup setup2 = new AppDomainSetup ();
+ string fileUri = "file:///" + expected_path;
+ setup2.ApplicationBase = fileUri;
+ AssertEquals ("AB1 #01", expected_path, setup2.ApplicationBase);
+ }
+}