using (MockRepository.Record()) { mockedObject.Expect(mock=>mock.VoidMethod(expectedParameterIfAny)); } using(MockRepository.PlayBack()) { objectToTest->SomeMethod(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)