コード例 #1
0
        public void TestCompareTo1()
        {
            var a = new GlobalPosition(c1);
            var b = new GlobalPosition(c1);

            Assert.AreEqual(a.CompareTo(b), 0);
            b.Elevation = b.Elevation + 1e-13;
            Assert.AreEqual(a.CompareTo(b), 0);
            b.Elevation = 100;
            Assert.AreEqual(a.CompareTo(b), -1);
            b.Elevation = -100;
            Assert.AreEqual(a.CompareTo(b), 1);
        }