Example #1
0
 public void ArrayB_Shift_Test()
 {
     int[] Shift = { 9, 1, 3, 5, 7 };
     CollectionAssert.AreEqual(Shift, ArrayEx.Shift(b, -1, "right"));
 }
Example #2
0
 public void ArrayC_Shift_Test()
 {
     int[] Shift = { 6, 5, 3, 5, 9, 3, 1, 4, 1, 5, 9, 2 };
     CollectionAssert.AreEqual(Shift, ArrayEx.Shift(c, 5, "left"));
 }
Example #3
0
 public void ArrayA_Shift_Test()
 {
     int[] Shift = { 2, 4, 6, 8, 10, 0 };
     CollectionAssert.AreEqual(Shift, ArrayEx.Shift(a, 5, "left"));
 }