Beispiel #1
0
        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");
        }
Beispiel #2
0
        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");
        }