예제 #1
0
 public void T09_Custom()
 {
     que.Enqueue(1);
     que.Enqueue(2);
     que.Dequeue();
     que.Dequeue();
     que.Enqueue(17);
     que.Enqueue(27);
     que.Enqueue(37);
     int[] inarr  = { 16, 27, 36 };
     int[] outarr = que.ToArray();
     foreach (int x in inarr)
     {
         Console.Write("{0} ", x);
     }
     Console.WriteLine();
     foreach (int x in outarr)
     {
         Console.Write("{0} ", x);
     }
     Console.WriteLine();
     ArrayAssert.AreEqual(inarr, outarr);
 }
예제 #2
0
 public void CustomEqualLength()
 {
     int[] arr1 = { 2, 3, 5 };
     int[] arr2 = { 2, 3, 5, 7 };
     ArrayAssert.AreEqual(arr1, arr2);
 }
예제 #3
0
 public void CustomEqualArraysWithMessage()
 {
     int[] arr1 = { 1, 3, 5, 6 };
     int[] arr2 = { 2, 3, 5, 7 };
     ArrayAssert.AreEqual(arr1, arr2, "arrays not equal");
 }
예제 #4
0
 public void CustomEqualArrays()
 {
     int[] arr1 = { 1, 3, 5, 6 };
     int[] arr2 = { 2, 3, 5, 7 };
     ArrayAssert.AreEqual(arr1, arr2);
 }