public void TestNotificationAboutAllProperties()
        {
            PropertyChangedEventArgs e = null;

            var no = new TestableNotificationObject();

            no.PropertyChanged += (sender, e2) => e = e2;
            no.InvokeRaiseAllPropertiesChanged();

            Assert.AreNotEqual(null, e);
            Assert.AreEqual(null, e.PropertyName);
        }
        public void TestNotificationAboutSingleProperty()
        {
            Expression <Func <TestableNotificationObject, int> > expr = _ => _.TestProperty;
            PropertyChangedEventArgs e = null;

            var no = new TestableNotificationObject();

            no.PropertyChanged += (sender, e2) => e = e2;
            no.InvokeRaisePropertyChanged(expr);

            Assert.AreNotEqual(null, e);
            Assert.AreEqual(PropertyExpressionHelper.GetName(expr), e.PropertyName);
        }