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()); }
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()); }