Namespace: DeltaEngine.Rendering2D.Tests
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void AdvancingTillLastFrameGivesEvent() { var animation = new Sprite(material, Vector2D.Half); bool endReached = false; animation.AnimationEnded += () => { endReached = true; }; AdvanceTimeAndUpdateEntities(animation.Material.Duration + 0.1f); Assert.IsTrue(endReached, animation.ToString()); }
See Also