fix some invalid polygons in tests

generics
Evan Hemsley 2019-09-15 13:39:45 -07:00
parent eb6b48d29d
commit c340e74450
1 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ namespace Tests
[Test]
public void PolygonPolygonNotOverlapping()
{
var shapeA = new Polygon(new Position2D(0, 0),
var shapeA = new Polygon(
new Position2D(-1, 1), new Position2D(1, 1),
new Position2D(-1, -1), new Position2D(1, -1)
);
@ -111,7 +111,7 @@ namespace Tests
var transformA = Transform2D.DefaultTransform;
var polygon = new Polygon(new Position2D(0, 0),
var polygon = new Polygon(
new Position2D(-1, -1), new Position2D(1, -1),
new Position2D(1, 1), new Position2D(-1, 1)
);
@ -165,7 +165,7 @@ namespace Tests
var circle = new Circle(1);
var circleTransform = new Transform2D(new Vector2(5, 0));
var square = new Polygon(new Position2D(0, 0),
var square = new Polygon(
new Position2D(-1, -1), new Position2D(1, -1),
new Position2D(1, 1), new Position2D(-1, 1)
);