BTDBTest.KeyValueDBTest.AllowsToSetTransactionDescription C# (CSharp) Method

AllowsToSetTransactionDescription() private method

private AllowsToSetTransactionDescription ( ) : void
return void
        public void AllowsToSetTransactionDescription()
        {
            using (var fileCollection = new InMemoryFileCollection())
            {
                using (var db = new KeyValueDB(fileCollection, new NoCompressionStrategy(), 1024))
                {
                    using (var tr = db.StartTransaction())
                    {
                        Assert.Null(tr.DescriptionForLeaks);
                        tr.DescriptionForLeaks = "Tr1";
                        tr.CreateOrUpdateKeyValue(_key1, new byte[1]);
                        Assert.Equal("Tr1", tr.DescriptionForLeaks);
                        tr.Commit();
                        Assert.Equal("Tr1", tr.DescriptionForLeaks);
                    }
                    using (var tr = db.StartTransaction())
                    {
                        Assert.Null(tr.DescriptionForLeaks);
                    }
                }
            }
        }