Exemplo n.º 1
0
        public void ConfigStoreTestContains()
        {
            ConfigStore store = ConfigStore.CreateFromFile("config.ini", ENV_PREFIX);

            Assert.Equal(true, store.Contains("CONFIG_WITH_NO_SECTION"));
            Assert.Equal(true, store.Contains("SECTION1", "CONFIG_INSIDE_SECTION1"));
            Assert.Equal(false, store.Contains("WRONG_KEY"));
            Assert.Equal(false, store.Contains("WRONG_SECTION", "WRONG_KEY"));
        }