* Uri.cs : do not reject relative short name URI when uriKind is
RelativeOrAbsolute.
* UriTest3.cs : added test for parsing short name with
RelativeOrAbsolute mode.
svn path=/trunk/mcs/; revision=144175
+2009-10-15 Atsushi Enomoto <atsushi@ximian.com>
+
+ * Uri.cs : do not reject relative short name URI when uriKind is
+ RelativeOrAbsolute.
+
2009-09-01 Raja R Harinath <harinath@hurrynot.org>
Fix #533572
}
}
- if (len <= 1 && (kind != UriKind.Relative))
+ if (len <= 1 && (kind == UriKind.Absolute))
return "Absolute URI is too short";
int pos = 0;
+2009-10-15 Atsushi Enomoto <atsushi@ximian.com>
+
+ * UriTest3.cs : added test for parsing short name with
+ RelativeOrAbsolute mode.
+
2009-09-01 Andres Aragoneses <aaragoneses@novell.com>
* UriTest.cs: New tests from #533572.
}
}
+ [Test]
+ public void ParseShortNameAsRelativeOrAbsolute ()
+ {
+ new Uri ("x", UriKind.RelativeOrAbsolute);
+ }
+
private class TolerantUriParser : GenericUriParser
{
private const GenericUriParserOptions DefaultOptions