AnimationTests ChangeDuration 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 ChangeDuration()
Examples

[Test, CloseAfterFirstFrame]
public void ChangeDuration()
{
    material.Duration = 2;
    var animation = new Sprite(material, Vector2D.Half);
    Assert.AreEqual(3, animation.Material.Animation.DefaultDuration);
    Assert.AreEqual(2, animation.Material.Duration);
}
See Also