Contains() public method

public Contains ( System.CodeDom.CodeExpression value ) : bool
value System.CodeDom.CodeExpression
return bool
Exemplo n.º 1
0
		public void Constructor0_Deny_Unrestricted ()
		{
			CodeExpressionCollection coll = new CodeExpressionCollection ();
			Assert.AreEqual (0, coll.Add (ce), "Add");
			Assert.AreSame (ce, coll[0], "this[int]");
			coll.CopyTo (array, 0);
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ce), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ce), "IndexOf");
			coll.Insert (0, ce);
			coll.Remove (ce);
		}