コード例 #1
0
ファイル: AopTests.cs プロジェクト: mac-michael/bfsharp
        public void DontNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.B += 1;

            PropertyShouldBeNotified("B", 0);
        }
コード例 #2
0
ファイル: AopTests.cs プロジェクト: mac-michael/bfsharp
        public void NotifyPropertyChanged()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

            e.A += 1;

            PropertyShouldBeNotified("A");
        }
コード例 #3
0
ファイル: AopTests.cs プロジェクト: mac-michael/bfsharp
        public void RecursiveDependenttNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

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

            PropertyShouldBeNotified("RecursiveA", 2);
        }
コード例 #4
0
ファイル: AopTests.cs プロジェクト: mac-michael/bfsharp
        public void DependentNotify()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

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

            PropertyShouldBeNotified("CalculatedA", 2);
        }
コード例 #5
0
ファイル: AopTests.cs プロジェクト: mac-michael/bfsharp
        public void EqualValueSet()
        {
            var e = new AopTestEntity();

            InitPropertiesTracking(e);

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

            PropertyShouldBeNotified("A", 1);
        }