コード例 #1
0
ファイル: GDIDTest.cs プロジェクト: PavelTorgashov/nfx
 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));
 }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #5
0
ファイル: GDIDTest.cs プロジェクト: itadapter/nfx
        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));
        }