Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2018-08-17 20:06:20 +0300
committerEric Maupin <ermaup@microsoft.com>2018-08-17 20:06:20 +0300
commit03fb7087bb88945ac691ebb0a8a0d1d329246c95 (patch)
treefba2434a999db8d405f20b0cccbf33287802b935 /Xamarin.PropertyEditing.Tests
parentc937735174e4568ced04cf0392eea8e9e2077689 (diff)
[Tests] Fix resource setting in mock editor
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r--Xamarin.PropertyEditing.Tests/MockObjectEditor.cs2
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;