Пример #1
0
        public void GetPropertyGetterTest()
        {
            PropertyInfo           propInfo = null; // TODO: 初始化为适当的值
            FastPropertyGetHandler expected = null; // TODO: 初始化为适当的值
            FastPropertyGetHandler actual;

            actual = DynamicCalls.GetPropertyGetter(propInfo);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #2
0
 public PropertyHandler(PropertyInfo property)
 {
     if (property.CanWrite)
     {
         this.mSetValue = DynamicCalls.GetPropertySetter(property);
     }
     if (property.CanRead)
     {
         this.mGetValue = DynamicCalls.GetPropertyGetter(property);
     }
     this.mProperty = property;
 }