On Jan 28, 1:40 am, changhong <[email protected]> wrote:
> Does any one know if I can override an expectation?
>
> for example: If I set up 2 expectations with different arguments
>
> securityService.Stub(s => s.ValidateUser(String.Empty,
> String.Empty)).IgnoreArguments().Return(true);
>
> securityService.Stub(s => s.ValidateUser("UserName",
> "WrongPassword")).Return(false);
>
> When arguments "UserName"/"Password" are used, it will return false,
> otherwise it will return true.
> This is kind of the expectation with better Argument match overrides
> the other one.
>
> I don't think Rhino.Mocks can do it, but please correct me if I am
> wrong. And anyone thinks this is an useful feature?

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
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