public void Setup() { var parameters = new ParametersCollection(";", "="); parameters.AddValue("type", "i"); _url = new FtpUrl("ftp://temp.uri/whatever/path;type=i", "ftp", null, null, "temp.uri", 21, "/whatever/path", parameters, "whatever", "path"); }
public void Setup() { var parameters = new ParametersCollection("&", "="); parameters.AddValue("with", "query"); _url = new HttpUrl(true, "http://temp.uri/whatever/path?with=query#and-fragment", "http", "temp.uri", 80, "/whatever/path", parameters, "and-fragment", "whatever", "path"); }
public void it_should_add_a_key_with_empty_value() { _parameters.AddValue("key", String.Empty); _parameters.AddValue("another", String.Empty); _parameters.Should().HaveCount(2).And.Subject.Any(param => param.Equals(new KeyValuePair <string, string>("key", String.Empty))).Should().BeTrue(); }