public void TestAccessAvailableRelease() { var pool = new ByteBufferPool(10, 100); Assert.Equal(10, pool.Available()); var buffer1 = pool.Access(); var buffer2 = pool.Access(); var buffer3 = pool.Access(); Assert.Equal(7, pool.Available()); buffer1.Release(); Assert.Equal(8, pool.Available()); buffer2.Release(); buffer3.Release(); Assert.Equal(10, pool.Available()); }