Remove() public method

public Remove ( CodeTypeReference value ) : void
value CodeTypeReference
return void
		public void Constructor0_Deny_Unrestricted ()
		{
			CodeTypeReferenceCollection coll = new CodeTypeReferenceCollection ();
			Assert.AreEqual (0, coll.Add (ctr), "Add");
			Assert.AreSame (ctr, coll[0], "this[int]");
			coll.CopyTo (array, 0);
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ctr), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ctr), "IndexOf");
			coll.Insert (0, ctr);
			coll.Remove (ctr);
		}
		public void Remove_Null ()
		{
			CodeTypeReferenceCollection coll = new CodeTypeReferenceCollection ();
			coll.Remove ((CodeTypeReference) null);
		}
		public void Remove_NotInCollection ()
		{
			CodeTypeReferenceCollection coll = new CodeTypeReferenceCollection ();
			coll.Remove (new CodeTypeReference (string.Empty));
		}
		public void Remove ()
		{
			CodeTypeReference ctr1 = new CodeTypeReference (string.Empty);
			CodeTypeReference ctr2 = new CodeTypeReference (string.Empty);

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