BTDBTest.KeyValueDBTest.ALotOf5KbTransactionsWorks C# (CSharp) Method

ALotOf5KbTransactionsWorks() private method

private ALotOf5KbTransactionsWorks ( ) : void
return void
        public void ALotOf5KbTransactionsWorks()
        {
            using (var fileCollection = new InMemoryFileCollection())
            using (IKeyValueDB db = new KeyValueDB(fileCollection))
            {
                for (int i = 0; i < 5000; i++)
                {
                    var key = new byte[5000];
                    using (var tr = db.StartTransaction())
                    {
                        key[0] = (byte)(i / 256);
                        key[1] = (byte)(i % 256);
                        Assert.True(tr.CreateKey(key));
                        tr.Commit();
                    }
                }
            }
        }