public void RunINotifyNoBinding() { INotifyNoBindingResult = MeasureAction(() => { DummyINotifyViewModel iNotifyViewModel = new DummyINotifyViewModel(); for (int i = 0; i < TestInterations; ++i) { //nothing is listening to the property changed event iNotifyViewModel.DummyProperty = "DummyText"; } }); }
public void RunINotifyWithBinding() { INotifyWithBindingResult = MeasureAction(() => { DummyINotifyViewModel iNotifyViewModel = new DummyINotifyViewModel(); //the main window is bound to this propery and will listen to property change events on this object PropertyChangingViewModel = iNotifyViewModel; for (int i = 0; i < TestInterations; ++i) { //a textbox is listening to the property changed event iNotifyViewModel.DummyProperty = "DummyText"; } }); }