Beispiel #1
0
        [Test] public void Enumeration()
        {
            IntArrayList list = new IntArrayList();

            list.Add(1);
            list.Add(654);

            IEnumerator enumerator = list.GetEnumerator();

            Assert.IsTrue(enumerator.MoveNext());
            AssertEquals(1, enumerator.Current);
            Assert.IsTrue(enumerator.MoveNext());
            AssertEquals(654, enumerator.Current);
            Assert.IsTrue(!enumerator.MoveNext());
        }