I am new to writing unit tests so learning as I go along. I am using Rhino Mocks with MsTest frameworks and have some questions.
Where can I find some documentation on rhino mocks, outlining its features with explanations, so I can print off and examine?
I have seen numerous examples of the 2 following techniques regarding expectations, which is the better or more apt for a particular situation?
Expect.Call( delegate { mockTestClass.MethodToMock(param) } ).Return(true);
or
var mockTestClass = MockRepository.GenerateMock<TestClass>();
mockTestClass.Expect( m => m.MethodToMock(param) ).Return( true );
Next I am wondering what the difference between stubbing and mocking a class is and what should be used in which scenarios?
Thanks for any help.