#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

  • Richard A. Holden III

    • priority: 5 --> 6
     
  • Stenio Brunetta

    Stenio Brunetta - 2008-06-27

    Logged In: YES
    user_id=135731
    Originator: NO

    Hi Nick,

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

    Thanks,
    Stenio

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks