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 PointsShouldBeAddedCounterClockWise() { var filledRect = new FilledRect(new Rectangle(0.3f, 0.3f, 0.4f, 0.4f), Color.Blue); Assert.IsTrue(filledRect.Points[0].X < filledRect.Points[3].X); Assert.IsTrue(filledRect.Points[1].Y > filledRect.Points[0].Y); Assert.IsTrue(filledRect.Points[2].X > filledRect.Points[1].X); Assert.IsTrue(filledRect.Points[3].Y < filledRect.Points[2].Y); }
See Also