public void AList1_Delete_Start_DeleteValue_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.DeleteStart(); Assert.AreEqual("2 9 5 6 7 ", al.ToString()); }
public void AList1_Init_error() { AList1 al = new AList1(); al.Init(new int[] { 1, 2, 9, 5, 6, 7 }); Assert.AreEqual("1 2 9 5 6 7 ", al.ToString()); }
public void AList1_AddPosition_error() { AList1 al = new AList1(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 AList1_Delete_Position_DeleteValue_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.DeletePos(3); Assert.AreEqual("1 2 9 6 7 ", al.ToString()); }
public void AList1_AddEnd_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.AddEnd(42); Assert.AreEqual("1 2 9 5 6 7 42 ", al.ToString()); }
public void AList1_AddStart_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.AddStart(42); Assert.AreEqual("42 1 2 9 5 6 7 ", al.ToString()); }
public void AList1_Delete_End_DeleteValue_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.DeleteEnd(); Assert.AreEqual("1 2 9 5 6 ", al.ToString()); }
public void AList1_Half_Reverse_odd_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.HalfReverse(); Assert.AreEqual("9 2 1 5 6 7 ", al.ToString()); }
public void AList1_Sort_error() { AList1 al = new AList1(new int[] { 2, 1, 9, 5, 6, 7 }); al.Sort(); Assert.AreEqual("1 2 5 6 7 9 ", al.ToString()); }
public void AList1_Set_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.Set(42, 3); Assert.AreEqual("1 2 9 42 6 7 ", al.ToString()); }
public void AList1_Reverse_error() { AList1 al = new AList1(new int[] { 1, 2, 9, 5, 6, 7 }); al.Reverse(); Assert.AreEqual("7 6 5 9 2 1 ", al.ToString()); }