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