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