unit testing - Rhino Mocks: Stub & Mocks. What is the difference -


I am using Rhino Mox in my unit test.

I want to know the differences between STUBS and MOCKS ( mocks.Stub <>> and mocks.StrictMock T & gt; ; () ).

I think that was asked before.

This is usually the same with the following differences:

  • Dynamic mail accept unexpected calls and just
  • Stubs are like dynamic mocks but by default the "property transaction" is returned by default (like .null) It is allowed to read and read properties like fields, but do not expect stub , and on AssertWasCalled properties. This behavior can also be configured on a normal mock. But this is the default for stubs.

    As the Rhino changed, it has been discouraged to use the strict Max, because they work very hard to maintain the test code.

  • I do not get information about Rhino implementation, So I do not mark this question as a duplicate.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -