Пример #1
0
        public void ActivateEntity_Activates()
        {
            entityManager.Initialize();
            entityManager.PostInitialize();
            var entity = BuildEntity(1);

            entityManager.AddEntity(entity);

            entityManager.ActivateEntity(1);

            Assert.AreEqual(1, entity.GetComponent <UpdateComponentStub>().DoActivateCallCount);
            Assert.IsTrue(entity.IsActive);
        }