示例#1
0
 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);
 }
示例#2
0
 private void AssertExhausted(ArrayIterator4 i)
 {
     Assert.IsFalse(i.MoveNext());
     Assert.Expect(typeof (IndexOutOfRangeException), new _ICodeBlock_29(i));
 }