Skip to content

Commit 7bf8be5

Browse files
Add complex test
1 parent 3606561 commit 7bf8be5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/ImageSharp.Drawing.Tests/Drawing/Paths/ComputeLength.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,15 @@ public void CanComputeUnrolledLength()
1414

1515
Assert.Equal(600, polygon.ComputeLength());
1616
}
17+
18+
[Fact]
19+
public void CanComputeUnrolledLengthComplexPath()
20+
{
21+
var polygon = new ComplexPolygon(
22+
new RectangularPolygon(PointF.Empty, new PointF(100, 200)),
23+
new RectangularPolygon(new PointF(1000, 1000), new PointF(1100, 1200)));
24+
25+
Assert.Equal(1200, polygon.ComputeLength());
26+
}
1727
}
1828
}

0 commit comments

Comments
 (0)