Esempio n. 1
0
        public void SortByShouldNotThrowWithNoStatements()
        {
            var result = UnsortedData.SortBy <DateTime, DateTime>();

            Assert.IsTrue(result.SequenceEqual(UnsortedData));
        }
Esempio n. 2
0
        public void SortByShouldNotThrowWithOneStatement()
        {
            var result = UnsortedData.SortBy(t => t.Year);

            Assert.IsTrue(result.SequenceEqual(SortedDataByYear));
        }
Esempio n. 3
0
        public void SortByShouldSortWithNoException()
        {
            var result = UnsortedData.SortBy(t => t.Month, t => t.Day, t => t.Year);

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