Mock.returnValue

This version takes overloads into account. i is the overload index. e.g.:

interface Interface { void foo(int); void foo(string); }
auto m = mock!Interface;
m.returnValue!(0, "foo"); // int overload
m.returnValue!(1, "foo"); // string overload
struct Mock(T)
void
returnValue
(
int i
string funcName
V...
)
()

Meta