oldnew syntax that is more explicit about the record replay model, courtesy of James Kovacs:
mockRepository = new MockRepository();
IFoo mockedFoo = mockRepository.CreateMock<IFoo>();
Fooz fooz = new Fooz(mockedFoo);
Applied patch from Ross Beehler, adding more smarts to Validate.ArgsEqual
- 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