Exemplo n.º 1
0
        public void Should_Return_True_If_Plugin_Is_Installed()
        {
            IAgentEngine          engine     = new AgentEngine();
            IAllocationDefinition definition = new AllocationDefinition(2);

            definition.Add( DTO.NewPluginInfoTestPlugin );

            engine.AddDefinition( definition );

            Assert.IsTrue( engine.IsPluginInstalled( DTO.NewPluginInfoTestPlugin.PluginIdentifier ) );
        }
Exemplo n.º 2
0
        public void Should_Return_False_If_Plugin_Isnt_Installed()
        {
            IAgentEngine engine = new AgentEngine();

            Assert.IsFalse( engine.IsPluginInstalled( DTO.NewPluginInfoTestPlugin.PluginIdentifier ) );
        }