public void TestPointHashing()
 {
     GeometryCollection geometry = new GeometryCollection();
     geometry.Add(new Vector2(0, 0));
     geometry.Add(new Vector2(0, 0));
     Assert.AreEqual(1, geometry.GetPointsAsArray().Length);
 }
 public void TestLineHashing()
 {
     GeometryCollection geometry = new GeometryCollection();
     geometry.Add(new Line(new Vector2(-1, 0), new Vector2(1, 0)));
     geometry.Add(new Line(new Vector2(-1, 0), new Vector2(1, 0)));
     geometry.Add(new Line(new Vector2(1, 0), new Vector2(-1, 0)));
     geometry.Add(new Line(new Vector2(1, 0), new Vector2(-1, 0)));
     Assert.AreEqual(2, geometry.GetPointsAsArray().Length);
     Assert.AreEqual(2, geometry.GetLinesAsIndexArray().Length);
 }