+2004-06-11 Atsushi Enomoto <atsushi@ximian.com>
+
+ * test-uri-list.txt,
+ test-uri-props.txt,
+ test-uri-props-manual.txt :
+ Reverted the last change. File URI handling should be common to
+ MS.NET. We have to change the behavior only for Unix file path.
+ * UriTest2.cs : Fixed just catch only UriFormatException.
+
2004-06-10 Atsushi Enomoto <atsushi@ximian.com>
* UriTest.cs : Should not expect exception for Unix file path.
sr.ReadLine (),\r
sr.ReadLine ());\r
// Console.WriteLine ("Passed: " + uriString);\r
- } catch (Exception ex) {\r
+ } catch (UriFormatException ex) {\r
Fail (String.Format ("Construction failed: [{0}] {1}", uriString, ex.Message));\r
}\r
}\r
# Below should be allowed
http://localhost/c#
http://localhost/c#bookmark
+file://localhost/c#fragment
+file://test.domain.com/c#
+file://test.domain.com/c#bookmark
//localhost/c#
# below should not be allowed ...
file://c:/c#
-------------------------- localhost should not be \\localhost\c. No fragment.\r
-file://localhost/c#\r
-file://localhost/c#\r
-file://localhost/c#\r
-file\r
-localhost\r
-\\localhost\c#\r
-\r
--1\r
-True\r
-True\r
-True\r
-False\r
-Dns\r
-/c#\r
-/c#\r
-localhost\r
-\r
-\r
-------------------------- localhost should not be \\test.domain.com\c. No fragment.\r
-file://test.domain.com/c#\r
-file://test.domain.com/c#\r
-file://test.domain.com/c#\r
-file\r
-test.domain.com\r
-\\test.domain.com\c#\r
-\r
--1\r
-True\r
-True\r
-False\r
-False\r
-Dns\r
-/c#\r
-/c#\r
-test.domain.com\r
-\r
-\r
-------------------------- MS.NET totally rejects Unix Path\r
+------------------------- MS.NET totally rejects Unix Path\r
/foo.txt\r
file:///foo.txt\r
file:///foo.txt\r
localhost\r
#bookmark\r
\r
+-------------------------\r
+file://localhost/c#fragment\r
+file://localhost/c#fragment\r
+file://localhost/c#fragment\r
+file\r
+localhost\r
+\\localhost\c\r
+\r
+-1\r
+True\r
+True\r
+True\r
+False\r
+Dns\r
+/c\r
+/c\r
+localhost\r
+#fragment\r
+\r
+-------------------------\r
+file://test.domain.com/c#\r
+file://test.domain.com/c#\r
+file://test.domain.com/c#\r
+file\r
+test.domain.com\r
+\\test.domain.com\c\r
+\r
+-1\r
+True\r
+True\r
+False\r
+False\r
+Dns\r
+/c\r
+/c\r
+test.domain.com\r
+#\r
+\r
+-------------------------\r
+file://test.domain.com/c#bookmark\r
+file://test.domain.com/c#bookmark\r
+file://test.domain.com/c#bookmark\r
+file\r
+test.domain.com\r
+\\test.domain.com\c\r
+\r
+-1\r
+True\r
+True\r
+False\r
+False\r
+Dns\r
+/c\r
+/c\r
+test.domain.com\r
+#bookmark\r
+\r
-------------------------\r
//localhost/c#\r
file://localhost/c%23\r