public void ContainsVertexTest() { Assert.IsTrue(m_arrow.ContainsVertex(m_arrowVertices[0])); Assert.IsTrue(m_arrow.ContainsVertex(m_arrowVertices[1])); Assert.IsTrue(m_arrow.ContainsVertex(m_arrowVertices[2])); Assert.IsFalse(m_arrow.ContainsVertex(m_diamondVertices[3])); }
public void RemoveLastTest() { var poly = new Polygon2D(m_arrowVertices); poly.RemoveLast(); Assert.AreEqual(3, poly.VertexCount); Assert.IsFalse(poly.ContainsVertex(m_arrowVertices[3])); }