Remove() public method

public Remove ( CodeTypeDeclaration value ) : void
value CodeTypeDeclaration
return void
		public void Constructor0_Deny_Unrestricted ()
		{
			CodeTypeDeclarationCollection coll = new CodeTypeDeclarationCollection ();
			Assert.AreEqual (0, coll.Add (ctd), "Add");
			Assert.AreSame (ctd, coll[0], "this[int]");
			coll.CopyTo (array, 0);
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ctd), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ctd), "IndexOf");
			coll.Insert (0, ctd);
			coll.Remove (ctd);
		}
		public void Remove_NotInCollection ()
		{
			CodeTypeDeclarationCollection coll = new CodeTypeDeclarationCollection ();
			coll.Remove (new CodeTypeDeclaration ());
		}
		public void Remove_Null ()
		{
			CodeTypeDeclarationCollection coll = new CodeTypeDeclarationCollection ();
			coll.Remove ((CodeTypeDeclaration) null);
		}
		public void Remove ()
		{
			CodeTypeDeclaration td1 = new CodeTypeDeclaration ();
			CodeTypeDeclaration td2 = new CodeTypeDeclaration ();

			CodeTypeDeclarationCollection coll = new CodeTypeDeclarationCollection ();
			coll.Add (td1);
			coll.Add (td2);
			Assert.AreEqual (2, coll.Count, "#1");
			Assert.AreEqual (0, coll.IndexOf (td1), "#2");
			Assert.AreEqual (1, coll.IndexOf (td2), "#3");
			coll.Remove (td1);
			Assert.AreEqual (1, coll.Count, "#4");
			Assert.AreEqual (-1, coll.IndexOf (td1), "#5");
			Assert.AreEqual (0, coll.IndexOf (td2), "#6");
		}