SpriteTests AddBehaviorRemovedPreviously Method Delta Engine Documentation

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

public void AddBehaviorRemovedPreviously()
Examples

[Test, CloseAfterFirstFrame, Ignore]
public void AddBehaviorRemovedPreviously()
{
    var sprite = new Sprite("DeltaEngineLogoAlpha", new Rectangle(0.0f, 0.0f, 0.1f, 0.1f));
    sprite.Start<SimpleSizeUpdater>();
    AdvanceTimeAndUpdateEntities();
    sprite.Start<SimpleSizeUpdater>();
    AdvanceTimeAndUpdateEntities();
    Assert.That(sprite.Size.IsNearlyEqual(new Size(0.4f)));
}
See Also