public void InitTest() { MyStringArray temp = new MyStringArray(initArray); for (int i = 0; i < this.initArray.Length; i++) { Assert.AreEqual(temp[i], this.initArray[i]); } }
public void SortResultTest1() { MyStringArray temp = new MyStringArray(this.initArray); temp.Sort(WaysOfCompare.ByLength); List <string> sortedInitArray = new List <string>(this.initArray); sortedInitArray.Sort(this.TestCompareWay); for (int i = 0; i < this.initArray.Length; i++) { Assert.AreEqual(temp[i], sortedInitArray[i]); } }