public void PurgeTestBvt() { var myTestPool = new MyTestPooled(); IObjectPool <FixedSizeBuffer> pool = myTestPool; FixedSizeBuffer buffer = pool.Allocate(); buffer.SetPurgeAction(request => MyTestPurge(request, buffer)); buffer.SignalPurge(); Assert.Equal(1, myTestPool.Allocated); Assert.Equal(1, myTestPool.Freed); }