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
  1. void returnValue(V values)
  2. void returnValue(V values)
    struct Mock(T)
    void
    returnValue
    (
    int i
    string funcName
    V...
    )
    ()

Meta