On Thursday, March 1, 2012 3:47:38 PM UTC, sven wrote:
>
> You will only notice a difference between MockRepository.GenerateStub and 
> MockRepository.GenerateMock when you call VerifyAllExpectations().


Sven, I think the question was really: what is the difference between 
creating a STUB from the static MockRepository class vs creating a STUB 
from an instance of the MockRepository [new Rhino.Mocks.MockRepository()].

Personally, I use the static version but that's only for the following 
reasons:

   - Why create an instance when I can use the static?
   - The documentation I was using for the instance way just seemed 
   difficult to follow
   - It works for my particular test scenarios

However, what the actual differences are (if there are any) I can't really 
say.

Griff

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rhinomocks/-/jVt6uuY7mEgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to