Exemple #1
0
        public void SortListInDescendingOrder()
        {
            // Arrange
            var unorderedList = GetUnorderedList();

            // Act
            SortListHelper.Sort(unorderedList, SortType.Descending);

            // Assert
            Assert.Equal(unorderedList, GetDescendingOrderedList());
        }
Exemple #2
0
 private static void ProcessRequest(SortType sortType)
 {
     if (sortType == SortType.Null)
     {
         Console.WriteLine($"Going back to Project page");
     }
     else
     {
         var sortedList = SortListHelper.Sort(Program._Pipe, sortType);
         Program._Pipe = sortedList;
         Console.WriteLine($"The list has been sorted in {sortType.ToString()} order.");
     }
 }