コード例 #1
0
 public void ImprovedIndexer()
 {
     AddToBoth();
     CompareAndAssert();
     deq  = deq.GetReverseView();
     fake = fake.GetReverseView();
     CompareAndAssert();
     AddToBoth();
     CompareAndAssert();
     deq  = deq.GetReverseView();
     fake = fake.GetReverseView();
     CompareAndAssert();
 }
コード例 #2
0
        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);
        }