Reputation:
I am using the Rhino Mocks framework. I referenced the Rhinomocks dll and everything worked fine.. but when I was trying to use the LastCall.Constraints(Is.Anything()) it says: Error The name 'Is' does not exist in the current context The same happens with Text and List constraints.. any help??
Upvotes: 0
Views: 354
Reputation: 33920
Are you
using Rhino.Mocks.Constraints;
?
The ´Is´ class is defined in the ´Constraints´ namespace which must be referenced explicitly in order to use the class.
Upvotes: 3
Reputation: 1257
I am not familiar with the RhinoMocks framework, but I found some code that might help you. This is a file from the SVN of castleproject.org that uses it, you might want to compare your approach with theirs.
Upvotes: 0