All posts tagged 'tdd'

.NET Musings

Wandering thoughts of a developer, architect, speaker, and trainer


Rhino Mocks 3.5 RTM

Technorati Tags: ,,,

Oren Eini (Ayende Rahien) has just release Rhino Mocks 3.5 RTM. W00t!

Announcement here (, code can be found here (, documentation here (

This is my favorite mocking framework, and RTM is excellent news!

Some of the new Features (taken from the announcement):

  • Assert Act Arrange syntax for mocking
    • Including support for .NET 2.0
  • Added a way to access the mocked method at runtime, using WhenCalled (similar to Do(), but without the pain of having to specify a special delegate).
  • CreateMock() is deprecated and marked with the [Obsolete] attribute. Use StrictMock() instead.
  • Inline constraints.
  • Support for mocking interface in C++ that mix native and managed types. (Note, may require that you install kb957541 to get around bug introduced to the framework on SP1).
  • New event raising syntax: eventHolder.Raise(stub => stub.Blah += null, this, EventArgs.Empty);
  • Better support for multi threaded replays.
    • Note that access to the mock object is now serialized.
  • Support AssertWasCalled on partial mocks.

Happy Coding!
Managed Windows Shared Hosting by OrcsWeb