public void CreatePool() { Type t = typeof(Entity); _Pool = new ObjectPool(); _Pool.RegisterType(t, Create, 1, 10, 10); var obj = _Pool.GetObject(t); Assert.IsNotNull(obj); Assert.AreEqual(t, obj.GetType()); _ObjectFromPool = obj as Entity; }