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 TestDrawAreaOfGrid() { var grid = new Grid2D(new Size(10), Vector2D.Half, 0.05f); var exceptedTopLeft = new Vector2D(0.25f, 0.25f); var exceptedBottomRight = new Vector2D(0.75f, 0.75f); Assert.AreEqual(Rectangle.FromCorners(exceptedTopLeft, exceptedBottomRight), grid.DrawArea); }
See Also