#7 Mocking interfaces derived from other interfaces

open
nobody
None
6
2008-01-29
2005-07-07
Anonymous
No

My class under test is manipulating an IList, and I'm
trying to mock this using NMock2. However, the class
calls the Count property, which is strictly part of
ICollection so NMock2 barfs.

Is this expected behavior? If so, what are the
workarounds?

Thanks
nick.gunn@deletethisbitcba.com.au

Discussion

    • priority: 5 --> 6
     
  • Logged In: YES
    user_id=135731
    Originator: NO

    Hi Nick,

    I have the same problem. Have you found a solution?

    Thanks,
    Stenio