示例#1
0
        public void TestCurrentConfig()
        {
            ParseConfig config = ParseConfig.CurrentConfig;

            Assert.AreEqual("testValue", config["testKey"]);
            Assert.AreEqual("testValue", config.Get <string>("testKey"));
        }
示例#2
0
        public void TestCurrentConfig()
        {
            ParseConfig config = ParseConfig.CurrentConfig;

            if (config.TryGetValue("testKey", out string result) == true)
            {
                Assert.AreEqual("testValue", result);
            }
            Assert.AreEqual("testValue", config.Get <string>("testKey"));
        }