public void RunLambdaNoBinding() { LambdaNoBindingResult = MeasureAction(() => { DummyLambdaViewModel lambdaViewModel = new DummyLambdaViewModel(); for (int i = 0; i < TestInterations; ++i) { //nothing is listening to the property changed event lambdaViewModel.DummyProperty = "DummyText"; } }); }
public void RunLambdaWithBinding() { LambdaWithBindingResult = MeasureAction(() => { DummyLambdaViewModel lambdaViewModel = new DummyLambdaViewModel(); //the main window is bound to this propery and will listen to property change events on this object PropertyChangingViewModel = lambdaViewModel; for (int i = 0; i < TestInterations; ++i) { //a textbox is listening to the property changed event lambdaViewModel.DummyProperty = "DummyText"; } }); }