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

[Test]
public void InactiveEntityDoesntRunBehavior()
{
    var entity = new MockEntity();
    entity.Start<IncrementCounter>().Add(0);
    entity.IsActive = false;
    entities.RunEntities();
    Assert.AreEqual(0, entity.Get<int>());
}
See Also