public void Test_KeyValue_BinaryStore_With_Callback() { UnqliteDB db = UnqliteDB.Create(); var res = db.Open(databaseName, Unqlite_Open.CREATE); if (res) { var res1 = db.SaveKeyValue("test", "hello world"); db.GetKeyBinaryValue("test", (value) => { string strValue = System.Text.Encoding.ASCII.GetString(value, 0, value.Length); Assert.IsTrue(strValue == "hello world"); }); db.Close(); } }