diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-08-17 20:06:20 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-08-17 20:06:20 +0300 |
commit | 03fb7087bb88945ac691ebb0a8a0d1d329246c95 (patch) | |
tree | fba2434a999db8d405f20b0cccbf33287802b935 | |
parent | c937735174e4568ced04cf0392eea8e9e2077689 (diff) |
[Tests] Fix resource setting in mock editor
-rw-r--r-- | Xamarin.PropertyEditing.Tests/MockObjectEditor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs b/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs index 77952bf..80f11c0 100644 --- a/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs +++ b/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs @@ -169,7 +169,7 @@ namespace Xamarin.PropertyEditing.Tests if (value.Source != ValueSource.Local && ValueEvaluator != null) { value.Value = (T)ValueEvaluator (property, value.ValueDescriptor, value.SourceDescriptor); - } else if (value.Source == ValueSource.Unset || (property.ValueSources.HasFlag (ValueSources.Default) && Equals (value.Value, default(T))) && value.ValueDescriptor == null) { + } else if (value.Source == ValueSource.Unset || (property.ValueSources.HasFlag (ValueSources.Default) && Equals (value.Value, default(T))) && value.ValueDescriptor == null && value.SourceDescriptor == null) { this.values.Remove (property); PropertyChanged?.Invoke (this, new EditorPropertyChangedEventArgs (property)); return Task.CompletedTask; |