public void TestMemorySectionConfigSetWithOverride()
        {
            var section1 = new MemorySectionConfig("section1");

            section1.Set("key1", "value1", true);
            section1.Set("key1", "value2", true);

            Assert.Equal("value2", section1.Get("key1"));
        }
        public void TestMemoryConfigSetSectionWithOverride()
        {
            ModuleManager.Instance.UseMemoryConfiguration(canOverride: true);
            var section1 = new MemorySectionConfig("section2", false, new Dictionary <string, object>
            {
                { "key1", "value1" },
            });
            var section2 = new MemorySectionConfig("section2", false, new Dictionary <string, object>
            {
                { "key1", "value2" },
            });

            MemoryConfigurationManager.Instance.SetSection(section1, true);
            MemoryConfigurationManager.Instance.SetSection(section2, true);

            Assert.Equal(section2, ConfigurationModule.Instance.GetSection("section2"));
        }