コード例 #1
0
        public void TestConfigGet()
        {
            OServer server = TestConnection.GetServer();
            string  value  = server.ConfigGet("db.document.serializer");

            Assert.AreEqual("ORecordSerializerBinary", value);
        }
コード例 #2
0
        public void TestConfigGet()
        {
            var     connection = new TestConnection();
            OServer server     = connection.Server;
            string  value      = server.ConfigGet("db.document.serializer");

            Assert.AreEqual("ORecordSerializerBinary", value);
        }
コード例 #3
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);
        }
コード例 #4
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);
        }