public void AddParamShouldAddAnyTypeParamToUrl() { var builder = new Url("foo.com"); builder.AddParam("fizz", "buzz"); builder.AddParam("foo", true); builder.AddParam("bar", 1); var result = builder.GetUrl(); Assert.That(result, Is.EqualTo("foo.com?fizz=buzz&foo=true&bar=1")); }
public void AddParamShouldAddParameterToUrl() { var builder = new Url("foo.com"); builder.AddParam("fizz", "buzz"); var result = builder.GetUrl(); Assert.That(result, Is.EqualTo("foo.com?fizz=buzz")); }