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(); }
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]); } }