public void PlainPropertyIsMaxXXXTimesFasterThanNotificationOnlyPropertyWithoutHandler() { var plain = new NotifyPropertyChangedDummy(); var dummy = new NotificationOnlyDummy(); int count = 0; var actual = Measure.ExecutionTimeFactor( () => plain.PlainProperty = count++, () => dummy.NotificationOnlyProperty = count++ ); var maximumFactor = 7.5d; actual.Factor.AssertNear(maximumFactor, 2); }
public void PlainPropertyIsMaxXXXTimesFasterThanMinimalisticInterceptableProperty() { var plain = new NotifyPropertyChangedDummy(); var interceptable = new MinimalisticInterecptableHost(); int count = 0; var actual = Measure.ExecutionTimeFactor( () => plain.PlainProperty = count++, () => interceptable.MinimalisticInterceptableProperty = count++ ); var maximumFactor = 7d; actual.Factor.AssertNear(maximumFactor, 2); }