Example #1
0
 public void RemoveAtTest()
 {
     ExpressionList<ConstantTypes.Integer> list = new ExpressionList<ConstantTypes.Integer>();
     list.Add(new ConstantTypes.Integer(0));
     var one = new ConstantTypes.Integer(1);
     list.Add(one);
     Assert.IsTrue(list.Count == 2);
     Assert.IsTrue(list.Contains(one));
     Assert.IsTrue(1 == list[1].Value);
     list.RemoveAt(1);
     Assert.IsTrue(list.Count == 1);
     Assert.IsTrue(!list.Contains(one));
 }