public void TestRecycle() { Pool <TestClass> pool = new Pool <TestClass>(); TestClass x = new TestClass(); Assert.IsFalse(x.Recycled); pool.Redeem(x); Assert.IsTrue(x.Recycled); }
public void TestGetRecycled() { Pool <TestClass> pool = new Pool <TestClass>(); pool.Redeem(new TestClass()); TestClass test = pool.Get(); Assert.IsTrue(test.Recycled); }
public void TestRedeem() { Pool <TestClass> pool = new Pool <TestClass>(); pool.Redeem(new TestClass()); }