public void MSDRedixSortText() { var msdRedix = new MSDRedixSort <int>(); msdRedix.Items.AddRange(items); msdRedix.Sort(); for (int i = 0; i < items.Count; i++) { Assert.AreEqual(sorted[i], msdRedix.Items[i]); } }
public void MSDRedixTest() { // arrange var MSDredix = new MSDRedixSort <int>(); MSDredix.Items.AddRange(items); // act MSDredix.Sort(); // assert for (int i = 0; i < items.Count; i++) { Assert.AreEqual(sorted[i], MSDredix.Items[i]); } }
private void MSDredixSortBtn_Click(object sender, EventArgs e) { var msd = new MSDRedixSort <SortedItem>(items); BtnClick(msd); }