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