public void AList0_Init_error() { AList0 al = new AList0(); al.Init(new int[] { 1, 2, 9, 5, 6, 7 }); Assert.AreEqual("1 2 9 5 6 7 ", al.ToString()); }
public void AList0_Delete_Position_DeleteValue_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.DeletePos(3); Assert.AreEqual("1 2 9 6 7 ", al.ToString()); }
public void AList0_Delete_Start_DeleteValue_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.DeleteStart(); Assert.AreEqual("2 9 5 6 7 ", al.ToString()); }
public void AList0_AddStart_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.AddStart(42); Assert.AreEqual("42 1 2 9 5 6 7 ", al.ToString()); }
public void AList0_AddPosition_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.AddPosition(42, 4); Assert.AreEqual("1 2 9 5 42 6 7 ", al.ToString()); }
public void AList0_Delete_End_DeleteValue_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.DeleteEnd(); Assert.AreEqual("1 2 9 5 6 ", al.ToString()); }
public void AList0_AddEnd_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.AddEnd(42); Assert.AreEqual("1 2 9 5 6 7 42 ", al.ToString()); }
public void AList0_Half_Reverse_odd_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.HalfReverse(); Assert.AreEqual("9 2 1 5 6 7 ", al.ToString()); }
public void AList0_Sort_error() { AList0 al = new AList0(new int[] { 2, 1, 9, 5, 6, 7 }); al.Sort(); Assert.AreEqual("1 2 5 6 7 9 ", al.ToString()); }
public void AList0_Set_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.Set(42, 3); Assert.AreEqual("1 2 9 42 6 7 ", al.ToString()); }
public void AList0_Reverse_error() { AList0 al = new AList0(new int[] { 1, 2, 9, 5, 6, 7 }); al.Reverse(); Assert.AreEqual("7 6 5 9 2 1 ", al.ToString()); }
private IList ConvertToListType(string iniString) { IList list = null; switch (iniString) { case "AList0": list = new AList0(); break; case "AList1": list = new AList1(); break; case "AList2": list = new AList2(); break; case "AListR": list = new AListR(); break; case "LList1": list = new LList1(); break; default: break; } return(list); }