Пример #1
0
 public void InsertationSortTest()
 {
     //Arrange
     var insertationSort = new InsertationSort<string>();
     var arrayToSort = new string[_q2.Length];
     _q2.CopyTo(arrayToSort, 0);
     //Act
     arrayToSort.Sort(insertationSort);
     //Assert
     Assert.IsTrue(arrayToSort.IsSorted());
 }
Пример #2
0
        public void InsertationSortTest()
        {
            //Arrange
            var insertationSort = new InsertationSort <string>();
            var arrayToSort     = new string[_q2.Length];

            _q2.CopyTo(arrayToSort, 0);
            //Act
            arrayToSort.Sort(insertationSort);
            //Assert
            Assert.IsTrue(arrayToSort.IsSorted());
        }