Пример #1
0
        public void SortByShouldNotThrowWithNoStatements()
        {
            var result = UnsortedData.SortBy <DateTime, DateTime>();

            Assert.IsTrue(result.SequenceEqual(UnsortedData));
        }
Пример #2
0
        public void SortByShouldNotThrowWithOneStatement()
        {
            var result = UnsortedData.SortBy(t => t.Year);

            Assert.IsTrue(result.SequenceEqual(SortedDataByYear));
        }
Пример #3
0
        public void SortByShouldSortWithNoException()
        {
            var result = UnsortedData.SortBy(t => t.Month, t => t.Day, t => t.Year);

            Assert.IsTrue(result.SequenceEqual(SortedDataByMonthDayYear));
        }