Esempio n. 1
0
        public void CanUnpinMultipleBuffers()
        {
            _buffersList = new TransactionBuffersList(_bufferManager);

            var block = new Block(RandomFilename, 0);

            Assert.DoesNotThrow(() =>
            {
                _buffersList.Pin(block);
                _buffersList.Pin(block);
                _buffersList.Pin(block);
                _buffersList.Unpin(block);
                _buffersList.Unpin(block);
                _buffersList.Unpin(block);
            });
        }
Esempio n. 2
0
 public void Unpin(Block block)
 {
     _bufferList.Unpin(block);
 }