public void PluginRuntimeHandler_GetMethodsWithReturns_WhenValidDll_ExpectValidResults() { //------------Setup for test-------------------------- var source = CreatePluginSource(); var service = CreatePluginService(); //------------Execute Test--------------------------- using (Isolated <PluginRuntimeHandler> isolated = new Isolated <PluginRuntimeHandler>()) { var result = PluginServiceExecutionFactory.GetMethodsWithReturns(source.AssemblyLocation, source.AssemblyName, service.Namespace); //------------Assert Results------------------------- Assert.IsTrue(result.Count > 0); } }
public ServiceMethodList GetMethodsWithReturns(string assemblyLocation, string assemblyName, string fullName) { return(PluginServiceExecutionFactory.GetMethodsWithReturns(assemblyLocation, assemblyName, fullName)); }