Ejemplo n.º 1
0
        public void IntSort_Check_Index()
        {
            //Arrange
            CustomList <int> myList1 = new CustomList <int>()
            {
                1, 2, 3, 7
            };
            CustomList <int> myList2 = new CustomList <int>()
            {
                4, 5, 6
            };
            CustomList <int> listToSort = myList1 + myList2;
            int expectedResult          = 4;
            //Act
            CustomList <int> resultList = CustomList <int> .IntSort(listToSort);

            int actualResult = resultList.IndexOf(5);

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }