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, CloseAfterFirstFrame] public void CreateAnimatedSprite() { var images = CreateImages(); var animation = new Sprite(material, Vector2D.Half); Assert.AreEqual(images, animation.Material.Animation.Frames); Assert.AreEqual(images[0], animation.Material.DiffuseMap); Assert.AreEqual(3, animation.Material.Duration); }
[Test, CloseAfterFirstFrame] public void CreateAnimatedSpriteNoImages() { Assert.Throws<ImageAnimation.NoImagesGivenNeedAtLeastOne>( () => ContentLoader.Load<ImageAnimation>("ImageAnimationNoImages")); }
See Also