BTDBTest.KeyValueDBTest.CommitWithUlongWorks C# (CSharp) Method

CommitWithUlongWorks() private method

private CommitWithUlongWorks ( ) : void
return void
        public void CommitWithUlongWorks()
        {
            using (var fileCollection = new InMemoryFileCollection())
            using (IKeyValueDB db = new KeyValueDB(fileCollection))
            {
                using (var tr1 = db.StartTransaction())
                {
                    Assert.Equal(0ul, tr1.GetCommitUlong());
                    tr1.SetCommitUlong(42);
                    tr1.Commit();
                }
                using (var tr2 = db.StartTransaction())
                {
                    Assert.Equal(42ul, tr2.GetCommitUlong());
                }
            }
        }