Beispiel #1
0
        public void Should_Be_Able_To_Iterate_Through_Added_Plugins()
        {
            IAllocationDefinition definition = new AllocationDefinition(6);
            definition.Add(DTO.NewPluginInfoTestPlugin);

            IExecutionSlot slot = new ExecutionSlot(definition);
            slot.Execute(new TestPlugin(600));
            slot.Execute(new TestPlugin(600));
            slot.Execute(new TestPlugin(600));
            slot.Execute(new TestPlugin(600));

            Assert.AreEqual( 4, slot.ToList().Count );
        }