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