Beispiel #1
0
        public void RemoveEntity_using_Entity()
        {
            IEntity e = new GameObject();
            bool    addEntityResult = m_component.AddEntity(e);

            Assert.IsTrue(addEntityResult);

            IEntity r = m_component.RemoveEntity(e);
            IEntity f = m_component.FindEntity(r.InstanceID);

            Assert.IsNotNull(e);
            Assert.IsNotNull(r);
            Assert.AreSame(r, e);
            Assert.IsNull(f);
        }