Example #1
0
 public void TestBindingMemberInfo(ReflectionTestManager.FieldRef field)
 {
     if (field.Field == null)
     {
         return;
     }
     Assert.True(ReflectedManager.Process(field.Field));
     if (field.Field.IsStatic)
     {
         Assert.NotNull(field.Field.GetValue(null));
     }
 }
Example #2
0
 public void TestBindingEvents(ReflectionTestManager.FieldRef field)
 {
     if (field.Field == null)
     {
         return;
     }
     Assert.True(ReflectedManager.Process(field.Field));
     if (field.Field.IsStatic)
     {
         ((Func <ReflectedEventReplacer>)field.Field.GetValue(null)).Invoke();
     }
 }