public void TestMethod1()
 {
     var someobject = new SomeObject();
     someobject.ID = 1;
     var setMethod = Compiler.SetMethod(someobject);
     var getMethod = Compiler.GetMethod(someobject);
     setMethod(someobject, "ID", 3);
     var id = getMethod(someobject, "ID");
     Assert.IsTrue(id.ToString() == "3");
 }
示例#2
0
        public void TestMethod1()
        {
            var someobject = new SomeObject();

            someobject.ID = 1;
            var setMethod = Compiler.SetMethod(someobject);
            var getMethod = Compiler.GetMethod(someobject);

            setMethod(someobject, "ID", 3);
            var id = getMethod(someobject, "ID");

            Assert.IsTrue(id.ToString() == "3");
        }