I can do:
var req = new Mock<HttpRequestBase>();
var vals = new Dictionary<string, string>();
req.Expect(r => r[It.IsAny<string>()])
.Returns(s => vals[s]);
But what about something like this ???
req.ExpectSet(r => r[It.IsAny<string>()], It.IsAny<string>())
.Callback((s, v) => vals[s] = v);