I'm using Rhino Mocks in my unit test.
I would like to know the difference between STUBS and MOCKS (mocks.Stub<T>()
and mocks.StrictMock<T>()
).
I'm using Rhino Mocks in my unit test.
I would like to know the difference between STUBS and MOCKS (mocks.Stub<T>()
and mocks.StrictMock<T>()
).
I think it had been asked before.
It is generally the same with the following differences:
Stub
, Expect
nor AssertWasCalled
on properties. This behaviour can also be configured on a normal Mock too. But for stubs it is the default.Since Rhino changed to AAA syntax, it is discouraged to use Strict Mocks, since they make test code very hard to maintain.
Similar questions:
I can't find the information about the Rhino implementation, so I don't mark this question as duplicate.