Exemple #1
0
        public void EditableObjectModelBase_PropertyChangedTest()
        {
            var person = new EditablePerson();

            try
            {
                person.InvokeBadPropertyMessage();
                Assert.Fail("Expected an exception");
            }
            catch (ArgumentOutOfRangeException ex)
            {
                Assert.AreEqual("propertyName", ex.ParamName);
                Assert.AreEqual("Boom", ex.ActualValue);
            }
        }