public void Calculate(double[] argument, double[] result) { var sort = new SelectionSorting(); var testResult = sort.Sort(argument); Assert.AreEqual(result, testResult); }
public void SelectionSorting_Test() { var rand = new Random(); var list = Enumerable .Range(1, 10000) .Select(x => rand.Next()) .ToList(); var actual = SelectionSorting.Sort(list); list.Sort(); Assert.Equal(list, actual); }