Example #1
0
        public void Should_UnInstall_All_PluginDefinitions()
        {
            IPluginManager        pluginManager = new PluginManager();
            IAllocationDefinition definition    = ConvertToDefinition(_DB.PluginInfo_GetAll(), 2);
            int count = 0;

            pluginManager.Install( definition );

            foreach( IAllocationDefinition def in pluginManager.GetAllocationDefinitions() )
                count++;

            Assert.AreEqual( 1, count );

            count = 0;

            pluginManager.UnInstall( );

            foreach( IAllocationDefinition def in pluginManager.GetAllocationDefinitions() )
                count++;

            Assert.AreEqual( 0, count );
        }