public virtual void TestArray() { var i = new ArrayIterator4(new object[] {"foo", "bar"}); Assert.IsTrue(i.MoveNext()); Assert.AreEqual("foo", i.Current); Assert.IsTrue(i.MoveNext()); Assert.AreEqual("bar", i.Current); AssertExhausted(i); }
private void AssertExhausted(ArrayIterator4 i) { Assert.IsFalse(i.MoveNext()); Assert.Expect(typeof (IndexOutOfRangeException), new _ICodeBlock_29(i)); }