public override int GetHashCode() { return (this.X.GetHashCode() ^ this.Y.GetHashCode()); }
public void getHashCodeTest() { Point p1 = new Point(-5, -4); Point p2 = new Point(5, 4); Point p3 = new Point(5, 4); Assert.AreEqual(p2.GetHashCode(), p3.GetHashCode()); Assert.AreEqual(p1.GetHashCode(),p2.GetHashCode()); }