Exemplo n.º 1
0
        public void HasPropertyFalse()
        {
            dynamic test        = new ExpandoObject();
            bool    hasProperty = JsonObjects.HasProperty(test, "variableName");

            Assert.AreEqual(false, hasProperty);
        }
Exemplo n.º 2
0
        public void HasPropertyTrue()
        {
            dynamic test = new ExpandoObject();

            test.variableName = "valid string";
            bool hasProperty = JsonObjects.HasProperty(test, "variableName");

            Assert.AreEqual(true, hasProperty);
        }