public void ShouldPickUpSame() { var date = new DateTime(2012, 06, 06); var cache = new MonitorRecordComparison<double> { TimeStamp = date }; Assert.Equal(0, cache.CompareTo(new MonitorRecord<double>(date, 1))); }
public void ShouldPickUpLower() { var cache = new MonitorRecordComparison<double> { TimeStamp = new DateTime(2012, 06, 06) }; Assert.Equal(1, cache.CompareTo(new MonitorRecord<double>(new DateTime(2012, 06, 05), 1))); }