public static void validate_cleanuri_removes_querystring()
        {
            var uri    = new Uri("http://www.example.com:80/dir/?query=test");
            var result = StringsHelper.CleanUri(uri);

            Assert.AreEqual("http://www.example.com:80/dir/", result);
        }
        public static void validate_cleanuri_strips_userpassword()
        {
            var uri    = new Uri("http://*****:*****@example.com:443/dir/?query=test");
            var result = StringsHelper.CleanUri(uri);

            Assert.AreEqual("http://example.com:443/dir/", result);
        }
        public static void validate_cleanuri_keeps_conventional_port_443()
        {
            var uri    = new Uri("http://www.example.com:443/dir/?query=test");
            var result = StringsHelper.CleanUri(uri);

            Assert.AreEqual("http://www.example.com:443/dir/", result);
        }
        public static void validate_cleanuri_returns_original_uri_for_relative_uris_and_strips_querystring()
        {
            Uri uri    = new Uri("/relative/uri?dude=666", UriKind.Relative);
            var result = StringsHelper.CleanUri(uri);

            Assert.AreEqual("/relative/uri", result);
        }
        public static void validate_cleanuri_is_stringempty_when_uri_is_null()
        {
            Uri uri    = null;
            var result = StringsHelper.CleanUri(uri);

            Assert.AreEqual(string.Empty, result);
        }
        public void validate_CleanUri_String_Version(string uri, string expected)
        {
            var actual = StringsHelper.CleanUri(uri);

            Assert.AreEqual(expected, actual);
        }