C# reflection?
Design and Architecture
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have a class as under:
public class ExampleClass : BaseClass
{
public int ExampleMethod(int \_toValidate) { ExampleValidator(\_toValidate); return 1;
}
}
The ExampleValidator method is contained in the BaseClass. It is used to validate the parameter _toValidate. The ExampleValidator check is very important and every method in the class ExampleClass should contain it. I want to create a unit test for this class ExampleClass, to test if every method does contain the ExampleValidator. How can I do that? Can reflection help me? Regards, ap.