From 048813758e59ad62dc2886e9f0c71eeeb8db0aaf Mon Sep 17 00:00:00 2001 From: Eric Maupin Date: Mon, 20 Aug 2018 14:47:32 -0400 Subject: [Core] Bindings should be set via SourceDescriptor --- Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Xamarin.PropertyEditing.Tests') diff --git a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs index f606c75..f1a0d51 100644 --- a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs @@ -1426,10 +1426,9 @@ namespace Xamarin.PropertyEditing.Tests Assert.That (requested, Is.True, "Binding wasn't requested"); Assert.That (vm.ValueSource, Is.EqualTo (ValueSource.Binding)); - editor.Verify (oe => oe.SetValueAsync (mockProperty.Object, new ValueInfo { - Source = ValueSource.Binding, - SourceDescriptor = bindObject - }, It.IsAny ())); + editor.Verify (oe => oe.SetValueAsync (mockProperty.Object, It.Is> (vi => + vi.Source == ValueSource.Binding && vi.SourceDescriptor == bindObject + ), It.IsAny ())); } protected TViewModel GetViewModel (IPropertyInfo property, IObjectEditor editor) -- cgit v1.2.3