public void TraceRecordCompareToTest() { string st1 = RandomString(rnd.Next(1, 50)); string st2 = RandomString(rnd.Next(1, 50));; TraceRecord tr1 = new TraceRecord(null, st1, null); TraceRecord tr2 = new TraceRecord(null, st2, null); Assert.AreEqual((tr1.Equals(tr2)), (st1.Equals(st2))); Assert.AreEqual((tr1.CompareTo(tr2)), (st1.Length.CompareTo(st2.Length))); }