Beispiel #1
0
        public void DontNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.B += 1;

            PropertyShouldBeNotified("B", 0);
        }
Beispiel #2
0
        public void NotifyPropertyChanged()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.A += 1;

            PropertyShouldBeNotified("A");
        }
Beispiel #3
0
        public void RecursiveDependenttNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.A  += 1;
            e.A2 += 1;

            PropertyShouldBeNotified("RecursiveA", 2);
        }
Beispiel #4
0
        public void DependentNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.A  += 1;
            e.A2 += 1;

            PropertyShouldBeNotified("CalculatedA", 2);
        }
Beispiel #5
0
        public void EqualValueSet()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.A = 1;
            e.A = 1;

            PropertyShouldBeNotified("A", 1);
        }