Пример #1
0
 public void OlderRefCompareToNewerRef()
 {
     Ref older = new Ref(null);
     Ref newer = new Ref(null);
     Assert.IsTrue(older.CompareTo(newer) < 0);
     Assert.IsTrue(newer.CompareTo(older) > 0);
 }
Пример #2
0
 public void RefCompareToSelfIs0()
 {
     Ref r = new Ref(null);
     Assert.AreEqual(0, r.CompareTo(r));
 }
Пример #3
0
 public void RefCompareToNullIs1()
 {
     Ref r = new Ref(null);
     Assert.AreEqual(1, r.CompareTo(null));
 }