1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

fix(test): assert vertex count against Polygon.Empty

This commit is contained in:
Oliver Booth 2023-04-03 13:54:23 +01:00
parent 262f191799
commit 8b4fd45e05
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -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);