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); }
public void RefCompareToSelfIs0() { Ref r = new Ref(null); Assert.AreEqual(0, r.CompareTo(r)); }
public void RefCompareToNullIs1() { Ref r = new Ref(null); Assert.AreEqual(1, r.CompareTo(null)); }