public void EditableObjectModelCollection_GetFailedTest3() { var person = new EditablePersonCollection(); try { person.BadGetWithDefault2(); Assert.Fail("Expected an exception"); } catch (ArgumentException ex) { Assert.AreEqual("propertyName", ex.ParamName); } }