Пример #1
0
 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());
 }
Пример #2
0
 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());
 }
Пример #3
0
 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());
 }
Пример #4
0
 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());
 }
Пример #5
0
 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());
 }
Пример #6
0
 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());
 }
Пример #7
0
 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());
 }
Пример #8
0
 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());
 }
Пример #9
0
 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());
 }
Пример #10
0
 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());
 }
Пример #11
0
 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());
 }