diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-02-06 01:36:14 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-02-15 22:00:20 +0300 |
commit | 355df8e4454ce135c27c9b46129bec4df418c2ce (patch) | |
tree | 913453b7e024d3a6b52cf0e2553cbb00c2c2b2f1 | |
parent | a80530347a2640e599849cf8da2ab4d77e5515cd (diff) |
[Tests] Fix CanDelve test
-rw-r--r-- | Xamarin.PropertyEditing.Tests/ObjectPropertyViewModelTests.cs | 3 | ||||
-rw-r--r-- | Xamarin.PropertyEditing/ViewModels/ObjectPropertyViewModel.cs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Tests/ObjectPropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/ObjectPropertyViewModelTests.cs index 193bc09..ef3e438 100644 --- a/Xamarin.PropertyEditing.Tests/ObjectPropertyViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/ObjectPropertyViewModelTests.cs @@ -179,7 +179,7 @@ namespace Xamarin.PropertyEditing.Tests } [Test] - public void CanDelve () + public async Task CanDelve () { object value = new object(); @@ -189,6 +189,7 @@ namespace Xamarin.PropertyEditing.Tests var editor = new MockObjectEditor (new[] { p.Object }, new Dictionary<IPropertyInfo, IReadOnlyList<ITypeInfo>> { { p.Object, new[] { childsubInfo } } }); + await editor.SetValueAsync (p.Object, new ValueInfo<object> { Value = value, Source = ValueSource.Local }); var providerMock = CreateProviderMock (value, new MockObjectEditor { Target = value }); diff --git a/Xamarin.PropertyEditing/ViewModels/ObjectPropertyViewModel.cs b/Xamarin.PropertyEditing/ViewModels/ObjectPropertyViewModel.cs index 4e8b91d..f31b992 100644 --- a/Xamarin.PropertyEditing/ViewModels/ObjectPropertyViewModel.cs +++ b/Xamarin.PropertyEditing/ViewModels/ObjectPropertyViewModel.cs @@ -90,8 +90,6 @@ namespace Xamarin.PropertyEditing.ViewModels return; using (await AsyncWork.RequestAsyncWork (this)) { - - await base.UpdateCurrentValueAsync (); ValueType = CurrentValue?.ValueDescriptor as ITypeInfo; |