Rhino Mocks – Stub .Expect vs .AssertWasCalled
What is your test trying to achieve? What behaviour or state are you verifying? Specifically, are you verifying that the collaborator (data) is having its ListCount method called (interaction based testing), or do you just want to make ListCount return a canned value to drive the class under test while verifying the result elsewhere (traditional … Read more