예제 #1
0
        public void GetModulesNotThrownIfModuleSectionIsNotDeclared()
        {
            MockNullConfigurationStore store = new MockNullConfigurationStore();

            IModuleEnumerator enumerator = new ConfigurationModuleEnumerator(store);

            var modules = enumerator.GetModules();

            Assert.IsNotNull(modules);
            Assert.AreEqual(0, modules.Length);
        }
        public void GetModulesNotThrownIfModuleSectionIsNotDeclared()
        {
            MockNullConfigurationStore store = new MockNullConfigurationStore();

            ConfigurationModuleCatalog catalog = new ConfigurationModuleCatalog()
            {
                Store = store
            };

            catalog.Load();

            var modules = catalog.Modules;

            Assert.IsNotNull(modules);
            Assert.AreEqual(0, modules.Count());
        }
        public void GetModulesNotThrownIfModuleSectionIsNotDeclared()
        {
            MockNullConfigurationStore store = new MockNullConfigurationStore();

            IModuleEnumerator enumerator = new ConfigurationModuleEnumerator(store);

            var modules = enumerator.GetModules();

            Assert.IsNotNull(modules);
            Assert.AreEqual(0, modules.Length);
        }
        public void GetModulesNotThrownIfModuleSectionIsNotDeclared()
        {
            MockNullConfigurationStore store = new MockNullConfigurationStore();

            ConfigurationModuleCatalog catalog = new ConfigurationModuleCatalog() { Store = store };
            catalog.Load();

            var modules = catalog.Modules;

            Assert.IsNotNull(modules);
            Assert.AreEqual(0, modules.Count());
        }