public void BothUpdateAndBehaviorAreRunOnTheFirstRunLoop() { var entity = new UpdateableEntityWithBehaviors(); entities.RunEntities(); Assert.AreEqual("[HighPriorityUpdate][LowPriorityBehavior]", entity.Get <string>()); }
public void PrioritiesAreHandledCorrectlyForAnUpdateableEntityWithExtraBehaviors() { var entity = new UpdateableEntityWithBehaviors(); Assert.IsTrue(entity.IsPauseable); entities.RunEntities(); entity.Set(""); entities.RunEntities(); Assert.AreEqual("[HighPriorityUpdate][LowPriorityBehavior]", entity.Get <string>()); }
public void PrioritiesAreHandledCorrectlyForAnUpdateableEntityWithExtraBehaviors() { var entity = new UpdateableEntityWithBehaviors(); Assert.IsTrue(entity.IsPauseable); entities.RunEntities(); entity.Set(""); entities.RunEntities(); Assert.AreEqual("[HighPriorityUpdate][LowPriorityBehavior]", entity.Get<string>()); }
public void BothUpdateAndBehaviorAreRunOnTheFirstRunLoop() { var entity = new UpdateableEntityWithBehaviors(); entities.RunEntities(); Assert.AreEqual("[HighPriorityUpdate][LowPriorityBehavior]", entity.Get<string>()); }