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>());
        }
示例#3
0
 public void PrioritiesAreHandledCorrectlyForAnUpdateableEntityWithExtraBehaviors()
 {
     var entity = new UpdateableEntityWithBehaviors();
     Assert.IsTrue(entity.IsPauseable);
     entities.RunEntities();
     entity.Set("");
     entities.RunEntities();
     Assert.AreEqual("[HighPriorityUpdate][LowPriorityBehavior]", entity.Get<string>());
 }
示例#4
0
 public void BothUpdateAndBehaviorAreRunOnTheFirstRunLoop()
 {
     var entity = new UpdateableEntityWithBehaviors();
     entities.RunEntities();
     Assert.AreEqual("[HighPriorityUpdate][LowPriorityBehavior]", entity.Get<string>());
 }