testing

.NET Musings

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

NAVIGATION - SEARCH

Rhino Mocks 3.5 RTM

Technorati Tags: ,,,

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

Announcement here (http://ayende.com/Blog/archive/2008/10/05/rhino-mocks-3.5-rtm.aspx), code can be found here (http://ayende.com/projects/rhino-mocks/downloads.aspx), documentation here (http://ayende.com/Wiki/Rhino+Mocks+3.5.ashx)

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

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

    Features:
  • 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