FilledRectTests RectangleCornersAreCorrect Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RectangleCornersAreCorrect()
Examples

[Test, CloseAfterFirstFrame]
public void RectangleCornersAreCorrect()
{
    var rect = new FilledRect(Rectangle.One, Color.White);
    var corners = new List<Vector2D>
    {
        Vector2D.Zero,
        Vector2D.UnitY,
        Vector2D.One,
        Vector2D.UnitX
    };
    AdvanceTimeAndUpdateEntities();
    Assert.AreEqual(corners, rect.Points);
}
See Also