I am using RhinoMocks. Now I want to assert that some function was called, but I only care about one of the arguments. Can I do a AssertWasCalled where I only s
AssertWasCalled
You can specify the 2nd argument as Arg<T>.Is.Anything, then the actual value gets ignored.
Arg<T>.Is.Anything
However note that using this you need to use Arg for all arguments. Which means you need to use on the first argument: Arg<int>.Is.Equal(123).
Arg<int>.Is.Equal(123)