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