Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 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());
 }
Esempio n. 3
0
 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());
 }
Esempio n. 4
0
 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());
 }
Esempio n. 5
0
 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());
 }
Esempio n. 6
0
 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());
 }
Esempio n. 7
0
 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());
 }
Esempio n. 8
0
 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());
 }
Esempio n. 9
0
 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());
 }
Esempio n. 10
0
 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());
 }
Esempio n. 11
0
 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());
 }