public void Setup() { _pluginDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); AssemblyWriter.WriteTestPlugin(_pluginDirectory, TestpluginDll); _resolver = new AssemblyResolver { PluginDirectory = _pluginDirectory }; }
public void Setup() { _pluginDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); _pluginFileName = Path.Combine(_pluginDirectory, TestpluginDll); AssemblyWriter.WriteTestPlugin(_pluginDirectory, TestpluginDll); _assemblyResolverMock = new Mock <IAssemblyResolver>(); _pluginLoader = new PluginLoader(_assemblyResolverMock.Object, typeof(IPlugin).FullName); }