public void Return_WhenFull_SameSize()
        {
            var pool     = new StretchDynamicPool <BoxCollider>(new BoxColliderFakeCreator(), null, 0);
            int poolSize = pool.Size;

            var result = pool.Get();

            pool.Return(result);

            Assert.That(poolSize, Is.EqualTo(pool.Size));
        }
        public void GetThenReturn_ConstantSize()
        {
            var pool     = new StretchDynamicPool <BoxCollider>(new BoxColliderFakeCreator(), null, 1);
            int poolSize = pool.Size;

            var obj = pool.Get();

            pool.Return(obj);

            Assert.That(poolSize, Is.EqualTo(pool.Size));
        }