public void PluginFile_ValidActivatedFalse() { IPluginMaster pluginMaster = new PluginMasterBasePlugin(); var plugin = new BasePlugin(pluginMaster, "test/script.py") { Activated = false }; Assert.AreEqual(plugin.CanBeRun(), false, "Plugin shouldn't be executable"); }
public void PluginFile_ValidActivatedTrue() { IPluginMaster pluginMaster = new PluginMasterBasePlugin(); var plugin = new BasePlugin(pluginMaster, "test/script.py") { Activated = true, OsAuthorized = OSAttribute.TargetFlag.All }; Assert.AreEqual(plugin.CanBeRun(), true, "Plugin should be executable"); }