Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit 355df8e

Browse files
author
Eric Maupin
committed
[Tests] Fix CanDelve test
1 parent a805303 commit 355df8e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Xamarin.PropertyEditing.Tests/ObjectPropertyViewModelTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void NullEditors ()
179179
}
180180

181181
[Test]
182-
public void CanDelve ()
182+
public async Task CanDelve ()
183183
{
184184
object value = new object();
185185

@@ -189,6 +189,7 @@ public void CanDelve ()
189189
var editor = new MockObjectEditor (new[] { p.Object }, new Dictionary<IPropertyInfo, IReadOnlyList<ITypeInfo>> {
190190
{ p.Object, new[] { childsubInfo } }
191191
});
192+
await editor.SetValueAsync (p.Object, new ValueInfo<object> { Value = value, Source = ValueSource.Local });
192193

193194
var providerMock = CreateProviderMock (value, new MockObjectEditor { Target = value });
194195

Xamarin.PropertyEditing/ViewModels/ObjectPropertyViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ protected override async Task UpdateCurrentValueAsync ()
9090
return;
9191

9292
using (await AsyncWork.RequestAsyncWork (this)) {
93-
94-
9593
await base.UpdateCurrentValueAsync ();
9694
ValueType = CurrentValue?.ValueDescriptor as ITypeInfo;
9795

0 commit comments

Comments
 (0)