BTDBTest.KeyValueDBTest.CanGetSizeOfPair C# (CSharp) Method

CanGetSizeOfPair() private method

private CanGetSizeOfPair ( ) : void
return void
        public void CanGetSizeOfPair()
        {
            using (var fileCollection = new InMemoryFileCollection())
            using (IKeyValueDB db = new KeyValueDB(fileCollection))
            {
                using (var tr = db.StartTransaction())
                {
                    tr.CreateOrUpdateKeyValue(ByteBuffer.NewAsync(_key1), ByteBuffer.NewAsync(new byte[1]));
                    var s = tr.GetStorageSizeOfCurrentKey();
                    Assert.Equal((uint)_key1.Length, s.Key);
                    Assert.Equal(1u, s.Value);
                }
            }
        }