Example #1
0
 public void GDID_8()
 {
   var gdid1 = new GDID(0, 1, 12321);
   var gdid2 = new GDID(0, 1, 0);
   Assert.AreEqual(1, gdid1.CompareTo(gdid2));
   Assert.IsFalse( gdid1.Equals(gdid2));
 }
Example #2
0
        public void GDID_8()
        {
            var gdid1 = new GDID(0, 1, 12321);
            var gdid2 = new GDID(0, 1, 0);

            Assert.AreEqual(1, gdid1.CompareTo(gdid2));
            Assert.IsFalse(gdid1.Equals(gdid2));
        }
Example #3
0
        public void GDID_7()
        {
            var gdid1 = new GDID(0, 0, 12321);
            var gdid2 = new GDID(0, 1, 0);

            Aver.AreEqual(-1, gdid1.CompareTo(gdid2));
            Aver.IsFalse(gdid1.Equals(gdid2));
        }
Example #4
0
        public void GDID_9()
        {
            var gdid1 = new GDID(0, 3, 57);
            var gdid2 = new GDID(0, 3, 57);

            Assert.AreEqual(0, gdid1.CompareTo(gdid2));
            Assert.IsTrue(gdid1.Equals(gdid2));

            var gdid3 = new GDID(1, 3, 57);
            var gdid4 = new GDID(2, 3, 57);

            Assert.AreEqual(-1, gdid3.CompareTo(gdid4));
            Assert.IsFalse(gdid3.Equals(gdid4));
        }
Example #5
0
        public void GDID_9()
        {
            var gdid1 = new GDID(0, 3, 57);
            var gdid2 = new GDID(0, 3, 57);
            Assert.AreEqual(0, gdid1.CompareTo(gdid2));
            Assert.IsTrue( gdid1.Equals(gdid2));

            var gdid3 = new GDID(1, 3, 57);
            var gdid4 = new GDID(2, 3, 57);
            Assert.AreEqual(-1, gdid3.CompareTo(gdid4));
            Assert.IsFalse( gdid3.Equals(gdid4));
        }