views:

96

answers:

2

Hello, 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??

+1  A: 

Are you

using Rhino.Mocks.Constraints;

?

Peter Lillevold
thx a loot...it worked :)i thought using Rhino.Mocks was enough!!
Yes, the Is class is in a separate namespace. If this solved your problem, could you please mark the answer as accepted?
Peter Lillevold
A: 

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.

JPCosta