I want a mocked interface method that returns the value that is passed in to it, in this case a string. The method signature is:
string GetLooUp( string thingToLookUp )
I thought this anonymous delegate would work, but it throws an exception on this declaration. Maybe this isn't the right approach?
Expect.Call( mockIThing.GetLookUp( null ))
.IgnoreArguments()
.Do ( (Func<string, string>) delegate (string value) { return value; })
.Repeat.Any();