Esempio n. 1
0
        public void TestActivatePackage(ConfigBucket bucket)
        {
            var package = new LoaderPackage().Load(bucket);

            pluginManager.ActivatePackages(package);

            Assert.AreEqual(2, pluginManager.GetPlugins().Length);

            var display = tester.GetDisplay();

            StringAssert.Contains(display, "Activate foo");
            StringAssert.Contains(display, "Activate bar");

            dispatcher.Dispatch("foo", this, null);
            dispatcher.Dispatch("bar", this, null);
            display = tester.GetDisplay();
            StringAssert.Contains(display, "Trigger foo event");
            StringAssert.Contains(display, "Trigger bar event");
        }