public void TestLoading() { var pluginManager = new PluginManager(new EventBus()); var testPlugin = new TestPlugin(); pluginManager.LoadPlugin(testPlugin); Assert.Single(pluginManager.Plugins); }
public void TestPreInitialization() { var pluginManager = new PluginManager(new EventBus()); var testPlugin = new TestPlugin(); pluginManager.LoadPlugin(testPlugin); pluginManager.PreInitializePlugins(); var loadedPlugin = pluginManager.Plugins[0] as TestPlugin; Assert.True(loadedPlugin.PreInitialized); }