public void Remove_IllegalCharacter_Throws() { WebHeaderCollection w = new WebHeaderCollection(); Assert.Throws<ArgumentException>("name", () => w.Remove("{")); }