예제 #1
0
        public void TestHasSection_MultipleRuntimeStorages()
        {
            MockConfigurationInitializer_MultipleRuntimeStorages initializer = new MockConfigurationInitializer_MultipleRuntimeStorages(source);

            Assert.IsTrue(source.HasSection(initializer.Section1));
            Assert.IsTrue(source.HasSection(initializer.Section2));
        }
예제 #2
0
        public void TestAddStorage_UsesConfigurationSection()
        {
            MockConfigurationInitializer_MultipleRuntimeStorages initializer = new MockConfigurationInitializer_MultipleRuntimeStorages(source);

            var section = source.GetSection(initializer.Section1);

            Assert.IsInstanceOfType(section, typeof(StorageSettings));
        }
예제 #3
0
        public void TestHasSection_OverriddenSections()
        {
            var initializer_1 = new MockConfigurationInitializer_SingleRuntimeStorage1_MOD_A(source);

            Assert.IsTrue(source.HasSection(initializer_1.Section1));

            var initializer_2 = new MockConfigurationInitializer_MultipleRuntimeStorages(source);

            Assert.IsTrue(source.HasSection(initializer_1.Section1));

            Assert.IsTrue(source.HasSection(initializer_2.Section1));
            Assert.IsTrue(source.HasSection(initializer_2.Section2));
        }