Can now stub with lambda that gets args by ref: When(Method(mock,foo)).Do([](int& a, int& b){return a+b;}); Will work now!