Exemplo n.º 1
0
        public void DontNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.B += 1;

            PropertyShouldBeNotified("B", 0);
        }
Exemplo n.º 2
0
        public void NotifyPropertyChanged()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.A += 1;

            PropertyShouldBeNotified("A");
        }
Exemplo n.º 3
0
        public void RecursiveDependenttNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

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

            PropertyShouldBeNotified("RecursiveA", 2);
        }
Exemplo n.º 4
0
        public void DependentNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

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

            PropertyShouldBeNotified("CalculatedA", 2);
        }
Exemplo n.º 5
0
        public void EqualValueSet()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

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

            PropertyShouldBeNotified("A", 1);
        }