public void Setter_InvalidValue_Throws(string value) { WebHeaderCollection w = new WebHeaderCollection(); Assert.Throws<ArgumentException>("value", () => w["custom"] = value); }