示例#1
0
        public void GetExtraSmallMemoryTest()
        {
            // GIVEN a memory pool with no previously pooled memory

            // WHEN I request an extra small memory block
            byte[] result = memoryPool.GetInstance(10);

            // THEN my memory is an extra small block
            Assert.IsNotNull(result);
            Assert.AreEqual(16, result.Length);
        }