BTDBTest.KeyValueDBTest.FindFirstKeyWorks C# (CSharp) Method

FindFirstKeyWorks() private method

private FindFirstKeyWorks ( ) : void
return void
        public void FindFirstKeyWorks()
        {
            using (var fileCollection = new InMemoryFileCollection())
            using (IKeyValueDB db = new KeyValueDB(fileCollection))
            {
                using (var tr = db.StartTransaction())
                {
                    Assert.False(tr.FindFirstKey());
                    tr.CreateKey(_key1);
                    tr.CreateKey(Key2);
                    tr.CreateKey(_key3);
                    Assert.True(tr.FindFirstKey());
                    Assert.Equal(_key1, tr.GetKeyAsByteArray());
                    tr.Commit();
                }
            }
        }