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 CreateEntity2D() { var entity = new Entity2D(DoubleSizedRectangle) { Color = Color.Green, Rotation = 15 }; Assert.AreEqual(DoubleSizedRectangle, entity.DrawArea); Assert.AreEqual(Color.Green, entity.Color); Assert.AreEqual(15, entity.Rotation); Assert.AreEqual(DrawableEntity.DefaultRenderLayer, entity.RenderLayer); Assert.AreEqual(Vector2D.One, entity.Center); Assert.AreEqual(new Size(2, 2), entity.Size); }
See Also