public void GetEnumeratorTest() { var list = new ExpressionList<ConstantTypes.Integer>(); list.Add(new ConstantTypes.Integer(0)); var one = new ConstantTypes.Integer(1); list.Add(one); var enumerator = list.GetEnumerator(); Assert.IsNotNull(enumerator); Assert.IsTrue(enumerator.MoveNext()); Assert.IsNotNull(enumerator.Current); Assert.IsTrue(enumerator.MoveNext()); Assert.IsNotNull(enumerator.Current); Assert.IsFalse(enumerator.MoveNext()); }