public void NullPathArgsAreReplaced() { var p = Path("abc/{0}", Int.Or("nothing")); Assert.AreEqual("abc/nothing", p[null].ToString()); }
public void NullablePathArgsArePopulated() { var p = Path("abc/{0}", Int.Or(null)); Assert.AreEqual("abc/23", p[23].ToString()); }
public void NullPathArgsAreBlank() { var p = Path("abc/{0}", Int.Or(null)); Assert.AreEqual("abc/", p[null].ToString()); }
public void NullQueryArgsAreReplaced() { var p = Path("abc", Arg("bob", Int.Or("nothing"))); Assert.AreEqual("abc?bob=nothing", p[null].ToString()); }
public void NullableQueryArgsArePopulated() { var p = Path("abc", Arg("bob", Int.Or(null))); Assert.AreEqual("abc?bob=23", p[23].ToString()); }
public void NullQueryArgsAreOmitted() { var p = Path("abc", Arg("bob", Int.Or(null))); Assert.AreEqual("abc", p[null].ToString()); }