public void RemoveHolesTest() { var poly = new Polygon2DWithHoles(m_squareWithHole.Outside, m_squareWithHole.Holes); poly.RemoveHoles(); Assert.AreEqual(0, poly.Holes.Count); }
public void IsConvexTest() { Assert.IsFalse(m_squareWithHole.IsConvex()); var poly = new Polygon2DWithHoles(m_squareWithHole.Outside, m_squareWithHole.Holes); poly.RemoveHoles(); Assert.IsTrue(poly.IsConvex()); }