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 AddNewComponent() { var entity = new Entity2D(Rectangle.Zero); Assert.AreEqual(Rectangle.Zero, entity.DrawArea); Assert.AreEqual(Color.White, entity.Color); Assert.AreEqual(0, entity.NumberOfComponents); entity.Add(Size.Zero); Assert.AreEqual(1, entity.NumberOfComponents); }
See Also