Foo currentFoo = MockRepository.GenerateMock<Foo>(); Foo previousFoo = MockRepository.GenerateMock<Foo>();
After executing that code myMockFoo1 and myMockFoo2 both seem to point to the same proxy instance (or at least mousing over them provides the exact same ToString() of... FooProxy02cb26349447484ca62bb786f3e05044 FooProxy02cb26349447484ca62bb786f3e05044 If this is the case the following expectation doesn't seem trustable.. FooService.Expect(mock => mock.ExecuteOn(currentFoo, previousFoo)) since the code could be passing 2 first even though the order that they are passed in IS important to me. In fact based on what I'm currently working on it appears that the expectation itself never passes (even when called in the correct order) unless you IgnoreArguments... Thoughts? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
