Catel.Test.Data.ChangeNotificationWrapperFacts.ThePropertyChangesLogic.HandlesPropertyChangesCorrectly C# (CSharp) Метод

HandlesPropertyChangesCorrectly() приватный Метод

private HandlesPropertyChangesCorrectly ( ) : void
Результат void
            public void HandlesPropertyChangesCorrectly()
            {
                var model = new TestModel();
                var wrapper = new ChangeNotificationWrapper(model);

                bool propertyChanged = false;

                wrapper.PropertyChanged += (sender, e) => propertyChanged = true;

                model.FirstName = "Geert";

                Assert.IsTrue(propertyChanged);
            }
        }
ChangeNotificationWrapperFacts.ThePropertyChangesLogic