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