Пример #1
0
        public void TestSort_ListOfUnsortedList_OutputInSortedOrder()
        {
            // Arrange
            NewCustomList <int> expectedresult = new NewCustomList <int>()
            {
                1, 2, 3, 4, 5, 6, 7
            };
            NewCustomList <int> s = new NewCustomList <int>()
            {
                5, 3, 7, 2, 6, 4, 1
            };

            // Act
            NewCustomList <int> actualresult = NewCustomList <int> .Sort <int>(s);

            // Assert
            Assert.AreEqual(expectedresult.ToString(), actualresult.ToString());;
        }