I've read and re-read and don't understand what you're asking (sorry). Can you possibly rephrase?
On Wed, Jan 27, 2010 at 7:43 PM, Changhong Fu <[email protected]> wrote: > Sorry, in my previous message, it supposed to be "When arguments > "UserName"/"*WrongPassword*" are used, it will return false..." > > > On Thu, Jan 28, 2010 at 12:40 PM, 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]<rhinomocks%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/rhinomocks?hl=en. >> >> > -- > 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]<rhinomocks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. > -- Tim Barcz Microsoft C# MVP Microsoft ASPInsider http://timbarcz.devlicio.us http://www.twitter.com/timbarcz -- 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.
