Ayende is the man. Seriously.
Today, he released Rhino Mocks 3.3 to great fanfare.
If there wasn't great fanfare, there should be. My favorite new feature - mocking objects that inherit from MarshalByRefObject. You might be asking yourself, why does this matter? Doesn't that only apply to remoting? Well, yes, sort of. The thing is, a huge number of the built-in classes in the CLR support this remoting infrastructure. You know the ones I'm talking about - the built-in classes that are hard to mock and test.
At least they didn't let you mock them out until today. Here's an example of something that might have been harder to test before today:
Yeah, I'm mocking System.Diagnostics.Process. Sweet.
Take a look in Reflector and you'll find out just how many objects actually inherit from MarshalByRefObject. I think you'll be quite surprised.
Thanks Ayende!
Page rendered at Tuesday, December 02, 2008 10:26:13 AM (Central Standard Time, UTC-06:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.