Rhino Mocks 3.0.5 Released

New features:

  • A old new syntax that is more explicit about the record replay model, courtesy of James Kovacs:

    MockRepository mockRepository;

    mockRepository = new MockRepository();

    IFoo mockedFoo = mockRepository.CreateMock<IFoo>();

    using (mockRepository.Record())

    {

           Expect.Call(mockedFoo.Bar()).Return(42);

    }

    using (mockRepository.Playback())

    {

           Fooz fooz = new Fooz(mockedFoo);

           fooz.Barz();

    }

  • Applied patch from Ross Beehler, adding more smarts to Validate.ArgsEqual

Bug fixes:

  • Fixing an issue where virtual method calls in partial mocks ctors were not called.
  • Fixing an issue with mocking objects with protected internal abstract methods

You can get it in the usual place

Print | posted on Tuesday, May 01, 2007 12:31 AM

Feedback


Gravatar

# re: Rhino Mocks 3.0.5 Released 5/4/2007 8:16 PM Haacked

Is VerifyAll() called implicitely at the end of this block?

using (mockRepository.Playback())
{
Fooz fooz = new Fooz(mockedFoo);
fooz.Barz();
}


Gravatar

# re: Rhino Mocks 3.0.5 Released 5/4/2007 8:53 PM Ayende Rahien

Yes, that is how it works.

Comments have been closed on this topic.