Possible Duplicate:
testing an internal class
I like to have my test classes in a separate assembly, and that is causing some problem with testing internal classes. Since internal classes and methods are only visible inside of the assembly my test assembly can't see those classes and methods. What is the most effective way to test those classes? Do I need to use reflection to access the methods I wan't to test?
You can use the InternalsVisbleTo attribute.
See this question: How do I allow assembly (unit testing one) to access internal properties of another assembly?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With