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

[Test]
public void RemoveUpdateAndDrawBehaviorWhenRemovingAnEntityWithDifferentRenderLayers()
{
    var entity = new MockDrawableEntity();
    entity.Start<IncrementCounter>();
    entity.Set(2);
    entity.OnDraw<DrawTest>();
    entity.IsActive = false;
    var entity2 = new MockDrawableEntity();
    entity2.Start<IncrementCounter>();
    entity2.Set(-5);
    entity2.OnDraw<DrawTest>();
    entity2.IsActive = false;
    entities.RunEntities();
}
See Also