Exemplo n.º 1
0
        public void TestConfigGet()
        {
            OServer server    = TestConnection.GetServer();
            bool    IsCreated = server.ConfigSet("network.retry", "6");
            string  value     = server.ConfigGet("network.retry");

            Assert.Equal("6", value);
        }
Exemplo n.º 2
0
        public void TestConfigSet()
        {
            OServer server = TestConnection.GetServer();
            // Only Set existing keys
            // Don't create new one
            bool   IsCreated   = server.ConfigSet("network.retry", "6");
            string loadedValue = server.ConfigGet("network.retry");

            Assert.IsTrue(IsCreated);
            Assert.AreEqual("6", loadedValue);
        }