Exemple #1
0
        public void removeMacroEntryTest_ok()
        {
            Macro_Accessor target = new Macro_Accessor();
            MacroEntry child = new MacroEntry("testplugin", PluginType.IFilterOqat, "testmemento");
            target.addMacroEntry(child, target.rootEntry);

            target.removeMacroEntry(child);

            Assert.IsFalse(target.rootEntry.macroEntries.Contains(child), "Entry was not removed.");
        }
Exemple #2
0
        public void removeMacroEntryTest_nonexistent()
        {
            Macro_Accessor target = new Macro_Accessor();
            MacroEntry child = new MacroEntry("testplugin", PluginType.IFilterOqat, "testmemento");
            target.addMacroEntry(child, target.rootEntry);

            MacroEntry rem = new MacroEntry("blaplugin", PluginType.IFilterOqat, "blamemento");
            target.removeMacroEntry(rem);

            Assert.IsTrue(target.rootEntry.macroEntries.Contains(child), "Entry was unexpectedly removed.");
        }