|
From: Mike C. <mik...@gm...> - 2007-08-28 09:03:38
|
Could you be more specific about what it is you want to do and which isn't working? I'd have thought that creating a collection of your choice and mocking GetEnumerator() to return that collection's enumerator would suffice for most purposes. If you were really keen you could mock it to return a mocked IEnumerator and set up expectations on that for Reset/MoveNext/Current calls, but I have a hard time imagining a scenario where that would be useful. cheers Mike On 28/08/07, Duncan Bayne <dhg...@gm...> wrote: > Hi All, > > I'm trying to mock an object which implements an interface that itself > implements IEnumerable. Can anyone point me at an example of this > being done, or perhaps some documentation covering it? |