EntitiesRunnerTests BothUpdateAndBehaviorAreRunOnTheFirstRunLoop 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 BothUpdateAndBehaviorAreRunOnTheFirstRunLoop()
Examples

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