public void ShouldFirePropertyChangedTotalTimesAssertionFromLamdaPropertyName()
 {
     var model = new SampleModel();
     model.ShouldFirePropertyChanged<SampleModel>(() => model.FireTextProperty(3), m => m.Text);
 }
 public void ShouldThrowWhenFirePropertyChangedCorrectTotalTimes()
 {
     var model = new SampleModel();
     Should.Throw<AssertionException>(() => model.ShouldFirePropertyChanged(3, () => model.FireTextProperty(2), SampleModel.PropText));
 }
 public void ShouldFirePropertyChangedTotalTimesAssertion()
 {
     var model = new SampleModel();
     model.ShouldFirePropertyChanged(() => model.FireTextProperty(3), SampleModel.PropText);
 }
 public void ShouldFireMultiplePropertiesChangedAssertion()
 {
     var model = new SampleModel();
     model.ShouldFirePropertyChanged(() => model.Text = "Hello", SampleModel.PropText);
 }
 public void ShouldFireFromLambdaNameReference()
 {
     var model = new SampleModel();
     model.ShouldFirePropertyChanged<SampleModel>(() =>
                                         {
                                             model.Text = "Hello";
                                             model.Number++;
                                         }, m => m.Text, m => m.Number);
 }
 public void ShouldThrowWhenMultiplePropertiesPassedButOneDidNotFire()
 {
     var model = new SampleModel();
     Should.Throw<AssertionException>(() => model.ShouldFirePropertyChanged(() =>
                                                                                {
                                                                                    model.Text = "Hello";
                                                                                }, SampleModel.PropText, SampleModel.PropNumber));
 }
        public void ShouldFirePropertyChangedAssertion()
        {
            var model = new SampleModel();
            model.ShouldFirePropertyChanged(() => model.Text = "Hello", SampleModel.PropText);

            model.ShouldFirePropertyChanged(() =>
                        {
                            model.Text = "Hello";
                            model.Number = 123;
                        }, SampleModel.PropText, SampleModel.PropNumber);
        }