Esempio n. 1
0
        public void ModelBase_GetFailedTest()
        {
            var person = new SimplePerson();

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