#3 NMock2: Provide matchers for List<T>

open
nobody
None
9
2008-02-25
2006-03-01
No

The following thread talks about matching an argument
of List<T> and ends with a user providing his own
custom matcher:

https://sourceforge.net/mailarchive/forum.php?thread_id=9786445&forum_id=45719

Can we provide these kinds of matchers as part of the
NMock2 release rather than have everyone implement
their own?

Discussion

  • Michael Mason

    Michael Mason - 2006-03-02

    Logged In: YES
    user_id=24715

    Nat says:

    I agree that this should be part of the standard set of
    constraints.

    Perhaps there should be constraints for dictionaries too. I
    merged a patch into jMock recently that contributed useful
    constraints for collections and dictionaries, so you can
    specify that a parameter is an element of a list, or is a
    key of a dictionary, etc. Very useful for keeping tests
    flexible.

     
  • Richard A. Holden III

    • priority: 5 --> 9
     

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