Ejemplo n.º 1
0
        public void gettextplugins_should_return_all_plugins()
        {
            // Arrange
            PluginFactory  factory     = CreateFactory();
            TextPluginStub plugin1Stub = new TextPluginStub("plugin1", "name", "desc");
            TextPluginStub plugin2Stub = new TextPluginStub("plugin2", "name", "desc");

            factory.RegisterTextPlugin(plugin1Stub);
            factory.RegisterTextPlugin(plugin2Stub);

            // Act
            IEnumerable <TextPlugin> allPlugins = factory.GetTextPlugins();

            // Assert
            Assert.That(allPlugins.Count(), Is.GreaterThanOrEqualTo(2));
        }