示例#1
0
 void Insert(int index, int number, int deqLength)
 {
     for (int i = 0; i < deqLength; i++)
     {
         int a = rint;
         fake.Add(a);
         deq.Add(a);
     }
     deq.Insert(index, number);
     fake.Insert(index, number);
     CompareAndAssert();
 }
示例#2
0
 public void Insert_NullsAndNumbers()
 {
     for (int i = 0; i < ImplicitInt; i++)
     {
         deq.Insert(i, 5);
         deq.Insert(i, null);
         fake.Insert(i, 5);
         fake.Insert(i, null);
     }
     for (int i = 0; i < ImplicitInt; i++)
     {
         Assert.AreEqual(fake[i], deq[i]);
     }
 }