public void compare_to() { var a = new Point2(1, 2); var b = new Point2(3, 4); var c = new Point2(1, 1); var d = new Point2(1, 2); Assert.True(a.CompareTo(b) < 0); Assert.True(b.CompareTo(a) > 0); Assert.NotEqual(a, b); Assert.True(c.CompareTo(a) < 0); Assert.True(a.CompareTo(c) > 0); Assert.NotEqual(a, c); Assert.Equal(0, a.CompareTo(d)); }