Rhino Mocks 2.5: Weekend of Code
I'm not really sure why, but of late, there has been a lot of traffic in the Rhino Mocks mailing list. Most of it about new features that people requested, and including some really good patches (thanks to Brian and Geert).
Here is a list of the new features:
- You can now move a mock object back to record mode, this allows you to specify the interactions between the object in small steps every time.
- You can now mock internal classes (.Net 2 only, and require your to specify: InternalsVisibleTo)
- Rhino Mocks understand nullables, and act accordingly (before it would treat them as value types, and wouldn't accept/retun null for them).
- Automatic handling of properties - you can now just say that you want a property to behave like a property, and it just work. It doesn't require implementing anything, so you can do that on interfaces as well. It even works with indexed properties.
- Added a Do() handler that allows you to pass a delegate to control what will happen when a method match expectation. In essense, you can now use a delegate to decide what to do when a method is called (chagne the return value, throw, etc).
Bug fixes:
- Rhino Mocks (and Dynamic Proxy) can now handle overloaded indexed properties properly. (try to say that ten times fast).
- Disabled the trace output that was driving some people nuts.
I'm going to update the API documentation and the documentation about it soon.
As usual, you can download it, or access the source directly.
Comments
Comment preview