UriBuilder is more forgiving (than Uri) when parsing string uri
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 17 Sep 2010 13:17:31 +0000 (09:17 -0400)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 17 Sep 2010 21:25:35 +0000 (17:25 -0400)
commit4a03d74fcdc155a3d22022996fb08cc0a1bacc57
tree5062c70ce1e855e0f03a92bd735edf3a639a81c6
parentf8bc4bbfb889e8b6d599d92e121591a3edf38ce6
UriBuilder is more forgiving (than Uri) when parsing string uri

* System/UriBuilder.cs: Refactor constructors to share Initialization
methods. Allow a second chance to .ctor(string) to parse an URI by
assuming it's an HTTP URI

* Test/System/UriBuilderTest.cs: Add test case with string URI that do
not provide a scheme - UriBuilder will default them to http:// even if
Uri would not parse them
mcs/class/System/System/UriBuilder.cs
mcs/class/System/Test/System/UriBuilderTest.cs