Rhino Mocks: Stub & Mocks. What is the difference

I use Rhino Mocks in my unit test.

I would like to know the difference between STUBS and Mocks ( mocks.Stub<T>()and mocks.StrictMock<T>()).

+5
source share
1 answer

I think this was asked before.

Typically, this applies to the following differences:

  • Strict Mocks throws exceptions for every call that was not expected
  • Dynamic Mocks accept unexpected calls and simply return default values ​​(e.g. null)
  • Stubs mocks, . , , Stub, Expect AssertWasCalled . Mock. .

Rhino AAA, Strict Mocks, .


:

Rhino, .

+6

All Articles