Unit testing and mocking internal interfaces with RhinoMocks(blog.roboblob.com)
submitted by
spavkov(1708) 2 years, 3 months ago
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.
|category: Unit Testing
|Views: 227
tags:
Testing another
Everyones tags:
Your Tags: