diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/BrushPropertyViewModelTests.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Xamarin.PropertyEditing.Tests/BrushPropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/BrushPropertyViewModelTests.cs index 7acac3c..bf4ccb3 100644 --- a/Xamarin.PropertyEditing.Tests/BrushPropertyViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/BrushPropertyViewModelTests.cs @@ -52,26 +52,5 @@ namespace Xamarin.PropertyEditing.Tests Assert.IsTrue (changed); Assert.AreNotEqual (rs1, rs2); } - - [Test] - public void ChangingResourceProviderUpdatesResources () - { - var mockProperty = new Mock<IPropertyInfo> (); - mockProperty.SetupGet (pi => pi.Type).Returns (typeof (CommonBrush)); - var mockEditor = new MockObjectEditor (mockProperty.Object); - var vm = new BrushPropertyViewModel (new TargetPlatform (new MockEditorProvider (), new MockResourceProvider()), mockProperty.Object, new [] { mockEditor }); - - var changed = false; - vm.PropertyChanged += (s, e) => { - if (e.PropertyName == nameof (BrushPropertyViewModel.ResourceSelector)) { - changed = true; - } - }; - var rs1 = vm.ResourceSelector; - var rs2 = vm.ResourceSelector; - Assert.IsTrue (changed); - Assert.IsNull (rs1); - Assert.AreNotEqual (rs1, rs2); - } } } |