Hi Slace,
The feature you're requesting is part of future development of Isolator
But right now it is not possible in AAA to determine the result according to the parameter passed.
In the upcoming release (5.2.2) it will be possible to define return values according to the overloaded method called - by the argument type but not according to the argument value.
If you need to define exact return according to value passed you can use reflective mocks
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
fakeObject.SomeMethod("param1");
recorder.Return("Something about param1").WhenArgumentMatch();
fakeObject.SomeMethod("param2");
recorder.Return("Something about param2").WhenArgumentMatch();
}
Note that it is not recommended to mix Natural mocks and AAA so stick with one API per test