Rhino Mocks - Stub .Expect vs .AssertWasCalled
问题 OK, I know there has been a lot of confusion over the new AAA syntax in Rhino Mocks, but I have to be honest, from what I have seen so far, I like. It reads better, and saves on some keystrokes. Basically, I am testing a ListController which is going to basically be in charge of some lists of things :) I have created an interface which will eventually become the DAL, and this is of course being stubbed for now. I had the following code: ( manager is the system under test, data is the stubbed