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