Exemple #1
0
        public void NullPathArgsAreReplaced()
        {
            var p = Path("abc/{0}", Int.Or("nothing"));

            Assert.AreEqual("abc/nothing", p[null].ToString());
        }
Exemple #2
0
        public void NullablePathArgsArePopulated()
        {
            var p = Path("abc/{0}", Int.Or(null));

            Assert.AreEqual("abc/23", p[23].ToString());
        }
Exemple #3
0
        public void NullPathArgsAreBlank()
        {
            var p = Path("abc/{0}", Int.Or(null));

            Assert.AreEqual("abc/", p[null].ToString());
        }
Exemple #4
0
        public void NullQueryArgsAreReplaced()
        {
            var p = Path("abc", Arg("bob", Int.Or("nothing")));

            Assert.AreEqual("abc?bob=nothing", p[null].ToString());
        }
Exemple #5
0
        public void NullableQueryArgsArePopulated()
        {
            var p = Path("abc", Arg("bob", Int.Or(null)));

            Assert.AreEqual("abc?bob=23", p[23].ToString());
        }
Exemple #6
0
        public void NullQueryArgsAreOmitted()
        {
            var p = Path("abc", Arg("bob", Int.Or(null)));

            Assert.AreEqual("abc", p[null].ToString());
        }