public void SortByShouldNotThrowWithNoStatements() { var result = UnsortedData.SortBy <DateTime, DateTime>(); Assert.IsTrue(result.SequenceEqual(UnsortedData)); }
public void SortByShouldNotThrowWithOneStatement() { var result = UnsortedData.SortBy(t => t.Year); Assert.IsTrue(result.SequenceEqual(SortedDataByYear)); }
public void SortByShouldSortWithNoException() { var result = UnsortedData.SortBy(t => t.Month, t => t.Day, t => t.Year); Assert.IsTrue(result.SequenceEqual(SortedDataByMonthDayYear)); }