EntityTests ChangeUpdatePriority Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Entities
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ChangeUpdatePriority()
Examples

[Test]
public void ChangeUpdatePriority()
{
    var updateable = new UpdateableEntity().Add(1);
    Assert.AreEqual(1, updateable.Get<int>());
    Assert.AreEqual(1, entities.GetEntitiesOfType<UpdateableEntity>().Count);
    updateable.UpdatePriority = Priority.High;
    entities.RunEntities();
    Assert.AreEqual(2, updateable.Get<int>());
    Assert.AreEqual(1, entities.GetEntitiesOfType<UpdateableEntity>().Count);
}
See Also