示例#1
0
        public void GetNestedPropOk()
        {
            var val  = new { A = new { A = 3 } };
            var prop = CommonMacros.GetProp(val, "A.A");

            Assert.NotNull(prop);
        }
示例#2
0
        public void GetNotExistPropWillReturnNull()
        {
            var val  = new { A = 3 };
            var prop = CommonMacros.GetProp(val, "A.A");

            Assert.Null(prop);
        }
示例#3
0
        public void GetSimplePropOk()
        {
            var val  = new { A = 3 };
            var prop = CommonMacros.GetProp(val, "A");

            Assert.NotNull(prop);
        }
示例#4
0
 public void GetNotExistPropWillNotThrow()
 {
     var val  = new { A = 3 };
     var prop = CommonMacros.GetProp(val, "B.C.D");
 }