danaH
danaH

Reputation:

Parameter constraints

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

Answers (2)

Peter Lillevold
Peter Lillevold

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

JPCosta
JPCosta

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

Related Questions