Beispiel #1
0
        public void BuildParameters_ObjectWithNoReadableProperties_ResultsInEmptyString()
        {
            NoReadableProperties o = new NoReadableProperties();
            string queryString     = UrlHelper.BuildParameters(o);

            Assert.AreEqual(String.Empty, queryString);
        }
Beispiel #2
0
        public void ObjectToDictionary_ObjectWithNoReadableProperties_ReturnsEmptyDictionary()
        {
            NoReadableProperties o = new NoReadableProperties();
            var d = UrlHelper.ObjectToDictionary(o);

            Assert.AreEqual(0, d.Count);
        }
Beispiel #3
0
 public void BuildParameters_ObjectWithNoReadableProperties_ResultsInEmptyString()
 {
     NoReadableProperties o = new NoReadableProperties();
     string queryString = UrlHelper.BuildParameters(o);
     Assert.AreEqual(String.Empty, queryString);
 }
Beispiel #4
0
 public void ObjectToDictionary_ObjectWithNoReadableProperties_ReturnsEmptyDictionary()
 {
     NoReadableProperties o = new NoReadableProperties();
     var d = UrlHelper.ObjectToDictionary(o);
     Assert.AreEqual(0, d.Count);
 }