//interface: string DoSomething(string one, string two); //test class: _mock.Setup(x => x.DoSomething(It.IsAny<string>(),It.IsAny<string>(),It.IsAny<string>()) .Returns((string one, string two) => string.Concat(one,two));