Fix IDE0090

This commit is contained in:
RoosterDragon
2023-11-14 19:49:11 +00:00
committed by Gustas
parent cfde0d7867
commit b97d1a4c6c
35 changed files with 125 additions and 125 deletions

View File

@@ -98,7 +98,7 @@ namespace OpenRA.Test
{
// Rectangle like above,
// Note: The calculations don't match for all, but do have a tolerance of 1.
shape = new PolygonShape(new int2[] { new int2(-123, -456), new int2(100, -456), new int2(100, 100), new int2(-123, 100) });
shape = new PolygonShape(new int2[] { new(-123, -456), new(100, -456), new(100, 100), new(-123, 100) });
shape.Initialize();
Assert.That(shape.DistanceFromEdge(new WVec(10, 10, 0)).Length,
@@ -121,7 +121,7 @@ namespace OpenRA.Test
// Rectangle like above but reverse order
// Note: The calculations don't match for all, but do have a tolerance of 1.
shape = new PolygonShape(new int2[] { new int2(-123, 100), new int2(100, 100), new int2(100, -456), new int2(-123, -456) });
shape = new PolygonShape(new int2[] { new(-123, 100), new(100, 100), new(100, -456), new(-123, -456) });
shape.Initialize();
Assert.That(shape.DistanceFromEdge(new WVec(10, 10, 0)).Length,
@@ -143,7 +143,7 @@ namespace OpenRA.Test
Is.EqualTo(877));
// Right triangle taken from above by removing a point
shape = new PolygonShape(new int2[] { new int2(-123, -456), new int2(100, -456), new int2(100, 100) });
shape = new PolygonShape(new int2[] { new(-123, -456), new(100, -456), new(100, 100) });
shape.Initialize();
Assert.That(shape.DistanceFromEdge(new WVec(10, 10, 0)).Length,
@@ -171,7 +171,7 @@ namespace OpenRA.Test
Is.EqualTo(878));
// Right triangle taken from above but reverse order
shape = new PolygonShape(new int2[] { new int2(100, 100), new int2(100, -456), new int2(-123, -456) });
shape = new PolygonShape(new int2[] { new(100, 100), new(100, -456), new(-123, -456) });
shape.Initialize();
Assert.That(shape.DistanceFromEdge(new WVec(10, 10, 0)).Length,