Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void ChangingDrawAreaChangesStartAndEndPoints() { var line = new Line2D(new Vector2D(1, 2), new Vector2D(3, 5), Color.White); line.DrawArea = new Rectangle(11, 12, 5, 6); Assert.AreEqual(new Vector2D(11, 12), line.StartPoint); Assert.AreEqual(new Vector2D(16, 18), line.EndPoint); Assert.AreEqual(new Rectangle(11, 12, 5, 6), line.DrawArea); }
See Also