public void MethodExecutorTest_ExecuteMethodWithParameter() { //Arrange var methodInfo = typeof(SimplePOCOBatch).GetMethod("method3"); var targetTypeInfo = typeof(SimplePOCOBatch).GetTypeInfo(); var instance = new SimplePOCOBatch(); MethodExecutor methodExecutor = MethodExecutor.Create(methodInfo, targetTypeInfo); //Act var response = methodExecutor.Execute(instance, new[] { "method3" }); //Assert Assert.NotNull(response); Assert.IsType <string>(response); Assert.Equal("method3", response); }