示例#1
0
 public void RemoveTest()
 {
     var 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.Remove(one);
     Assert.IsTrue(list.Count == 1);
     Assert.IsTrue(!list.Contains(one));
 }