public static void AssertBufferCount(this IBufferPool bufferPool, UInt32 expectedReserveCount, UInt32 expectedTotalAllocatedCount) { UInt32 actualTotalAllocatedCount; UInt32 actualReserveCount = bufferPool.CountBuffers(out actualTotalAllocatedCount); Assert.AreEqual(expectedReserveCount, actualReserveCount); Assert.AreEqual(expectedTotalAllocatedCount, expectedTotalAllocatedCount); }