public void Get() { var options = LevelDBInterop.leveldb_readoptions_create(); this.InnerPut(options, "key1", "value1"); var value1 = this.InnerGet(options, "key1"); Assert.Equal("value1", value1); this.InnerPut(options, "key2", "value2"); var value2 = this.InnerGet(options, "key2"); Assert.Equal("value2", value2); this.InnerPut(options, "key3", "value3"); var value3 = this.InnerGet(options, "key3"); Assert.Equal("value3", value3); // verify checksums LevelDBInterop.leveldb_readoptions_set_verify_checksums(options, 1); value1 = this.InnerGet(options, "key1"); Assert.Equal("value1", value1); // no fill cache LevelDBInterop.leveldb_readoptions_set_fill_cache(options, 0); value2 = this.InnerGet(options, "key2"); Assert.Equal("value2", value2); LevelDBInterop.leveldb_readoptions_destroy(options); }