public void TrySelect_SecPointInOffset_SetsSecondPointIndex() { var polygon = new PolygonCore(); polygon.Insert(0.1, 1.0); polygon.Insert(0.2, 1.1); polygon.Insert(0.3, 2.0); polygon.TrySelect(0.195, 1.105, 0.01); Assert.IsTrue(polygon.CurrentPointIndex == 1); }
public void TrySelect_PointInOffset_ReturnsTrue(double x, double y, double offset) { var polygon = new PolygonCore(); polygon.Insert(0.1, 1.0); polygon.Insert(0.2, 1.1); polygon.Insert(0.3, 2.0); polygon.TrySelect(x, y, offset); Assert.IsTrue(polygon.TrySelect(x, y, offset)); }