public void Disable() { var source = new GameObject().AddComponent <GameObjectPoolBehaviour>(); source.PoolDisable(); var builder = new GameObjectBuilder <GameObjectPoolBehaviour>(source); var pool = new GameObjectPoolCollection <GameObjectPoolBehaviour>(builder); GameObjectPoolBehaviour behaviour = pool.Enable(); behaviour.PoolEnable(); Assert.NotNull(behaviour); Assert.True(behaviour.IsPoolEnabled()); bool result0 = pool.Disable(behaviour); behaviour.PoolDisable(); Assert.True(result0); Assert.False(behaviour.IsPoolEnabled()); }