public void setCountTest() { Transform root = new GameObject("Root").transform; Transform origin = new GameObject("Origin").transform; ComponentPool <Transform> list = new ComponentPool <Transform>(root, origin); list.setCount(20); Assert.AreEqual(20, root.childCount); }