public void PooledObjectReturnerDoubleDisposeTest() { var poolMock = new ObjectPoolMock(); var pooledObject = new object(); var objectReturner = new PooledObjectReturner <object>(poolMock, pooledObject); objectReturner.Dispose(); objectReturner.Dispose(); Assert.AreSame(pooledObject, poolMock._objects.Single()); }
private void Dispose(PooledObjectReturner <object> objectReturner) // Copy by value { objectReturner.Dispose(); }