If possible, change the behavior layout in Rhino Mocks using mock.Stub (). Return (), why do we need stubs?
What do we lose by always using MockRepository.GenerateMock ()?
One of the great advantages of using Mocks instead of Stubs is that we can reuse the same instance among all the tests so that they are cleaner and more understandable.
The moq structure works in a similar way ... we do not have different objects for mocks and stubs.
(please do not respond with reference to Fowler's article "Poppies are not stubs")
source
share