Does any matcher libraries exist for .net? I am talking about a开发者_开发百科 library like the hamcrest library for java...
Graham Hay has a .NET port of Hamcrest on GitHub:
https://github.com/grahamrhay/NHamcrest
The closest thing I have yet found is the matchers in Moq: http://code.google.com/p/moq/wiki/QuickStart
http://weblogs.manas.com.ar/bcardiff/2009/02/reimproved-argument-matchers-in-moq/
However this is very tightly coupled to the mocking framework, I would like something more seperate.
精彩评论