Unit testing and mocking internal interfaces with RhinoMocks(blog.roboblob.com)

submitted by spavkovspavkov(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.

add a comment |category: |Views: 227

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story