Rhino Mocks 2.5.1: Partial Mocks
Can someone please tell me why I almost always make Rhino Releases in bunches? The second I make a release, another thing pop up and I have to make another one.
Rhino Mocks 2.5 is barely out the door, and here I've another great feature.
Partial Mocks:
Partial mock is a mock object whose default action is to call the original method. Why is this useful?
It's useful because you may want to test an abstract method, and you don't want to write a class with a default implementation just for the tests. You can even set expectations on the methods that the class implement, so you can use it if you want to test that a method calls another method in the class.
As usual, you can download it, or access the source directly.
I updated the API documentation
Comments
Comment preview