void Verify_IsFocused(ModelItem modelItem, Action doError, string isFocusedPropertyName) { Assert.IsFalse(modelItem.GetProperty<bool>(isFocusedPropertyName)); doError.Invoke(); Assert.IsTrue(modelItem.GetProperty<bool>(isFocusedPropertyName)); }