我有一个类具有依赖性:如何在Rhino Mocks中存储Func <T,TResult>?
private readonly IWcfClient<ITestConnectionService> _connectionClient;
,我想stub这个电话:
_connectionClient.RemoteCall(client => client.Execute("test"));
目前这是行不通的:
_connectionService
.Stub(c => c.RemoteCall(rc => rc.Execute("test")))
.Return(true);
这是可能的在犀牛?