AAA syntax isn't usually used with setting expectations. Normally instead of having an Expect call before-hand you would have a MockObject.AssertWasCalled(x=>x.Method()) after.
On 30 September 2010 04:36, PB <[email protected]> wrote: > Is there a way to use VerifyAll on new static MockRepository instead > of calling VerifyAllExpectations on every mocked object in my test? > For instance a method uses 10 different services and you are only > interested in testing the behaviour of this method i.e. those 10 > services are called, you’d mock 10 services using DynamicMock and > simply call VerifyAll. With non AAA model it can be achieved by > mocking services in SetUp using DynamicMock, recording expectations on > the mocked objects, playing back the operation and calling VerifyAll > on mock repository. But how can I achieve the same with AAA syntax, > benefit of auto record and playback is weighed out by calling > VerifyAllExpectations on all mocked objects. > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rhinomocks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
