I realise that there exist some posts such as this one which have asked the same question. However, the links on the suggested page do not work (it simply takes me back to the blog homepage).
I'm looking for a tutorial which does not have any assumed prior Rhino Mocks knowledge.
I need a step-by-step guide which explains the basics (stubs vs. mocks vs. expect.call), how the Record()
, ReplayAll()
, VerifyAll()
, when/why you use Repeat.Any()
etc., work.
I have a rough understanding after reading some of the documentation (which I found some articles to be useful, but most to be confusing at best), but I need some more examples with detailed explanations on how to use Rhino Mocks.
Rhino Mocks will generate fake objects to replace the dependencies that you have, and then allow you to tell them, at runtime, how to behave. This functionality is very powerful, and it means that you can tell your fake objects, for each test, how to behave.
Rhino. Mocks supports three basic types of mock objects: Strict Mock. A strict mock requires you to provide alternate implementations for each method/property that is used on the mock.
I think the best links, which are both up to date, and starting from the basics are:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With