mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-26 02:38:47 +00:00
fix(test): assert vertex count against Polygon.Empty
This commit is contained in:
parent
262f191799
commit
8b4fd45e05
@ -1,4 +1,4 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using X10D.Drawing;
|
using X10D.Drawing;
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ public class PolygonTests
|
|||||||
Assert.AreEqual(2, polygon.VertexCount);
|
Assert.AreEqual(2, polygon.VertexCount);
|
||||||
|
|
||||||
// assert that the empty polygon was not modified
|
// assert that the empty polygon was not modified
|
||||||
Assert.AreEqual(0, PolygonF.Empty.VertexCount);
|
Assert.AreEqual(0, Polygon.Empty.VertexCount);
|
||||||
|
|
||||||
polygon.ClearVertices();
|
polygon.ClearVertices();
|
||||||
Assert.AreEqual(0, polygon.VertexCount);
|
Assert.AreEqual(0, polygon.VertexCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user