I also tried to find solutions for this, because it is a common
problem.
It is also frequently asked for, for instance here:
http://groups.google.com/group/rhinomocks/browse_thread/thread/b7db5ddb3e10c85/e346581675e73992
I wrote a patch that allowed an AssertArguments option, which let the
mock react to the call, even if the arguments are wrong, but checks
the arguments for certain values. The patch didn't get it to the
trunk, because I failed to make clear what it is good for. I should
probably try again.
Alternatively you could write something like this:
var view = MockRepository.GenerateMock<IFoo>();
view
.Stub( x => x.Method(Arg<string>.Is.Anything))
.WhenCalled( call =>
{
string arg = (string)call.Arguments[0];
Assert.AreEqual(arg, "Tim");
});
view.Method("larry");
view.AssertWasCalled(x=>x.Method("tim"));
It's a lot of not very elegant code, but does exactly what you need.