public void Test_PluginsMan() { var pluginsMan = new PluginsMan(); Assert.IsNotNull(pluginsMan); string path = null; pluginsMan.Load(null, path); Assembly asm = null; pluginsMan.Load(null, asm); Assert.AreEqual(0, pluginsMan.Count); pluginsMan.Load(AppHost.Instance, GetType().Assembly); Assert.AreEqual(1, pluginsMan.Count); Assert.IsNotNull(pluginsMan[0]); pluginsMan.Unload(); pluginsMan.OnLanguageChange(); pluginsMan.NotifyRecord(null, null, RecordAction.raAdd); Assert.AreEqual(null, pluginsMan.CreateLangMan(null)); }
public void Test_PluginsMan() { var pluginsMan = new PluginsMan(); Assert.IsNotNull(pluginsMan); Assert.AreEqual(0, pluginsMan.Count); pluginsMan.Load(null, null); pluginsMan.Unload(); pluginsMan.OnLanguageChange(); pluginsMan.NotifyRecord(null, null, RecordAction.raAdd); Assert.AreEqual(null, pluginsMan.CreateLangMan(null)); }