Parameter restrictions

I am using the Rhino Mocks framework. I referenced the Rhinomocks dll and everything worked fine .. but when I tried to use LastCall.Constraints (Is.Anything ()) it says: Error. The name "Is" does not exist in the current context. The same thing happens with the Text and List constraints. any help?

0


a source to share


2 answers


You

using Rhino.Mocks.Constraints;

      



?

The 'Is' class is defined in the 'Constraints' namespace, which must be explicitly referenced in order to use the class.

+3


a source


I'm not familiar with the RhinoMocks framework, but I found some code that might help you. This is the file from SVN of castleproject.org that uses it, you can compare your approach with theirs.



0


a source







All Articles