public void OsmGeoKey_NodeAndWay_CompareId() { var n1 = new OsmGeoKey(OsmGeoType.Node, 42); var n2 = new OsmGeoKey(OsmGeoType.Way, 0); Assert.AreEqual(-1, n1.CompareTo(n2)); Assert.AreEqual(1, n2.CompareTo(n1)); }
public void OsmGeoKey_Ways_CompareId() { var n1 = new OsmGeoKey(OsmGeoType.Way, 42); var n2 = new OsmGeoKey(OsmGeoType.Way, 43); Assert.AreEqual(-1, n1.CompareTo(n2)); Assert.AreEqual(1, n2.CompareTo(n1)); }