コード例 #1
0
        public void EditableObjectModelBase_GetFailedTest()
        {
            var person = new EditablePerson();

            try
            {
                person.BadGetWithDefault();
                Assert.Fail("Expected an exception");
            }
            catch (ArgumentException ex)
            {
                Assert.AreEqual("propertyName", ex.ParamName);
            }
        }