Unit testing and mocking internal interfaces with RhinoMocks

added by spavkov
2/21/2010 6:00:01 AM

9 Kicks, 306 Views

Im not the kind of purist that will avoid unit testing internal classes. If its some very important code i want to test it even if its internal. Another case when i want to access internal classes is when i want to test some public class that uses some internal classes (via their interfaces). In this scenario i need to be able to mock those internal interfaces that the public class is using in order to be able to instantiate it and unit test it.


0 comments