protected override void OnPropertyChanged(string name, object oldValue, object newValue)
            {
                OnPropertyChangedCount++;

                this[name].ShouldBe(NewValue);

                var eventCount = PropertyChangedCount;

                base.OnPropertyChanged(name, oldValue, newValue);

                PropertyChangedCount.ShouldBe(eventCount + 1);

                this[name].ShouldBe(NewValue);
            }
示例#2
0
 public void Should_the_property_changed_count_is_1()
 {
     PropertyChangedCount.ShouldBeEqualTo(1);
 }