phuccaoca123 / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Add ability to test non-public membered that defined in base classes. #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, when Reflector class used to test non-public members, it's 
impossible to test members that defined in base classes. 
For example we have to classes A & B. B is derived from A. A class defines 
integer count. 

public class A 
{ 
  private int count = 5; 
  ... 
} 

public class B : A 
{ 
  ... 
} 

Code below will generate an ReflectionException. 

B b = new B(); 
Reflector.GetField(_b, "count"); 

Original issue reported on code.google.com by astopf...@gmail.com on 31 Aug 2007 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by astopf...@gmail.com on 31 Aug 2007 at 1:35

GoogleCodeExporter commented 9 years ago
It was implemented and built with version 2.4.1.220.

Original comment by vkrey...@gmail.com on 5 Sep 2007 at 1:24