+2007-12-04 Arina Itkes <arinai@mainsoft.com>
+
+ * Uri.cs: Unix absolute path should not be valid on Windows.
+
2007-12-04 Arina Itkes <arinai@mainsoft.com>
* HelpKeywordAttribute.cs, WarningException.cs,
throw new UriFormatException("Invalid URI: The format of the URI could not be determined.");
} else if (pos < 0) {
// It must be Unix file path or Windows UNC
- if (uriString [0] == '/'){
+ if (uriString [0] == '/' && Path.DirectorySeparatorChar == '/'){
ParseAsUnixAbsoluteFilePath (uriString);
if (kind == UriKind.Relative)
isAbsoluteUri = false;
+2007-12-04 Arina Itkes <arinai@mainsoft.com>
+
+ * UriTest.cs, UriTest2.cs : Tests that check Unix path should
+ not run on Windows.
+
2007-07-06 Alan McGovern <amcgovern@novell.com>
* UriTest.cs : Added test to check that whitespace
[Category("NotDotNet")]
public void UncFail ()
{
- Uri uri = new Uri ("/home/user/dir/filename.ext");
- Assert ("#7", !uri.IsUnc);
+ if (!isWin32) {
+ Uri uri = new Uri ("/home/user/dir/filename.ext");
+ Assert ("#7", !uri.IsUnc);
+ }
}
[Test]
#endif\r
public void AbsoluteUriFromFileManual ()\r
{\r
+ if (Path.DirectorySeparatorChar == '\\')\r
+ return;\r
FromResource ("test-uri-props-manual.txt", null);\r
}\r
\r