Exemplo n.º 1
0
        public void TestNoDependencies()
        {
            PluginManager pm = Init(CreateManifest2("TestPlugin1", "TestPlugin2"));

            Assert.IsFalse(pm.HasError);

            VerifyPluginOrder(pm.GetOrderedPlugins(), new Type[] { typeof(TestPlugin1), typeof(TestPlugin2) });
        }
Exemplo n.º 2
0
        public void TestDependency()
        {
            PluginManager pm = Init(CreateManifest2("TestPluginDep", "TestPlugin1"));

            Assert.IsFalse(pm.HasError);

            //Manifestでの順番と逆転していることを確認
            VerifyPluginOrder(pm.GetOrderedPlugins(), new Type[] { typeof(TestPlugin1), typeof(TestPluginDep) });
        }