Small typo here, it should be:

Constraints(Is.*Equal*(foo), Is.Anything()) 

On Saturday, August 23, 2008 6:20:22 AM UTC+10, Ayende Rahien wrote:
>
> Constraints(Is.Equals(foo), Is.Anything())
>
> On Fri, Aug 22, 2008 at 4:13 PM, Tim Barcz <[email protected]<javascript:>
> > wrote:
>
>> If I have an object Cryptographer that has a method HashString(string 
>> stringToHash, string salt)
>>
>> I have a call like the following...
>>
>> SetupResult.For(mockCryptographer.HashString(email, 
>> null)).IgnoreArguments()
>>
>> but I would really like to do something like
>>
>> SetupResult.For(mockCryptographer.HashString(email, 
>> null)).IgnoreArguments(Position.Second)
>>
>> The reason being is that the component has the salt defined already.  So 
>> all I supply to the method I'm testing is an email.  I want to ensure that 
>> the cryptographer is being called with the proper email.
>>
>> It is it possible to just ignore one argument?
>>
>> Tim
>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rhinomocks/-/FoUdr2Bq92wJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to