public void MultipleFields_ThrowsExceptionWithFieldName() { var form = new HtmlForm(); form.AddField("bob", "value1"); form.AddField("bob", "value2"); Assert.Throws <InvalidOperationException>(() => { var x = form["bob"]; }); }