コード例 #1
0
 public void Setup()
 {
     _pluginDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
     AssemblyWriter.WriteTestPlugin(_pluginDirectory, TestpluginDll);
     _resolver = new AssemblyResolver {
         PluginDirectory = _pluginDirectory
     };
 }
コード例 #2
0
        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);
        }