public void MSDDiffLengthTest() { string[] array = { "zoe", "alex", "luis", "ben", "johnny", "benny", "abbey", "shawn", "alice", "shirley", "john", "bobby", "cate" }; RadixSort.MSD(array); for (int i = 0; i < array.Length; i++) { Assert.Equal(expectName[i], array[i]); } }
public void MSDSameLengthTest() { string[] array = { "opq", "elk", "bcb", "bde", "exk", "aba", "bgp", "aac", "aaa", "cpd" }; RadixSort.MSD(array); for (int i = 0; i < array.Length; i++) { Assert.Equal(expectSeq[i], array[i]); } }