public void ImprovedIndexer() { AddToBoth(); CompareAndAssert(); deq = deq.GetReverseView(); fake = fake.GetReverseView(); CompareAndAssert(); AddToBoth(); CompareAndAssert(); deq = deq.GetReverseView(); fake = fake.GetReverseView(); CompareAndAssert(); }
public void TestCount() { for (int i = 0; i < TestView.implicitLength; i++) { deq.Add(TestView.rint); } deq = deq.GetReverseView(); for (int i = 0; i < TestView.implicitLength; i++) { deq.Add(TestView.rint); } IDeque <int> deq2 = deq.GetReverseView(); Assert.AreEqual(deq.Count, deq2.Count); }